-
Notifications
You must be signed in to change notification settings - Fork 18
Rate limit issues with Instagram (VPN/SSR/Dev) #12
Comments
@arbiasgjoshi is this the link you are using? https://www.jamesmoriarty.xyz/react-instagram-authless-feed/ |
@arbiasgjoshi It was not even working for me at first but then I turned off my VPN and its working fine now. |
@jamesmoriarty - What type of details do you need? My setup was pretty simple to be honest, simply added this tag:
Also, my screenshot above, is from your own hosted domain, even there I'm getting that error! EDIT: I also tried with different VPN to see if the issue is due to Geolocation, but the same error kept happening for me! |
I'll add some error handing around this and an error boundary to the example. Looks like you are triggering a rate limit on the instagram side and its trying to force you to auth your session. Appears to be a frequent issue when on VPN with shared source/origin IPs. |
@arbiasgjoshi I've added some more error handling in this PR: #13 I've redeployed https://www.jamesmoriarty.xyz/react-instagram-authless-feed/ with an error boundary. |
I have only one question with this new error handling you added! Are you assuming I'm using VPN? The issue happened without VPN. I tested with VPN only due to the comment above implying that it works! |
I'm hitting this issue as well. Can we look at a more graceful degradation model? currently crashes the page. |
Hey @MichaelZaporozhets, because the rate limit is enforced on Instagram's side its hard to predict. I've changed the functionality to bubble up an exception so it can be handled with an error boundary. The point being the component isn't opinionated in how you should handle this failure. See https://github.com/jamesmoriarty/react-instagram-authless-feed/blob/master/src/index.js#L37 and https://reactjs.org/docs/error-boundaries.html |
Hi, does anybody know what is the rate limit of IG? I mean this requests to get IG posts with this Feed component. @jamesmoriarty error boundary works perfect - thanks for that! |
Same here, works in test env but after a day in production it fails. |
@mastir are you rendering serverside or anything obliviously different from the examples? |
@jamesmoriarty Oh, thanks. No, we do not use server side rendering. You should write in BOLD CAPS about it, its like <5% of React widgets are targeted for server side usage, i`m sure most of people here simple did import your widget into front end projects and will see rate limits problem soon. |
@mastir appreciate the feedback. I had never seen the rate limit kick in until it was reported here. I've managed to reproduce it but refreshing the feed maybe x100/ hour from an Australian public IP range and it appears to redirect to the auth/login page for ~24-48 hours. I'll think about how to better communicate: cc/ @hvma411 |
Just an FYI for anyone watching this thread: upgrade to v2.0.0 because instagram.com introduced CORs breaking most/all unofficial feed libraries and requires an additional workaround. |
This change fixes this and introduces a new challenge: #19 |
The repo has been throwing these errors in the past couple of days:
The text was updated successfully, but these errors were encountered: