If my slash endpoint has been unused and entered sleep mode, this is the error I get when I am waking it back up by making a request from the application itself. I can only reproduce this on cold starts of the app after a longer period of time.
After this first error and logging out and logging back in to initiate a reload, the app then moves along normally as expected.
Here are the Headers received during the preflight check after the endpoint has been warmed up.
I will capture the preflight response next time it happens, but the error above is all I captured last time.
I am thinking I can resolve this by putting in some kind of check to make sure that the server is warmed up before sending the first query by adding the option skip: true
until the warming cycle has been initiated. (I am using Apollo client if that makes any difference)
@tejas any thoughts on how to await for a warm up before sending a preflight request?