You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've set up a basic API using Cloudflare Workers + Hono. When integrating the WorkOS Node.js library I'm seeing Unexpected error: TypeError: Illegal invocation when calling asynchronous WorkOS functions (such as userManagement.authenticateWithCode).
Error: Unexpected error: TypeError: Illegal invocation
at WorkOSWorker.handleHttpError (file:///Users/[...]/api/.wrangler/tmp/dev-8ZYyNY/index.js:4189:17)
at WorkOSWorker.<anonymous> (file:///Users/[...]/api/.wrangler/tmp/dev-8ZYyNY/index.js:4130:18)
at Generator.throw (<anonymous>)
at rejected (file:///Users/[...]/api/.wrangler/tmp/dev-8ZYyNY/index.js:4038:36) {
stack: Error: Unexpected error: TypeError: Illegal invoca…ps/api/.wrangler/tmp/dev-8ZYyNY/index.js:4038:36),
message: Unexpected error: TypeError: Illegal invocation
Extra
I'm using the latest version of the library (^7.11.3). I've tried to downgrade the version (down to 7.0.0) and I'm still seeing this. I'm also seeing this locally, not just remotely. Worth mentioning that code and clientId are strings.
My best guess is that this is related to Hono? I'm unsure how to fix it, so any guidance is much appreciated.
The text was updated successfully, but these errors were encountered:
Overview
I've set up a basic API using Cloudflare Workers + Hono. When integrating the WorkOS Node.js library I'm seeing
Unexpected error: TypeError: Illegal invocation
when calling asynchronous WorkOS functions (such asuserManagement.authenticateWithCode
).Example
Error
Extra
I'm using the latest version of the library (
^7.11.3
). I've tried to downgrade the version (down to 7.0.0) and I'm still seeing this. I'm also seeing this locally, not just remotely. Worth mentioning thatcode
andclientId
are strings.My best guess is that this is related to Hono? I'm unsure how to fix it, so any guidance is much appreciated.
The text was updated successfully, but these errors were encountered: