Skip to content

FastAPI Example: TypeError: response.body.arrayBuffer is not a function #6

Open

Description

@TheBitmonkey

I am getting this error on the fastapi example:

Starting local server...
[wrangler:inf] Ready on http://127.0.0.1:8787
Loading fastapi, starlette, anyio, sniffio, openssl, pydantic, typing-extensions, pydantic-core, annotated-types
X [ERROR] Error in makeHandler

X [ERROR] Uncaught (in promise) TypeError: response.body.arrayBuffer is not a function

  at loadBundle (pyodide-internal:loadPackage:36:36)

I can't figure it out at all. Maybe import asgi does not work anymore?

Activity

  1. jcrreis commented on May 24, 2024

    @jcrreis

    have the same error

  2. koast18 commented on May 26, 2024

    @koast18

    same error, it seems something changes breaks that. simply downgrade is a workaround.

    npm install wrangler@3.55.0

  3. hoodmane commented on May 26, 2024

    @hoodmane
    Contributor

    Thanks for the report @TheBitmonkey! I'll look into this as soon as I have a moment.

  4. laike9m commented on Jun 10, 2024

    @laike9m

    Any update?

  5. garrettgu10 commented on Jun 10, 2024

    @garrettgu10
    Contributor

    @laike9m a fix is out, i'm going to try to update wrangler tomorrow. Thanks for your patience!

  6. mikenomitch commented on Jun 26, 2024

    @mikenomitch
    Contributor

    Hey all, a fix for this specific issue is technically out, but FastAPI is still failing due to another issue.

    We're currently working on the broader issue, but probably won't have a new version of wrangler out with the fix until next week. Sorry about this :( We are also updating the gaps in automated testing that allowed us to miss this in the first place.

    For the time being, if you downgrade to wrangler 3.55.0, you can get FastAPI working. Hopefully this workaround is only needed until next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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