bnason
Explore posts from serversCDCloudflare Developers
•Created by bnason on 6/25/2024 in #workers-help
Error 1101 on code surrounded by try/catch
I'm deploying a Nuxt.js application and my pages event handler is being called but somehow seems to just "stop" executing code and I get the Error 1101 message.
The reason I say stop is that I've added console.log lines between every single statement to pinpoint what is going on and the entire thing is wrapped in a try catch block but the catch is never being called.
4 replies
CDCloudflare Developers
•Created by bnason on 6/24/2024 in #workers-help
import is undefined
I'm using a package called
samlify
which has imports some items from package node-forge
,. For some reason, the node-forge
imports are undefined in the cloudflare worker. I'm getting an error TypeError: Cannot read property of undefined (reading 'decode64') ....
Can anyone help?4 replies
CDCloudflare Developers
•Created by bnason on 6/22/2024 in #workers-help
SAML
I'm looking for a SAML typescript library for my Nuxt pages/worker app. I'm currently trying to use
samlify
but I'm getting a 500 error Disallowed operation called within global scope. Asynchronous I/O (ex: fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope. To fix this error, perform this operation within a handler.
and I believe it's causing it.2 replies