Larvel API wakes up from nap with a error but when hit again with another request it works
definewater
HOBBYOP

2 years ago

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?

14 Replies

definewater
HOBBYOP

2 years ago

N/A


brody
EMPLOYEE

2 years ago

are you using a health check?


definewater
HOBBYOP

2 years ago

yea


definewater
HOBBYOP

2 years ago

but just on /


brody
EMPLOYEE

2 years ago

try implementing a readiness health check


definewater
HOBBYOP

2 years ago

should i just remove


definewater
HOBBYOP

2 years ago

it


definewater
HOBBYOP

2 years ago

imma try that


brody
EMPLOYEE

2 years ago

you are doing the exact opposite of what i said, you always want to have a health check, preferably not / though


definewater
HOBBYOP

2 years ago

aight bet


definewater
HOBBYOP

2 years ago

thanks


brody
EMPLOYEE

2 years ago

a proper readiness health check is going to be best, not just return 200, check if you are connected to the database and such


definewater
HOBBYOP

2 years ago

bet thank you, i will cook it up now


definewater
HOBBYOP

2 years ago

💯


Loading...