Scheduled Worker 504 Gateway Time-out

Hello, I'm suddenly getting a 504 Gateway Time-out when visting http://localhost:8787/__scheduled?cron=*+*+*+*+* to test my scheduled worker via npx wrangler dev --test-scheduled. This only happens when local mode is turned off. If local mode is enabled I just get an error in the console stating the table does not exist (which is correct). I'm not really sure what could have caused this. I am on my master branch which was working a couple days ago, so I have changed no code. Does anyone have ideas on what could cause this? Happy to supply any code/config. Thanks.
4 Replies
Lambo
LamboOP12mo ago
I've added some new logs to debug and come across the following error:
'binding DB of type d1 failed to generate. Please try again later or contact support.
[code: 10021]
'binding DB of type d1 failed to generate. Please try again later or contact support.
[code: 10021]
Looking up the error code it seems pretty generic with the Cloudflare API firing it in multiple scenarios, so not really sure what to do with it.
KOAD_DlDuck
KOAD_DlDuck12mo ago
youre example: 'binding DB of type d1 failed to generate. Please try again later or contact support. [code: 10021] try adding more text like. Failed genaration upon binding DB of type prefix DB D1 Failed. backwards and normal you feel me?
Lambo
LamboOP12mo ago
I'm not sure I understand, sorry?
KOAD_DlDuck
KOAD_DlDuck12mo ago
just reversing it and adding the first text
Want results from more Discord servers?
Add your server