Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The API has poor compatibility and does not support encoding in responseFilter parameter #168

Open
git-syl opened this issue Oct 29, 2023 · 0 comments

Comments

@git-syl
Copy link

git-syl commented Oct 29, 2023

[Enter feedback here]

The API has poor compatibility and does not support encoding,
Please add support for encoding.

The responseFilter of the bingSearchApi does not support encoded parameters. Usually, the most httpclient request framework encodes commas. In this case, the bingapi will throw an error.

curl --location 'https://api.bing.microsoft.com/v7.0/search?q=what%20is%20new%20spring%20boot%20version%3F&responseFilter=webpages%2Cnews' \
--header 'Ocp-Apim-Subscription-Key: KEY'

&responseFilter=webpages%2Cnews (origin char is : responseFilter=webpages,news )

Error:
"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": "webpages%2Cnews" }]}


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant