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?
Solution:
try implementing a readiness health check
No description
P
Percy14d ago
Project ID: N/A
F
Faith14d ago
N/A
B
Brody14d ago
are you using a health check?
F
Faith14d ago
yea but just on /
Solution
B
Brody14d ago
try implementing a readiness health check
F
Faith14d ago
should i just remove it imma try that
B
Brody14d ago
you are doing the exact opposite of what i said, you always want to have a health check, preferably not / though
F
Faith14d ago
aight bet thanks
B
Brody14d 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
F
Faith14d ago
bet thank you, i will cook it up now 💯
Want results from more Discord servers?
Add your server
More Posts
Failing to spin up TypesenseI am trying to setup a Typesense service from ```typesense/typesense:26.0``` docker image. I added aBug?: Groups around the apps disappeared and the arrangement of the apps was suddenly mixedWhen I just logged in and looked at my deployments, the groupings that I created were gone and the dClarification on PricingDoes the pricing apply to a project or per single service under that project? So for example, I havCan't delete environmentHey, I've been trying to delete an environment on my project for weeks but it's still stuck on "ApplIssue with chunk loadEverything is fine in production domain provided by railway, but not in custom domainDirectus: Forgot Superadmin PasswordHello I have this directus project self hosted on railway. I somehow changed to a new device and didGetting a "prefix not found" error when running railway upI'm trying to deploy a monorepo via railway CLI but only one of the repos is deployed on railway, soManually Deploy from Branch?There doesn't seem to be a clear way to manually deploy from a branch? I had a server that was auto Build Command Helpis it possible to make railway use dotnet 4.8 instead of 6.0?Read and write txt file in repositoryI have a github repository with a python script, Procfile, requirements.txt and points.txt but the pBuild PHP 7.3 with Laravel. How can i do it?I have an old application. How can i make build in service?TLS certificate has taken over 24 hours for a custom domainI have 2 custom domains - 1 using a subdomain and 1 using the root. The one on the subdomain is workRedis For Vector Search (GenAI)I have Redis database deployed on Railways Pro plan. I want to add LLM Retrieval Augmented GeneratioWhat is the best way to install private npm packages?My usecase is that my node app needs to install a package from a private github registry. What I wouCron job not running at specific timeHi I have a cron job that should run every hour 0 * * * *. For some reason, it skips runs sometimHow much is Railways scalable?Is there any information how much it is scalable in reality? According to the price, can the serviceCORS Policy problem with backboard.railway.app/graphqlI'm getting a CORS error in my console when using the Railway dashboard. ``` Access to fetch at 'hOutbound ip addressesHi, what are railway's outbound ip addressesBest way to setup back up system for my postgres?Looking to do a backup every X number of hoursRailway <> Hetzner servers cant communicateWe had a deployment running succesfully for the last week today, the railway instances cant communi