Worker doesn't show any logs/Cron job fails when code is good
As strange as the title is, that's exactly what my issue is. My code is a simple discord tool and it's been running fine but suddenly decides to not do anything. I noticed it with when i was trying to implement a new feature and the code was broken and I saw the Exception logs - as expected, but when I fixed it, there would no longer be any logs, Real Time Logs page would just keep spinning on "Websocket connection established. Listening for events..." and that's it. Cron events page would show show the cron job erroring out but no logging is available. doesn't return anything either. If I intentionally break the code again, I get the logs and everything, what's up with this exactly?
At the moment, I've minimised the code to simply:
DEBUG_CHANNEL
is just a webhook URL for test purposes. Am I missing something?3 Replies
It does randomly occasionally work for some reason, but I'd love to know what is breaking it potentially so I can deal with it from my end
I'm encountering the same issue. Previous versions of my worker show that it works. A newly deployed worker no longer receives requests. The changes that were made to the code were limited to just renaming variables, types. Nothing that would break it.
The strange part for me was if I intentionally broke the code it would give me lots so I didn't really understand.:NotLikeThis: