cloudflare / cloudflare/python-workers-examples

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

Open
#6 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
309
Forks
69
Avg merge
3d 11h
Merged PRs (30d)
13

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.