I observed recently that for some cdn url of instagram the GET request is giving >400 response.
https://scontent.cdninstagram.com/t51.2885-15/26184672_169643143794471_5913317750591193088_n.jpg
If I try same url from same code from local it works. so, does it block content delivery by IP address of the request?
Instagram now also has a check-out feature where users can buy an item. All these things are largely because of CDNs.
No. Users can report abusive behavior and accounts, but they can't actually block someone's IP themselves.
"Canadian" is the most common definition for CDN on Snapchat, WhatsApp, Facebook, Twitter, Instagram, and TikTok. CDN.
As the 400 error could be interpreted as:
Invalid URL
Bad Request
The request hostname is invalid.
The request could not be understood by the server due to malformed syntax.
You may try to :
And retry to get the data again.
Apparently it is not due to cache or cookies,
So please note that in the specific case of Instagram, and according to this issue the 400 error
could also mean:
{ "meta": { "error_type": "OAuthAccessTokenException", "code": 400, "error_message": "The access_token provided is invalid." } }
You may also note that according to the rate limit documentation when the max. rate limit was reach Instagram will raise a 429 error
, and from the same source,
You may also receive responses with an HTTP response code of 400 (Bad Request) if we detect spammy behavior by a person using your app. These errors are unrelated to rate limiting.
So my last advice is to evaluate if your production server may be considerate by Instagram as a "spammy server" (because of too much requests)
In that case, you may still try to review your app and getting an access token. But keep in mind, that if your app was reviewed you still have this Global Rate Limits constraint:
Global rate limits are applied inclusive of all API calls made by an app per access token over the 1-hour sliding window, regardless of the particular endpoint. Rate limits also apply to invalid or malformed requests.
Sandbox 500 /hour
Live 5000 / hour
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With