Repository navigation
Closed
Labels
product:pagesRelating to Cloudflare Pages: https://pages.cloudflare.com/
Description
When hosting my Jekyll site using npx wrangler dev _site (after building it using bundle exec Jekyll build) I get this:
chris@Chriss-MacBook chrisfnicholson % npx wrangler pages dev ./_site
Serving ./_site...
Sleeping 5 seconds to allow proxy process to start before attempting to automatically determine port...
To skip, specify the proxy port with --proxy.
[proxy]: INFO: Accepting connections at http://localhost:65385
Automatically determined the proxy port to be 65385.
Compiling worker to "/var/folders/hk/hdqzrwq512s50gxkng07_62w0000gn/T/functionsWorker.js"
Finished in 87ms.
[HPM] Proxy created: / -> http://127.0.0.1:65414
[HPM] Proxy created: / -> http://127.0.0.1:65385
Serving at http://127.0.0.1:8788/
/Users/chris/Documents/GitHub/chrisfnicholson/node_modules/wrangler/wrangler-dist/index_node.js:27064
throw ex;
^
TypeError: Response with null body status cannot have body
at new Response (/Users/chris/Documents/GitHub/chrisfnicholson/node_modules/undici/lib/fetch/response.js:160:15)
at new Response (file:///Users/chris/Documents/GitHub/chrisfnicholson/node_modules/@miniflare/core/dist/src/index.js:678:13)
at Object.construct (file:///Users/chris/Documents/GitHub/chrisfnicholson/node_modules/@miniflare/core/dist/src/index.js:1150:29)
at next (/var/folders/hk/hdqzrwq512s50gxkng07_62w0000gn/T/functionsWorker.js:426:16)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async EventTarget.[kDispatchFetch] (file:///Users/chris/Documents/GitHub/chrisfnicholson/node_modules/@miniflare/core/dist/src/index.js:1018:13)
at async Server.<anonymous> (file:///Users/chris/Documents/GitHub/chrisfnicholson/node_modules/@miniflare/http-server/dist/src/index.js:430:20)
I get that error when I try to load the homepage.
I tried to follow the directions exactly (I'm doing this so I can debug a function that's not working properly) but I don't have the first clue what's going wrong.
Metadata
Metadata
Assignees
Labels
product:pagesRelating to Cloudflare Pages: https://pages.cloudflare.com/
Activity
GregBrimble commentedon Nov 20, 2021
Hi,
Thanks for the report. We've identified the bug here and already have written a fix. It'll be going out in a release on Monday.
In the meantime, if you turn off your browser caching, that might help. Sorry for the inconvenience!
Greg
[-]"Response with null body status cannot have body"[/-][+][pages] "Response with null body status cannot have body"[/+]GregBrimble commentedon Nov 22, 2021
This should be fixed in the latest alpha! Try it out with
nom install wrangler@alpha:)Improve error handling for Miniflare errors (cloudflare#35)
Address remaining low-priority findings from REVIEW-17452
Address remaining low-priority findings from REVIEW-17452