locked
Request Failing for Bing Entity Search RRS feed

  • Question

  •  Hello,

    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 ?

    Also, the Congnitive Services Overview Page on Azure says - ". Test your keys with the built-in testing console without writing a single line of code"

    Question : Where is this console ?

    Any help is appreciated,

    TRH



    Thursday, March 7, 2019 5:37 PM

Answers

  • I actually realized that I wasn't passing the parameter "mkt" as a query parameter. Instead I was passing it as a request header. This is now working (tested on Postman)

    If someone can answer the second part of the question -

    Where is the testing console ?

    Thanks a bunch,

    TRH


    Thursday, March 7, 2019 5:59 PM
  • I think I'm good. Microsoft has the console built into the page - 

    https://azure.microsoft.com/en-us/services/cognitive-services/bing-entity-search-api/

    Its the search box on the left side.

    Was expecting a separate "page".

    Thursday, March 7, 2019 6:31 PM

All replies

  • I actually realized that I wasn't passing the parameter "mkt" as a query parameter. Instead I was passing it as a request header. This is now working (tested on Postman)

    If someone can answer the second part of the question -

    Where is the testing console ?

    Thanks a bunch,

    TRH


    Thursday, March 7, 2019 5:59 PM
  • I think I'm good. Microsoft has the console built into the page - 

    https://azure.microsoft.com/en-us/services/cognitive-services/bing-entity-search-api/

    Its the search box on the left side.

    Was expecting a separate "page".

    Thursday, March 7, 2019 6:31 PM