# New search feature doesn't work. Always errors out

**URL:** <https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660>\
**Category:** Developing with Prismic\
**Created:** [September 16, 2024, 6:30am UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660 "2024-09-16T06:30:35Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![aadtyaraj01](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/aadtyaraj01/32/7310_2.png) [@aadtyaraj01](https://community.prismic.io/u/aadtyaraj01)\
**Post date:** [September 16, 2024, 6:30am UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/1 "2024-09-16T06:30:35Z")

</div>

The new search feature in Prismic Repository doesn't work. I've tested it only on my browser - ms-edge, so maybe something's wrong.

This is preventing me from quickly searching for documents that I've created in Prismic.

[https://jam.dev/c/1233445d-03bd-4724-9943-515abb922ee1](https://jam.dev/c/1233445d-03bd-4724-9943-515abb922ee1)

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 16, 2024, 9:27am UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/2 "2024-09-16T09:27:44Z")

</div>

So we think your company's network or proxy settings might be very strict, and your team will need to whitelist the new domain for our search: `document-search.prismic.io`

Can you pass this information on to your team?

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 16, 2024, 4:39pm UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/4 "2024-09-16T16:39:02Z")

</div>

Can you tell me if your company is using a VPN? If not can you try in different browsers?

---

<div class="post-metadata">

**Author:** ![aadtyaraj01](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/aadtyaraj01/32/7310_2.png) [@aadtyaraj01](https://community.prismic.io/u/aadtyaraj01)\
**Post date:** [September 17, 2024, 4:36am UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/5 "2024-09-17T04:36:05Z")

</div>

I've passed on the message, and will also check this out from my home network to be sure, and let you know earliest by tomorrow.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 17, 2024, 11:04am UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/6 "2024-09-17T11:04:06Z")

</div>

More reports are coming through that this is related to VPN and local network settings.

For some users it was related to tools such as **Netskope** and **Zscaler**.

Please investigate your network settings and let us know how it goes 🙂

---

<div class="post-metadata">

**Author:** ![jennifer.martelle](https://avatars.discourse-cdn.com/v4/letter/j/bc79bd/32.png) [@jennifer.martelle](https://community.prismic.io/u/jennifer.martelle)\
**Post date:** [September 17, 2024, 4:35pm UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/7 "2024-09-17T16:35:14Z")

</div>

Following along

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 18, 2024, 9:04am UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/8 "2024-09-18T09:04:09Z")

</div>

The above suggestions have been what has fixed the issue for anyone experiencing it.

For one user, it appeared that CloudFront was seeing multiple source IPs due to how Netskope routes and inspects traffic. To resolve this, a policy was implemented to route all traffic for the domain through a single tunnel, ensuring it originates from a consistent IP.

Please pass this information on to your IT team.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 20, 2024, 10:57am UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/9 "2024-09-20T10:57:24Z")

</div>

I created a troubleshooting based on this conversation:

> [@Troubleshooting: Search errors](https://community.prismic.io/t/troubleshooting-search-errors/16701):
>
> Here are some steps for resolving network and Cors errors in the search bar and Prismic link component. Step 1: Check VPN and Network Settings • Most search issues are related to VPN or local network configurations. Step 2: Whitelist the New Domain • Add [document-search.prismic.io](http://document-search.prismic.io) to your whitelist to ensure smooth access. Step 3: Remove SSL Inspection • Some teams solved the problem by removing SSL inspection for the entire [prismic.io](http://prismic.io) domain. Step 4: Investigate Security Tools • Tools l…

---

<div class="post-metadata">

**Author:** ![aadtyaraj01](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/aadtyaraj01/32/7310_2.png) [@aadtyaraj01](https://community.prismic.io/u/aadtyaraj01)\
**Post date:** [September 24, 2024, 10:28am UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/10 "2024-09-24T10:28:05Z")

</div>

It works on my home system. The error is then because of network policies at my office. Sorry for the troubles. ☹

On further looking into it along with the IT guy at office, I can see that that query does go through and I get a response back from Prismic for the search, but the data isn't displayed. Here's what the response looks like in the network tab:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/8/81102e3f6e0b754e6a1c0ead556d542faaafc245.png)

@Phil can you please look into this. I've created a new jam for easy troubleshoot:  
[https://jam.dev/c/4a1cca89-fd18-4e00-9b8e-e07933b17b6f](https://jam.dev/c/4a1cca89-fd18-4e00-9b8e-e07933b17b6f)

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 24, 2024, 12:20pm UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/11 "2024-09-24T12:20:37Z")

</div>

Thanks for the update.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 24, 2024, 12:21pm UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/12 "2024-09-24T12:21:18Z")

</div>

closed on September 24, 2024, 12:21pm UTC, flag & select 'Something Else' to reopen.



---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [September 25, 2024, 7:35am UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/13 "2024-09-25T07:35:02Z")

</div>

Opened on September 25, 2024, 7:35am UTC



---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 25, 2024, 10:34am UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/14 "2024-09-25T10:34:26Z")

</div>

While you are able to visit the link directly because it's not 'cross-origin' once you navigate directly, it seems your office network is still blocking it when consumed from the repository because of this 'cross-origin' definition.

---

<div class="post-metadata">

**Author:** ![aadtyaraj01](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/aadtyaraj01/32/7310_2.png) [@aadtyaraj01](https://community.prismic.io/u/aadtyaraj01)\
**Post date:** [September 25, 2024, 11:02am UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/15 "2024-09-25T11:02:36Z")

</div>

What should I do to make this work?????

anything that i need to do specifically to make this work, because I still don't understand the problem. The screenshot is from the prismic page builder. when I search something, the fetch query shows as failed, but when I double click on that failed fetch request, it shows me query results.

here's the console from the page builder itself:

````auto
`DialogContent` requires a `DialogTitle` for the component to be accessible for screen reader users.

If you want to hide the `DialogTitle`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/dialog
AXt.console.error @ EditorConfig.ts:147
instrument.js:111 Warning: Missing `Description` or `aria-describedby={undefined}` for {DialogContent}.
(anonymous) @ instrument.js:111
Show 1 more frame
Show less
working:1 Access to fetch at 'https://document-search.prismic.io/?repository=lazylync&searchTerm=netsuite&localeId=en-us' from origin 'https://lazylync.prismic.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
document-search.prismic.io/?repository=lazylync&searchTerm=netsuite&localeId=en-us:1 
        
        
        Failed to load resource: net::ERR_FAILED
EditorConfig.ts:147 RequestError: {
  "url": "https://document-search.prismic.io/?repository=lazylync&searchTerm=netsuite&localeId=en-us",
  "type": "unknown",
  "cause": {
    "name": "TypeError",
    "message": "Failed to fetch",
    "stack": "TypeError: Failed to fetch\n at https://lazylync.prismic.io/builder/assets/index-OZbOHsVc.js:605:386\n at mt (https://lazylync.prismic.io/builder/assets/index-OZbOHsVc.js:594:116028)\n at $je (https://lazylync.prismic.io/builder/assets/index-OZbOHsVc.js:595:8519)\n at Object.current (https://lazylync.prismic.io/builder/assets/index-OZbOHsVc.js:637:2955)\n at https://lazylync.prismic.io/builder/assets/index-OZbOHsVc.js:297:9751\n at https://lazylync.prismic.io/builder/assets/index-OZbOHsVc.js:297:9983"
  },
  "online": true,
  "connectionType": "3g"
}
    at mt (Http.ts:101:1)
    at async Object.<anonymous> (useDocumentSearch.ts:86:1)
AXt.console.error @ EditorConfig.ts:147
Http.ts:101 Uncaught (in promise) RequestError: {
  "url": "https://document-search.prismic.io/?repository=lazylync&searchTerm=netsuite&localeId=en-us",
  "type": "unknown",
  "cause": {
    "name": "TypeError",
    "message": "Failed to fetch",
    "stack": "TypeError: Failed to fetch\n at https://lazylync.prismic.io/builder/assets/index-OZbOHsVc.js:605:386\n at mt (https://lazylync.prismic.io/builder/assets/index-OZbOHsVc.js:594:116028)\n at $je (https://lazylync.prismic.io/builder/assets/index-OZbOHsVc.js:595:8519)\n at Object.current (https://lazylync.prismic.io/builder/assets/index-OZbOHsVc.js:637:2955)\n at https://lazylync.prismic.io/builder/assets/index-OZbOHsVc.js:297:9751\n at https://lazylync.prismic.io/builder/assets/index-OZbOHsVc.js:297:9983"
  },
  "online": true,
  "connectionType": "3g"
}
    at mt (Http.ts:101:1)
    at async Object.<anonymous> (useDocumentSearch.ts:86:1)
[NEW] Explain Console errors by usi
```
````

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 25, 2024, 1:08pm UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/16 "2024-09-25T13:08:07Z")

</div>

Are you in charge of the network policies in your office?

---

<div class="post-metadata">

**Author:** ![aadtyaraj01](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/aadtyaraj01/32/7310_2.png) [@aadtyaraj01](https://community.prismic.io/u/aadtyaraj01)\
**Post date:** [October 7, 2024, 6:48am UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/17 "2024-10-07T06:48:24Z")

</div>

`We've TeraMind installed for security purposes on the Work Laptop.

[See the What, Why, and How for Every User Action - Teramind](https://www.teramind.co/)

I tried accessing the search feature again from my home network, and it didn't work on the Work Laptop on which Teramind is installed.

But it did work on my home computer which doesn't have it installed. Let me know if there's any information available about this, as I'm receiving the response in the console, but then it isn't rendered in the UI.

Also, there's another message in the console I checked just now:  
`Access to fetch at 'https://document-search.prismic.io/?repository=lazylync&searchTerm=netsuite&localeId=en-us' from origin 'https://lazylync.prismic.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.`

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [October 11, 2024, 4:13pm UTC](https://community.prismic.io/t/new-search-feature-doesnt-work-always-errors-out/16660/18 "2024-10-11T16:13:44Z")

</div>

In that case, it confirms you'll need to play with the settings of Teramind or whitelist anything to do with Prismic on that service, as recommended here.

> [@Troubleshooting: Search errors](https://community.prismic.io/t/troubleshooting-search-errors/16701):
>
> Here are some steps for resolving network and Cors errors in the search bar and Prismic link component. Step 1: Check VPN and Network Settings Most search issues are related to VPN or local network configurations. Step 2: Whitelist the New Domain Add [document-search.internal.prismic.io](http://document-search.internal.prismic.io) to your whitelist to ensure smooth access. Step 3: Remove SSL Inspection Some teams solved the problem by removing SSL inspection for the entire [prismic.io](http://prismic.io) domain. Step 4: Investigate Security Tools To…
