Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.47k stars 4.8k forks source link

CognitiveServices.Search.WebSearch problem #41450

Open jira-zz opened 9 months ago

jira-zz commented 9 months ago

Library name and version

Microsoft.Azure.CognitiveServices.Search.WebSearch

Query/Question

I have as app using this library to perform Bing searches. I used it last time circa 1 year ago and it worked. I need to use it again, but now when I do the search it returns a "NotFound" error.

Specifically the SearchAsync returns the error.

 var client = new WebSearchClient(new ApiKeyServiceClientCredentials(key));
 var webData = await client.Web.SearchAsync(query: query).ConfigureAwait(false);

Environment

.NET SDK: Version: 8.0.100
Commit: 57efcf1350 Workload version: 8.0.100-manifests.8d38d0cc

Runtime Environment: OS Name: Windows OS Version: 10.0.19045 OS Platform: Windows RID: win-x64 Base Path: C:\Program Files\dotnet\sdk\8.0.100\

jsquire commented 9 months ago

//cc: @pallavit - Can you confirm whether this library is still supported?

jira-zz commented 9 months ago

So, is this library still maintained?

Eonasdan commented 8 months ago

2 years later and this is still an issue. The bing search endpoint should be https://api.bing.microsoft.com/v7.0/search?mkt=en-us&q=Yosemite%20National%20Park but SDK turns it into https://api.bing.microsoft.com/bing/v7.0/search?mkt=en-us&q=Yosemite%20National%20Park.

According to the quick start guide from the Bing Web Search API page, this is the SDK to use.

94 open issues for these docs. Sad 😢

zuckerthoben commented 5 months ago

So the SDK is not functioning since they moved the api?

So you have to implement it manually. I haven't found an open api spec yet..