Script Threw Exception... how to debug?

I think I have perfected my code and I’ve tested in the
https://dash.cloudflare.com/.../workers/edit/ section…

However, I still see “Script Threw Exception” errors reported in the statistic report!

Please help! How do i resolve this without knowing where the script “crashed”?

Any ideas how to resolve this? even if I do try {} catch {}, how do i store the logging or where is the log for exception errors? Out of 1190 runs, there’s 1 error… this is bugging me averaging 1 error per 1k request now.

Total

1.19k

Success

611

Errors

1

Subrequests

578