Skip to content

Uncaught Error" when deploying a producer/consumer #188

Description

@avioforse

What versions & operating system are you using?
System:
OS: Linux 6.8 Linux Mint 22.1 (Xia)
CPU: (12) x64 AMD Ryzen 5 4600G with Radeon Graphics
Memory: 7.94 GB / 14.99 GB
Container: Yes
Shell: 5.2.21 - /bin/bash
npmPackages:
wrangler: ^4.119.0 => 4.119.0

Please provide a link to a minimal reproduction
https://github.com/avioforse/producer-worker

Describe the Bug
The code used was taken from the documentation:
https://developers.cloudflare.com/queues/configuration/javascript-apis/
The producer and consumer are launched locally.
However, upon deployment, it crashes with the error "Uncaught Error."

Please provide any relevant error logs
✘ [ERROR] A request to the Cloudflare API (/accounts/a5c6e109ce1ad693e0d3ebf59e31d990/workers/scripts/producer-worker) failed.

Uncaught Error: Dynamic require of "fs" is not supported
at null. (pyodideRuntime-internal:emscriptenSetup:6:9)
at null. (pyodideRuntime-internal:emscriptenSetup:206:16)
at null. (pyodideRuntime-internal:emscriptenSetup:29530:22) in
instantiateEmscriptenModule
at null. (pyodide-internal:python:157:78)
at null. (pyodide-internal:jaeger:12:16) in enterJaegerSpan
at null. (pyodide-internal:python:157:30) in loadPyodide
at null. (pyodide:python-entrypoint-helper:107:35)
at null. (pyodide:python-entrypoint-helper:113:11)
at null. (pyodide-internal:jaeger:12:16) in enterJaegerSpan
at null. (pyodide:python-entrypoint-helper:102:18) in getPyodide
[code: 10021]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions