question

Mike-Ubezzi avatar image
0 Votes"
Mike-Ubezzi asked RohitMungi-7434 answered

Request Failing for Bing Entity Search.

"I am trying to make a request using the following URL and Keys.

URL : https://eastus.api.cognitive.microsoft.com/bing/v7.0/entities/

KEYS:

mkt:en-US
q:restaurants


However, I get the following response - (even though there is a valid value for the mkt parameter in the request)

 {
     ""_type"": ""ErrorResponse"",
     ""errors"": [
         {
             ""_type"": ""Error"",
             ""code"": ""InvalidRequest"",
             ""subCode"": ""ParameterInvalidValue"",
             ""message"": ""Parameter has invalid value."",
             ""moreDetails"": ""Entity Search is not allowed for this market."",
             ""parameter"": ""mkt"",
             ""value"": """"
         }
     ]
 }

Why is the service not reading the ""mkt"" parameter from the request ?"

[Note: As we migrate from MSDN, this question has been posted by an Azure Cloud Engineer as a frequently asked question] Source: MSDN


azure-bing-entity
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.

1 Answer

RohitMungi-7434 avatar image
0 Votes"
RohitMungi-7434 answered

It looks like the mkt parameter is not passed as a query parameter instead it is used as a header which is not valid. Could you please pass the same as query parameter and check if the request succeeds.

Source: MSDN


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.