question

don-klayman avatar image
don-klayman asked ·

HTTP Status Code: GatewayTimeout

When trying to ringout I occasionally get {"HTTP Status Code: GatewayTimeout"} error on the ApiResponse.  It seems random but I'd like to know what I can do to prevent it.  I've tried cancelling the previous ringout but it doesn't seem to have any effect on the randomness of this error.
topic-default
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

benjamin-dean avatar image
benjamin-dean answered ·
I received some intermittent 504 Gateway Time-out yesterday in the Sandbox API. Are you seeing this in Sandbox or in Production API please?

I've proactively contacted our engineering team about this issue.

In the meantime, the best thing you can do is to have any UI or service workers not begin execution until you receive a 200 response from the RingOut asynchronously. This is easy to achieve using one of our SDKs (if you are not already using one:  https://developers.ringcentral.com/library/sdks.html).
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

don-klayman avatar image
don-klayman answered ·
In the sandbox as I haven't put in for graduation yet for production.  I am actually getting this on the
ringout post: ApiResponse result = sdk.Platform.Post(request);

I also get it on cancel ringout: ApiResponse cancelResult = sdk.Platform.Delete(request);

I never see it on login or logout : var response = sdk.Platform.Login(PhoneNumber, Extension, Password, true);

sdk.Platform.Logout();

If it's an issue on your end that's fine I just need to know.  I'm just trying to find out if there's anything I'm doing wrong.

3 comments Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Are you seeing this consistently, or intermittently please?

I've been experiencing this intermittently on initial requests to specific routes, but then if I re-issue the same request (once the 504 response has been received), the API is behaving as expected.
0 Likes 0 · ·
Once out of every 3 requests.  Yes if I re-issue the same request it might go through.  Now I'm getting a "Forbidden" message and nothing works.
0 Likes 0 · ·
I just tried again and it worked, so intermittent.
1 Like 1 · ·
don-klayman avatar image
don-klayman answered ·
My softphone won't login now so there's definitely issues with the sandbox.
1 comment Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

I am experiencing intermittent authentication issues with the softphone in Sandbox as well and have contacted our Engineering and PM teams to investigate. Apologies for issues, and I'll update this thread when I know more.
0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.