workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🐛 BUG: Could not proxy request error when running wrangler pages dev in HTTPS

Open zacwebb opened this issue 1 year ago • 1 comments

Which Cloudflare product(s) does this pertain to?

Pages, Wrangler core

What version(s) of the tool(s) are you using?

3.29.0 [Wrangler]

What version of Node are you using?

v20.10.0

What operating system and version are you using?

MacOS Sanoma 14.3

Describe the Bug

Observed behavior

Running a Nuxt server with wrangler pages dev and setting local-protocol to https should work, but instead I'm running into the error:

[wrangler] Could not proxy request: TypeError: fetch failed

Expected behavior

HTTPS should work fine 🥲

Steps to reproduce

See repro readme

Please provide a link to a minimal reproduction

https://github.com/zacwebb/nuxt-wrangler-pages

Please provide any relevant error logs

From wrangler logs:

[wrangler:inf] GET / 502 Bad Gateway (20ms)
✘ [ERROR] Error: Could not proxy request: TypeError: fetch failed

      at
  /path/to/nuxt-wrangler-pages/node_modules/.pnpm/[email protected]/node_modules/wrangler/wrangler-dist/cli.js:105890:29
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async #handleLoopbackCustomService
  (/path/to/nuxt-wrangler-pages/node_modules/.pnpm/[email protected]/node_modules/miniflare/dist/src/index.js:8296:24)
      at async #handleLoopback
  (/path/to/nuxt-wrangler-pages/node_modules/.pnpm/[email protected]/node_modules/miniflare/dist/src/index.js:8338:20)

zacwebb avatar Feb 25 '24 21:02 zacwebb

NuxtHub is now released (which uses Wrangler under the hood), and that's working fine with HTTPS 🎉

zacwebb avatar Feb 29 '24 04:02 zacwebb

@zacwebb in that case, is this issue still relevant?

CarmenPopoviciu avatar Apr 24 '24 14:04 CarmenPopoviciu

Closing due to lack of response.

petebacondarwin avatar May 15 '24 13:05 petebacondarwin