Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Search does not work #361

Open
janekmi opened this issue Jun 2, 2023 · 2 comments
Open

[Bug] Search does not work #361

janekmi opened this issue Jun 2, 2023 · 2 comments
Labels

Comments

@janekmi
Copy link
Contributor

janekmi commented Jun 2, 2023

Try to use the search button at the top of the webpage.
In result, I got the following message:

Search results
Unable to execute your query. Ensure that a valid subscription key has been set up for your instance.
@janekmi janekmi added the bug label Jun 2, 2023
@lukaszstolarczuk
Copy link
Member

I can swear it was working. This leads us to:

  • some (rather) recent breaking changes,
  • some kind of time-related issue 😉 end of some kind of server certificate? "subscription key" (whatever that means)? etc.

@sscargal
Copy link
Contributor

sscargal commented Jun 2, 2023

We hit item #2 of Lukasz's list. This issue is due to the owner of the Bing Custom Search API keys account being closed or expired. It's not using my account. The search feature uses Bing Custom Search. There is a warning on the documentation page:

Warning

On October 30, 2020, the Bing Search APIs moved from Cognitive Services to Bing Search Services. This documentation is provided for reference only. For updated documentation, see the Bing search API documentation. For instructions on creating new Azure resources for Bing search, see Create a Bing Search resource through the Azure Marketplace.

The warning doesn't apply to this site as we put the new site live in Dec 2021, so we're using the 'new' APIs.

If somebody on the PMem Team can create a new Bing Search Instance by following these instructions, we should only need to update the query URI in partials/script.html with the new token, which currently looks like this:

<script type="text/javascript" src="https://ui.customsearch.ai/api/ux/rendering-js?customConfig=011a90aa-26ea-46b5-bf60-4b5b407c72c6&amp;market=en-US&amp;version=latest&amp;q="></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants