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

querying-the-web-api examples don't work due to missing user-agent-headers #663

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

suren-m
Copy link

@suren-m suren-m commented Apr 1, 2022

Fixed runtime decoding error occurring due to 403 responses from gh api because of missing user-agent header

fixes #662

Feel free to close if you still prefer to use reqwest::get for the example but with a different api that doesn't require user-agent-header. I'm currently unaware of how to pass headers along with reqwest::get and thus used a reqwest client in the fix

Fixed runtime decoding error occurring due to 403 responses from gh api because of missing user-agent header
@toanju
Copy link

toanju commented May 1, 2022

Ran into the same issue. Thanks for writing this up. Worked like a charm. I wish it was already merged ;)

@tompscanlan
Copy link

Also hit the same thing and this is better work than I came up with :)

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

Successfully merging this pull request may close these issues.

querying-the-web-api examples don't work due to missing user-agent-headers
3 participants