[#731] 504 Gateway Timeout

Migrated from Redmine #731 | Author: Henri Ch
Status: New | Priority: Normal | Created: 2021-07-07


Hello,

I’m getting this error once in a while when using the API: 504 Gateway Timeout

Any reasons? Anything I can do? I’m using https://user-api-v2.simplybook.plus/admin/

Redmine Admin wrote:

please provide more details, which company login, raw http request

Henri Ch wrote:

Even the admin interface is giving me 504.

Here is the url: Appointment booking service and free online booking service

Is it due to high volume? Or the DB being slow? Can we upgrade the server?

Henri Ch wrote:

Here are the errors:
https://covidtest.santemedic.ca/images/error_1.jpg
https://covidtest.santemedic.ca/images/error_2.jpg
https://covidtest.santemedic.ca/images/error_3.jpg

Henri Ch wrote:

Oups here are the screenshots:
https://covidtest.santemedic.ca/images/error_1.jpg
https://covidtest.santemedic.ca/images/error_2.png
https://covidtest.santemedic.ca/images/error_3.png

Redmine Admin wrote:

hi, sorry, it was huge load spike on server. Our engeneers managed to mitigate it and everything went fine

Henri Ch wrote:

Thanks for info.

(Short original content)

Henri Ch wrote:

Hello,

I still get this daily…

[2021-12-21 18:44:02] POST https://user-api-v2.simplybook.plus/admin/auth resulted in a 504 Gateway Time-out response:

^M 504 Gateway Time-out^M ^M

504 Gateway Time-out

< (truncated...) {"exception":"[object] (GuzzleHttp\\Exception\\ServerException(code: 504): Server error: `POST https://user-api-v2.simplybook.plus/admin/auth` resulted in a `504 Gateway Time-out` response: ^M 504 Gateway Time-out^M ^M

504 Gateway Time-out

< (truncated...)

Dmytro Bondarev wrote:

Hi!
Please try to reuse token, instead of making token for each request.

Henri Ch wrote:

I fixed my code to reuse token and it’s working a lot better. However, every day around 8pm Eastern Time, the error shows up for 5 min or so. Every day same thing. I don’t have any specific crons running. I’m wondering if you do something on your side.

Server error: POST https://user-api-v2.simplybook.plus/admin/auth resulted in a 504 Gateway Time-out response:

^M 504 Gateway Time-out^M ^M

504 Gateway Time-out

< (truncated...)

Any ideas?