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
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
"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
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