Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Good Day,
My question is about query delimitted params sent to Bing Search API at Azure Logic App consumption plan.
The request operating on postman, but does not on Azure Logic App
I'm getting the following error
Appreciate your support
{
"uri": "https://api.bing.microsoft.com/v7.0/search/?",
"method": "GET",
"queries": {
"cc": "SA",
"responseFilter": "Entities,News,Places,Webpages",
"q": "CNN article Our AI future: promise and peril",
"count": "3"
},
"headers": {
"Ocp-Apim-Subscription-Key": "",
"Accept": "application/json",
"Pragma": "no-cache"
}
}
{
"_type": "ErrorResponse",
"errors": [
{
"_type": "Error",
"code": "InsufficientAuthorization",
"message": "Insufficient authorization to access requested resource.",
"moreDetails": "Only these values are allowed: Webpages,Images,Videos,News,SpellSuggestions,entities,places,RelatedSearches,Computation,TimeZone,Translations",
"parameter": "responseFilter",
"value": "Entities%2cNews%2cPlaces%2cWebpages"
}
]
}
This is a limitation of the Bing Search API. The HTTP logic connector by default encodes query parameters, so commas are encoded as %2c. I was, however, able to get around this by putting the responseFilter
query param as part of the URI itself.