Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

version 3 breaks on cloudflare workers: 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. #297

Open

Description

https://github.com/capaj/faktorio/actions/runs/19192226702/job/54868243201

 ✘ [ERROR] A request to the Cloudflare API (/accounts/***/workers/scripts/faktorio-api/versions) failed.
 
 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> (file:///home/runner/work/faktorio/faktorio/node_modules/.pnpm/@paralleldrive+cuid2@3.0.4/node_modules/@paralleldrive/cuid2/src/index.js:23:25)
 at null.<anonymous> (file:///home/runner/work/faktorio/faktorio/node_modules/.pnpm/@paralleldrive+cuid2@3.0.4/node_modules/@paralleldrive/cuid2/src/index.js:107:38) in init
 at null.<anonymous> (file:///home/runner/work/faktorio/faktorio/node_modules/.pnpm/@paralleldrive+cuid2@3.0.4/node_modules/@paralleldrive/cuid2/src/index.js:134:18)
 [code: 10021]
 To learn more about this error, visit: https://developers.cloudflare.com/workers/observability/errors/#validation-errors-10021

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /