Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: Error with wrangler dev and HTTPS localhost sub-requests #5774

Open
daniel-revell opened this issue May 7, 2024 · 0 comments
Open
Labels
bug Something that isn't working

Comments

@daniel-revell
Copy link

Which Cloudflare product(s) does this pertain to?

Miniflare

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

wrangler 3.53.1

What version of Node are you using?

v21.1.0

What operating system and version are you using?

Mac Somona 14.4.1

Describe the Bug

Observed behavior

Sub-request to https://localhost result in error.

Expected behavior

HTTP requests work, would expect HTTPS requests to also work. Or a documented way to turn off HTTPS validation.

Steps to reproduce

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

[wrangler:inf] Ready on http://localhost:8787
✘ [ERROR] WARNING: known issue with fetch() requests to custom HTTPS ports in published Workers:

✘ [ERROR] Uncaught (async) Error: internal error

[wrangler:err] Error: internal error
at async passThroughHandler (file:///Users/daniel/Projects/api-worker/src/handlers/pass-through.handler.ts:13:10)
at async Object.handle (file:///Users/daniel/Projects/api-worker/node_modules/itty-router/Router.js:1:614)
at async Object.fetch (file:///Users/daniel/Projects/api-worker/src/index.ts:241:12)
at async jsonError (file:///Users/daniel/Projects/api-worker/node_modules/wrangler/templates/middleware/middleware-miniflare3-json-error.ts:22:10)
at async drainBody (file:///Users/daniel/Projects/api-worker/node_modules/wrangler/templates/middleware/middleware-ensure-req-body-drained.ts:5:10)
[wrangler:inf] POST /users/v1/tokens 500 Internal Server Error (99ms)

@daniel-revell daniel-revell added the bug Something that isn't working label May 7, 2024
@daniel-revell daniel-revell changed the title 🐛 BUG: 🐛 BUG: Error with wrangler dev and HTTPS localhost sub-requests May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant