question

NiklasJungeilges-9692 avatar image
0 Votes"
NiklasJungeilges-9692 asked ·

Bing Custom Search - unvalid subscription key

Hey Guys,

I want to set up a Bing Custom Search. I registered at azure and got the free F0 tariff with 2 Keys. I put one of them in, but when I try to use the custom Search he always says to me: Unable to execute your query. Ensure that a valid subscription key has been set up for your instance.

But this must be the right key....

I hope someone can help me!

azure-bing-custom
· 1
10 |1000 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.

Hello Niklas,

Please let know if you still seeing the error. Thanks.


Regards,
Yutong

0 Votes 0 ·
YutongTie-5848 avatar image
0 Votes"
YutongTie-5848 answered ·

Hello,

Sorry to hear your experience. I just try in my end and there is no error.

59207-image.png

Could you please also try yours in the Bing custom portal? https://www.customsearch.ai/
This is the guidance: https://docs.microsoft.com/en-us/bing/search-apis/bing-custom-search/how-to/quick-start

Regards,
Yutong



image.png (151.7 KiB)
· 1 ·
10 |1000 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.

Finally please also make sure you are using the subscription key of this service.

Thank you.

Regards,
Yutong

59322-image.png


0 Votes 0 ·
image.png (68.6 KiB)
NathanTisdale-7760 avatar image
1 Vote"
NathanTisdale-7760 answered ·

The UriBase might need to be changed form the old cognitive services uri to the new bing uri. I was just working with some sample code that had to be updated as follows:

OLD:

 const string UriBase = "https://api.cognitive.microsoft.com/bing/v7.0/images/search";

NEW:

 const string UriBase = "https://api.bing.microsoft.com/v7.0/images/search";










· 1 ·
10 |1000 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.

This should have been updated in the document. Please let me know if you are still see the wrong url.


Regards,
Yutong

0 Votes 0 ·
NiklasJungeilges-9692 avatar image
0 Votes"
NiklasJungeilges-9692 answered ·

Okay it seems to work now. I dont know why, i didnt changed anything. But thanks anyways!

·
10 |1000 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.