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: Fetch command not working with certificates locally #8051

Open
alpgul opened this issue Feb 6, 2025 · 0 comments
Open

🐛 BUG: Fetch command not working with certificates locally #8051

alpgul opened this issue Feb 6, 2025 · 0 comments
Labels
bug Something that isn't working

Comments

@alpgul
Copy link

alpgul commented Feb 6, 2025

Which Cloudflare product(s) does this pertain to?

Wrangler

What versions are you using?

wrangler 3.107.3 node:v20.18.0

What operating system and version are you using?

Windows 10

Please provide a link to a minimal reproduction

No response

Describe the Bug

Description:
I am trying to use the fetch command in my local environment, but it is not working with the certificate. I have set the environment variable NODE_EXTRA_CA_CERTS to include the certificate, but the fetch command does not seem to recognize it.

Upon further investigation, I noticed that the fetch request is being executed by node_modules\@cloudflare\workerd-windows-64\bin\workerd.exe and not by Node.js. This seems to be causing the issue, as the certificate is not being picked up correctly.

Steps to Reproduce:

  1. Set the environment variable NODE_EXTRA_CA_CERTS to the path of the certificate.
  2. Attempt to make a fetch request in the local environment.
  3. Observe that the certificate is not recognized.
    Expected Behavior:
    The fetch command should recognize the certificate specified in NODE_EXTRA_CA_CERTS and work as expected.

Actual Behavior:
The fetch command does not recognize the certificate, likely because the request is being handled by workerd.exe instead of Node.js.

Additional Context:
It appears that the fetch request is being routed through workerd.exe, which might not be respecting the NODE_EXTRA_CA_CERTS environment variable. Any guidance on how to resolve this issue would be greatly appreciated.

Please provide any relevant error logs

Log:[wrangler:err] Error: internal error

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