Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ› Crash when trying to use connor4312/cockatiel #3226

Open
roziscoding opened this issue Dec 10, 2024 · 0 comments
Open

πŸ› Crash when trying to use connor4312/cockatiel #3226

roziscoding opened this issue Dec 10, 2024 · 0 comments

Comments

@roziscoding
Copy link

roziscoding commented Dec 10, 2024

As described in this issue, errors with the following error whenever trying to use the retry function from that library.

✘ [ERROR] service core:user:worker: Uncaught 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. https://developers.cloudflare.com/workers/runtime-apis/handlers/

    at null.<anonymous> (core:user:worker:433:28)
    at null.<anonymous> (core:user:worker:684:3)



✘ [ERROR] The Workers runtime failed to start. There is likely additional logging output above.

AFAIK the library does no unallowed operations, so this seems like a failure in detecting those.

Repro code:

// repro.js
import { retry } from 'cockatiel'

retry()

Run with npx wrangler dev repro.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant