Bing custom search - Unable to execute your query

ap 21 Reputation points
2022-08-22T22:58:24.003+00:00

hi have been using bing custom search for over a year and recently about 1/10 search returns the result "Unable to execute your query, Ensure that a valid subscription key has been set up for your instance." however searching again will most likely work for another 5-10 times then the error will appear again, and then start working again.

is there any kind of rate limiting at play, i cant understand why it works and then doesn't and then works again so consistently

Bing Bing Search APIs Bing Custom Search API
0 comments No comments
{count} votes

Accepted answer
  1. romungi-MSFT 48,906 Reputation points Microsoft Employee Moderator
    2022-08-23T11:04:56.897+00:00

    @ap I think this error might occur if the search times out.
    Is the custom search configured on your application where you are seeing higher traffic or requests to the API than before?
    If yes, then the most probable cause could be, you are reaching the TPS limit of your pricing tier. You can check the pricing of bing search APIs(select bing custom search API from the drop down) which mentions that the higher pricing tier has higher TPS limits.

    A quick way to check if you are able to avoid this error is to update the pricing tier of your resource from azure portal and observe if it works. Thanks!!


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.