Larvel API wakes up from nap with a error but when hit again with another request it works
Hey guys im currently using Laravel 10. And i am trying to use the "sleep" feature but when my app is sleeping, and if i do a get request it will take some time to spin up (expected) but then it wil throw a NGINX problem shown on the screenshot below.
any idea?
10 Replies
Project ID:
N/A
N/A
are you using a health check?
yea
but just on /
Solution
try implementing a readiness health check
should i just remove
it
imma try that
you are doing the exact opposite of what i said, you always want to have a health check, preferably not
/
thoughaight bet
thanks
a proper readiness health check is going to be best, not just return 200, check if you are connected to the database and such
bet thank you, i will cook it up now
💯