question

UserTwy-6681 avatar image
0 Votes"
UserTwy-6681 asked YutongTie-MSFT answered

HTTPError: 404 Client Error: Resource Not Found for url

Hi all, I recently got a Bing API Key for web search, and I'm using the code provided in the Github by Microsoft.

However, I keep encountering an error, saying "HTTPError: 404 Client Error: Resource Not Found for url: https://api.bing.microsoft.com/bing/v7.0/search?q=Microsoft+Cognitive+Services&mkt=en-US".

Does anyone know how to fix this?

72609-screen-shot-2021-02-27-at-50017-pm.png


72610-screen-shot-2021-02-27-at-50022-pm.png


azure-webappsazure-bing-web
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for reaching out to us, I am checking internally to see if there any bug opening.


Regards,
Yutong

1 Vote 1 ·

Has there been any results so far?

0 Votes 0 ·

Could you please share the code sample you are using? Is this one https://docs.microsoft.com/en-us/azure/cognitive-services/bing-web-search/quickstarts/python ?


Regards,
Yutong

1 Vote 1 ·
Show more comments

1 Answer

YutongTie-MSFT avatar image
0 Votes"
YutongTie-MSFT answered

Hello everyone for the same issue,

This issue has been fixed several days ago. Appreciate the help from UserTwy. If you are suffering from this issue, please do following 2 things"

  1. Please make sure you are using Bing Search V7 not Bing Custom Search, Bing Custom need more info for header.

  2. Please make sure if you created your resource recently, please use the correct Subscription key and Endpoint as:
    search_url = "https://api.bing.microsoft.com/v7.0/search"

If you still have issue, please let us know.


Regards,
Yutong


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.