Bing Search Python 3.x SDK not working, "Resource Not Found", wrong HTTPS request being created

Baron Von Cornflake 21 Reputation points
2021-05-21T20:18:52.437+00:00

I am trying to follow the Python 3.x example at https://learn.microsoft.com/en-us/azure/cognitive-services/bing-web-search/quickstarts/client-libraries?pivots=programming-language-python .

This curl example works for me:

curl -H "Ocp-Apim-Subscription-Key: 
Bing Web Search
Bing Web Search
A Bing service that gives you enhanced search details from billions of web documents.
139 questions
0 comments No comments
{count} votes

Accepted answer
  1. YutongTie-MSFT 46,996 Reputation points
    2021-05-23T00:41:14.943+00:00

    Hello,

    Thanks for reporting your issue. This error seems to be due to the recent migration of the service from cognitive services to Microsoft Bing, our team is aware of the same and are working to update the SDKs accordingly. You can use the existing keys directly with the REST API to get the correct response. We understand that this could be a frustrating experience until the SDKs are updated, we will update this issue with more details as soon as we have a fix.

    https://learn.microsoft.com/en-us/azure/cognitive-services/bing-web-search/quickstarts/python

    Please changed the search_url to https://api.bing.microsoft.com/v7.0/search in above document.

    Regards,
    Yutong


0 additional answers

Sort by: Most helpful