lukeed / freshie

(WIP) A fresh take on building universal applications with support for pluggable frontends and backends.
MIT License
155 stars 2 forks source link

Error #13

Closed rjsandman closed 3 years ago

rjsandman commented 3 years ago

Hi Luke,

I'm getting this error for my cloudflare worker:

Error: Something went wrong! Status: 400 Bad Request, Details { "result": null, "success": false, "errors": [ { "code": 10021, "message": "Uncaught Error: Some functionality, such as asynchronous I/O, timeouts, and generating random values, can only be performed while handling a request.\n at line 1 in t\n at line 1 in n\n at line 1 in wake\n at line 1 in Qt\n at line 1 in Wt\n at line 1\n at line 1 in registerPlugin\n at line 1\n at line 1 in n\n at line 1\n" } ], "messages": [] }

Any idea what this is?

Thanks

lukeed commented 3 years ago

Hey, no idea based on this alone.

If you can send or invite me to a reproduction, I'll take a look. Can find me elsewhere if you need to keep it private

rjsandman commented 3 years ago

I sent you an invite. ---- On Thu, 19 Nov 2020 17:06:15 -0500 notifications@github.com wrote ---- Hey, no idea based on this alone. If you can send or invite me to a reproduction, I'll take a look. Can find me elsewhere if you need to keep it private

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

lukeed commented 3 years ago

Closing as we've taken care of this 👍

Had to do with the GSAP animation library being loaded within the Worker runtime code. Might need to think of a way to handle this easily, since it's likely to show up frequently with varying browser-facing libraries.