My company has a webapp for customers where they can integrate with Infusionsoft.
For a small number of customers, any request to either the legacy xml-rpc or rest api is returning a 504 Gateway Timeout.
The same requests for other customers are successful.
Is there a chance that my customers have canceled their infusionsoft accounts and this is the response from mashery not receiving a response from infusionsoft api’s?
Also note that the oauth token refresh is successful for all customers.
Yes, since we front our services with Mashery, if an access token is still valid it will make it past the external proxy, but fail to be routed to a live application instance if they have cancelled and the instance was removed.
The issue i’m seeing is that the api calls for specific customers always return a 504 for any api call (legacy or rest) but the access token continues to refresh.
Any suggestions why the auth would continue to work but the api calls consistently fail with a 504 response?
Tokens aren’t directly related to a particular user’s payment status, and since we proxy through Mashery we don’t handle the refresh on our side.
You’ll need to trap 504 exceptions and handle them in an appropriate manner, most likely by invalidating them if they continue to fail in your database so that you don’t consume your API call quota by making requests that will never succeed.
I’m suspecting that the calls you’re making might have a significant influence here? For example, if you’re pulling saved searches, you’ll get a 504 in some cases where the report is too complex of a query. What are the calls you’re using for this interface?
I see Python is involved and it looks like a call related to Users?
It’s getting stopped at the authentication server but the server is reporting incorrect information back to you (like QPS-Allotted should be 25 and Quota-Allotted should be 125000). So it would be something that you would need to contact IS for to look into the mashery logs to track down.