What to do with a 504 Bad Gateway response from 3rd party API using Javascript?
I have a function that calls a 3rd party API (via the function checkPosition
)which sometimes fails (this is after a 30 sec timeout). I have the function around a Try – Catch, but the 504 crashes the program.