I am getting this exception while using the Bing search API.

Prem Kothawle 0 Reputation points
2023-10-23T09:52:00.5366667+00:00

HTTPSConnectionPool(host='api.bing.microsoft.com', port=443): Max retries exceeded with url: /v7.0/search?q=my+query&mkt=en-US (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f29822e40a0>: Failed to resolve 'api.bing.microsoft.com' ([Errno -3] Temporary failure in name resolution)"))

Bing Web Search
Bing Web Search
A Bing service that gives you enhanced search details from billions of web documents.
128 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 14,421 Reputation points
    2023-10-23T23:54:36.1066667+00:00

    Hello @Prem Kothawle , Thanks for using Microsoft Q&A Platform.

    This error can occur due to various reasons, such as network connectivity issues, DNS configuration problems, or firewall restrictions.

    Try to check your network connectivity: If you are behind a firewall or proxy server, make sure that it allows outbound connections to the Bing search API endpoint.

    Verify the DNS configuration: Check if the DNS server settings on your device are correct.

    Please re-try the API call and also share more details with us.

    Regards,
    Vasavi

    0 comments No comments