You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Getting a 403 on https://api.tripit.com/v1/list/trip?format=json #270
My code started getting a 403 from the TripIt API at around 12:30pm Pacific Time today (October 27) when I try to get the list of trips from TripIt. I have made no changes.
Just to verify what's happening, I downloaded a fresh copy of the API and ran tripitsh. I logged in with my userid and password, then if I issue t.list_trip() I get a 403 error for the same URL.
I am still having the problem. I asked the Help id to authorize my account for web access just to make sure that wasn't the cause - it wasn't; I still get the 403 whether I log in with my Web credentials or use OAuth.
I found out what's going on and applied a fix to my copy of tripit.py, which I'd already modified to work in Python 3.
The server at api.tripit.com was blacklisting requests with a User-Agent of "python-urllib/3.9"
I changed the User-Agent to look like a browser and my code worked again.
Activity
Leggatt commentedon Oct 29, 2021
Greetings,
Sorry you experienced this. We are investigating the problem.
Thank you for using Tripit.
kgutwin commentedon Nov 18, 2021
I have been having this 403 error for quite some time as well. Are there any updates?
I have tried to roll my API access token through the developer console, but I get a "404" response from the web site.
dssinger commentedon Nov 23, 2021
I am still having the problem. I asked the Help id to authorize my account for web access just to make sure that wasn't the cause - it wasn't; I still get the 403 whether I log in with my Web credentials or use OAuth.
Do you have any updates?
VickiWis commentedon Nov 23, 2021
dssinger commentedon Nov 23, 2021
45.33.34.52 and 73.223.248.81 - both just failed using OAuth.
dssinger commentedon Dec 8, 2021
Is there any new information on this problem? It's still failing for me.
dssinger commentedon Jan 16, 2022
I found out what's going on and applied a fix to my copy of tripit.py, which I'd already modified to work in Python 3.
The server at api.tripit.com was blacklisting requests with a User-Agent of "python-urllib/3.9"
I changed the User-Agent to look like a browser and my code worked again.
dssinger commentedon Sep 4, 2024
I have been getting a 403 again for about a week but only from one IP address, 45.33.34.52. The identical code runs fine from my home system.
Could you unblock that address and let me know how to keep it from being blocked? Is there a rate limit on the API?
Thanks.
Try fixing issue tripit/api#270