Getting "Gateway Timeout: 504 Gateway Time-out" error in bulk on API calls.
Monday, November 2, 2020 at 07:39amPlease refer to the attached logs, we are getting "Gateway Timeout: 504 Gateway Time-out" error in bulk. Request you to please have a look and help us with some resolution.
We are first calling Rest API to retrieve 100 packages and for each package we are then making 2 more other API calls, and we are doing this every 5 mins, for example:
https://apps.e-signlive.com/api/packages?query=COMPLETED&from=1131511&to=1131610
https://apps.e-signlive.com/api/packages?query=COMPLETED&from=1131514&to=1131613
https://apps.e-signlive.com/api/packages?query=COMPLETED&from=1131610&to=1131709
There is I guess some 1000 API calls per 1 minute limit, so we even tried by reducing the frequency from every 5 minutes to every 30 minutes, but still getting the same error.
2020-11-02T02:20:00.264-05:00 [APP/PROC/WEB/0] [OUT] 2020-11-02 07:20:00.263 INFO 15 --- [ scheduling-1] c.o.a.r.c.OneSpanAPIRetrievalController : https://apps.e-signlive.com/api/packages?query=COMPLETED&from=1131511&to=1131610
2020-11-02T02:25:24.212-05:00 [APP/PROC/WEB/0] [ERR] org.springframework.web.client.HttpServerErrorException$GatewayTimeout: 504 Gateway Time-out: [<html>
2020-11-02T02:25:24.212-05:00 [APP/PROC/WEB/0] [ERR] <head><title>504 Gateway Time-out</title></head>
2020-11-02T02:25:24.212-05:00 [APP/PROC/WEB/0] [ERR] <body bgcolor="white">
2020-11-02T02:25:24.212-05:00 [APP/PROC/WEB/0] [ERR] <center><h1>504 Gateway Time-out</h1></center>
2020-11-02T02:25:24.212-05:00 [APP/PROC/WEB/0] [ERR] <hr><center>nginx</center>
2020-11-02T02:25:24.212-05:00 [APP/PROC/WEB/0] [ERR] </body>
2020-11-02T02:25:24.212-05:00 [APP/PROC/WEB/0] [ERR] </html>
Reply to: Getting "Gateway Timeout: 504 Gateway Time-out" error in bulk on API calls.
Wednesday, November 4, 2020 at 12:54pmHi Manpreet,
Sorry for the late reply, is the issue consistent now? Because you had high volume API traffic hitting OneSpan Sign server, it could be possible that the gateway had limited your API access. It's always suggested to submit a support ticket to [email protected] and followed support team's advice when you wanted to perform bulk operation for example when downloading and archiving a large amount of transactions.
Duo
Reply to: Hi Manpreet, Sorry for…
Wednesday, November 4, 2020 at 02:35pmHi Duo,
yes the issue is consistent since around 2 weeks. We have already written to [email protected] (Case CS0048432) and awaiting for some resolution. From our end, we reduced the frequency of API calls to (1/4)th, but the "504 Gateway Timeout" error is still persisting. We have been monitoring the logs of our microservice. This error was not observed initially for about 3 weeks. We started seeing this error in bulk from around 19-20 October and is coming till today. There were no changes made in the microservice. We suspect that, may be some Onespan server's timeout configuration change led to this error. We would really appreciate any help on this.
Thanks & Regards,
Manpreet Sidhu