question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error occurs when enabling https on dev in Nuxt3

See original GitHub issue

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: https://github.com/unjs/ohmyfetch/issues/120

Logs

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
palaxiuscommented, Sep 13, 2022

Same problem

2reactions
danielroecommented, Sep 13, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues with setting up HTTPS on localhost with Nuxt 3
If I try to use it in the Nuxt config file, I get the error "Object literal may only specify known properties, and...
Read more >
Setting Up HTTPS on localhost in Nuxt 3 - Storyblok
Setting Up HTTPS on localhost in Nuxt 3 ... During development, apps are usually served via HTTP. However, Storyblok v2 requires your app...
Read more >
The server Property - Nuxt
The server property. Nuxt let you define the server connection variables for your application inside nuxt.config.js .
Read more >
Installation · Get Started with Nuxt
Get started with Nuxt quickly with our online starters or start locally with your terminal.
Read more >
Build and Deploy a Full Stack Social Media App with Nuxt 3 ...
FREE Nuxt 3 Cheatsheet : https ://iwd.sh/nuxt-cheatsheet Stuck?! Join our Discord Server: https ://discord.gg/5KfYYcCaD4 Make money coding ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found