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

Error occurs when enabling https on dev in Nuxt3 #14894

Closed
cwe-spb opened this issue Sep 13, 2022 · 7 comments
Closed

Error occurs when enabling https on dev in Nuxt3 #14894

cwe-spb opened this issue Sep 13, 2022 · 7 comments

Comments

@cwe-spb
Copy link

cwe-spb commented Sep 13, 2022

Environment


  • Operating System: Darwin
  • Node Version: v16.16.0
  • Nuxt Version: 3.0.0-rc.9
  • Nitro Version: 0.5.1
  • Package Manager: yarn@1.22.15
  • Builder: vite
  • User Config: ssr, app, telemetry, build, modules, components, vueuse, runtimeConfig, vite
  • Runtime Modules: @vueuse/nuxt@9.2.0, @pinia/nuxt@0.4.0
  • Build Modules: -

Reproduction

after update project to v3.0.0-rc.9 problem inited

Describe the bug

I use composable useFetch

[nuxt] [request error] [unhandled] [500] fetch failed ()
  at async $fetchRaw2 (/D:/project/node_modules/ohmyfetch/dist/chunks/fetch.mjs:131:20)
  at async /D:/project/.nuxt/dev/index.mjs:2411:20
  at async /D:/project/.nuxt/dev/index.mjs:2472:64
  at async /D:/project/.nuxt/dev/index.mjs:135:22
  at async /D:/project/node_modules/h3/dist/index.mjs:492:19
  at async nodeHandler (/D:/project/node_modules/h3/dist/index.mjs:438:7)
  at async ufetch (/D:/project/node_modules/unenv/runtime/fetch/index.mjs:9:17)
  at async $fetchRaw2 (/D:/project/node_modules/ohmyfetch/dist/chunks/fetch.mjs:131:20)
  at async Object.errorhandler [as onError] (/D:/project/.nuxt/dev/index.mjs:383:16)
  at async nodeHandler (/D:/project/node_modules/h3/dist/index.mjs:445:9)

Additional context

same issue in ohmyfetch:
unjs/ofetch#120

Logs

No response

@palaxius
Copy link

Same problem

1 similar comment
@BlackHunfer
Copy link

Same problem

@staneque
Copy link

staneque commented Sep 13, 2022

Same for me running freshly initialised project with local certificates, Apple M1 Pro, macOS Monterey 12.0.1

@danielroe
Copy link
Member

danielroe commented Sep 13, 2022

This should be resolved on the edge channel in nuxt/framework#7271, though you will need to enable NODE_TLS_REJECT_UNAUTHORIZED=0? https://v3.nuxtjs.org/api/commands/dev/#nuxi-dev.

@rnenjoy
Copy link

rnenjoy commented Sep 15, 2022

Upgraded to the latest nuxt rc 11 via edge channel but still getting this error. And its a letsencrypt cert, not a self signed one.

@danielroe
Copy link
Member

Would you open a new issue with reproduction? 🙏

@rnenjoy
Copy link

rnenjoy commented Sep 15, 2022

Adding NODE_TLS_REJECT_UNAUTHORIZED=0 worked. Weird, i thought it wasnt for me since i didnt use a self signed cert. I'll try with a reproduction. But im a bit of a n00b, and dont know how to do a reproduction with my certs.

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants