-
Notifications
You must be signed in to change notification settings - Fork 26
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
HTTP Error 404: Not Found #14
Comments
Seems to be the same like #2 |
It seems that travis now requires a 'user-agent' and 'accept' header - see https://docs.travis-ci.com/api#making-requests |
I recently started getting this as well. @winterDroid Did you solve this by providing those headers in the request made from the script? |
@dleve123 Yes I solved this by providing a user agent. But you need to contact the travis support before so that they can whitelist your user agent. |
@winterDroid Wonderful, thanks for the info. Of course that's not included in the docs:
Were you able to add the proper opener = urllib2.build_opener();
opener.addheaders = [('User-agent', '#{my_user_agent}/1.0.0'), ('Accept', 'application/vnd.travis-ci.2+json')]
opener.open(url).read() Python isn't my forté, so just doubling checking that I'm not missing something! Thanks! |
Update: Setting the |
When I try to use this script, I get all the time an
HTTP Error 404: Not Found
error when I try to get the access token with my github token. Do you have an idea why?The text was updated successfully, but these errors were encountered: