Instagram API "504 Gateway Time-out" - api

our website based on Instagram API recently sometimes encounters Instagram API's error response of "504 Gateway Time-out", we are a honest website and not abusing the API, why is this happening?

It seems to be an issue at Instagram. We have been receiving the same issue intermittently since the 3rd May. A quick search on twitter will show you that the same thing is happening to many other people around the world recently:
https://twitter.com/search?q=Instagram%20504%20gateway
The error itself is because an Instagram server not responding to the request from the load balancer or gateway (nginx in this case) in time, which leads to the gateway sending you the 504 error. This is usually caused by load on the web server or database, network routing issue or software error.
You can read the status code definitions here:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
Instagram will have to fix this issue, you can file a bug report here:
https://help.instagram.com/contact/364531043625021

Related

Google API blocked my app ip address and returns CAPTCHA

My app uses Google API and it worked well for a long time but recently Google blocked the IP address of my server for about an hour and every response to the API was as follows: Our systems have detected unusual traffic from your computer network. This page checks to see if it's really you sending the requests, and not a robot... - they attached CAPTCHA form field as html.
My app is also an API so CAPTCHA can not be done because it is in json format (HTML in json cannot be rendered).
Only app users sends requests so I have a little control over it. Of course, I limit the number of requests per user, but it was not the case. Limits at google console are also fine.
I wonder how can I prevent this happening in the future? Is there any way I can ask them directly? Have you experienced this?

linkedin oauth2 login returns "504 Gateway Time-out"

I'm using linkedin login on my website. Everything was working until last week, when it started returning "504 Gateway Time-out" error. I did not change anything in my application settings on linkedin developer site nor in my application code. Weird thing is that it still works fine on localhost, but on production it returns error described above. My question is:
Is it more likely to be a problem on Linkedin side? Because for me it seems that my website is trying to connect to linkedin API but it never gets a response.
Unfortunately I have not found any address that I could contact regarding this problem. Is there any linkedin support for this ? Or have any of you were experiencing similar problem?
Thank you
I had the same issue the solution was to set the header Content-Type to application/json.
The LinkedIn Developer API appears to be down. Requests to:
api.linkedin.com/v1/people/
are failing consistently.
And while this might be a separate issue, it's worth noting that the documentation for integrating with their OAuth2 service is no longer accessible at https://developer.linkedin.com/docs/oauth2.

is this error of amadeus api from my code?

hello amadeus users i'm facing this problem
i'm amadeus beginner
when i started to use amadues sandbox php client
the system worked for me for about an hour then this error appeared from yesterday
this error appears in php and in site page
is this system related to my code or my api or general network failure
Our API platform is currently going through a maintenance check. Some APIs may get disrupted during that time. The platform will be available again in a short time.

'Cannot call API on behalf of this user' on FB API call

I am having trouble with facebook API call. I am using Koala for server side api call but recently came into issue making api call. So I tried to bypass koala call and did raw api http call using call but to no avail.
When I do curl from development machine it works fine.
curl "https://graph.facebook.com/me?oauth_token=my_token
It returns profile details, but the same thing done from production machine, it's throwing the exception
{"error":{"message":"Cannot call API on behalf of this user","type":"OAuthException","code":200}}
Does anyone had the same issue? Like to hear from you guys.
I found the source of the problem (on our site, at least). In Facebook's developer console (https://developers.facebook.com/apps), our app was showing an invalid privacy policy. Due to this, Facebook had automatically placed our app into Sandbox Mode.
Updating our privacy policy and (more notably) removing our app from Sandbox Mode caused this error to cease.
Other users seem to have had some success with removing regional (country-specific) restrictions on who can and cannot log in to their app (https://groups.google.com/forum/#!topic/django-social-auth/XaE5dFXEqhA)
Best of luck! :)
I had the App in dev mode. All I did was remove the subscription & resubscribe my webhook server and this worked for me.

soundcloud api - too many requests

My soundcloud app (that makes quite a lot of requests) recently started receiving the error:
429 - Too Many Requests
for all DELETE commands (when I attempt to delete a follow relationship). This was working perfectly last week. Do throttling limits exist for soundcloud api requests? I looked through the developer's guide but haven't found anything yet. The support page said to post a question here.
A 429 Status indicates that your application is making too many requests to the /me/followings endpoint. This isn't throttling per say, but an attempt to circumvent follow-spam applications.
How many requests are you making and with what frequency? If you back off for a while, are you able to get a successful response?