tripit / api

TripIt's API Documentation and Support Forum
http://www.tripit.com/developer
Other
47 stars 16 forks source link

Getting a 403 on https://api.tripit.com/v1/list/trip?format=json #270

Open dssinger opened 3 years ago

dssinger commented 3 years ago

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.

Thanks.

Leggatt commented 3 years ago

Greetings,

Sorry you experienced this. We are investigating the problem.

Thank you for using Tripit.

kgutwin commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Hi David,

We had some network issues, would it be possible to give us the ip(s) you are using when you try to access tripit?

Thanks,

Vicki

On Tue, Nov 23, 2021 at 5:05 PM David Singer @.***> wrote:

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?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tripit/api/issues/270#issuecomment-977209343, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIE4L5PQQN4SJAD6HKEL7TUNQFZ3ANCNFSM5G3PEGZQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

dssinger commented 3 years ago

45.33.34.52 and 73.223.248.81 - both just failed using OAuth.

dssinger commented 2 years ago

Is there any new information on this problem? It's still failing for me.

dssinger commented 2 years ago

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 commented 3 months ago

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.