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.

Running dev in https fails on rc10

See original GitHub issue

Environment

  • Operating System: Darwin
  • Node Version: v16.17.0
  • Nuxt Version: 3.0.0-rc.10
  • Nitro Version: 0.5.3
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: nitro
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://github.com/chrisnoden/nuxt3-bug

  1. Create a minimal nuxt v3 project
  2. Create a cert for localhost using mkcert
  3. Run the project with npx nuxi dev --https --ssl-cert localhost.pem --ssl-key localhost-key.pem

Describe the bug

Error in browser and on terminal. Unable to use https, but http (no SSL) works.

Additional context

https://github.com/nuxt/framework/issues/7218

Logs

[nuxt] [request error] [unhandled] [500] request to https://0.0.0.0:3000/__nuxt_vite_node__/manifest failed, reason: unable to verify the first certificate ()
  at async $fetchRaw2 (./node_modules/ohmyfetch/dist/chunks/fetch.mjs:131:20)  
  at async ./.nuxt/dev/index.mjs:457:20  
  at async ./.nuxt/dev/index.mjs:526:64  
  at async ./.nuxt/dev/index.mjs:106:22  
  at async ./node_modules/h3/dist/index.mjs:592:19  
  at async Server.nodeHandler (./node_modules/h3/dist/index.mjs:538:7)
[nuxt] [request error] [unhandled] [500] request to https://0.0.0.0:3000/__nuxt_vite_node__/manifest failed, reason: unable to verify the first certificate ()
  at async $fetchRaw2 (./node_modules/ohmyfetch/dist/chunks/fetch.mjs:131:20)  
  at async ./.nuxt/dev/index.mjs:457:20  
  at async ./.nuxt/dev/index.mjs:526:64  
  at async ./.nuxt/dev/index.mjs:106:22  
  at async ./node_modules/h3/dist/index.mjs:592:19  
  at async nodeHandler (./node_modules/h3/dist/index.mjs:538:7)  
  at async ufetch (./node_modules/unenv/runtime/fetch/index.mjs:9:17)  
  at async $fetchRaw2 (./node_modules/ohmyfetch/dist/chunks/fetch.mjs:131:20)  
  at async Object.errorhandler [as onError] (./.nuxt/dev/index.mjs:354:29)  
  at async Server.nodeHandler (./node_modules/h3/dist/index.mjs:545:9)
[nuxt] [request error] [unhandled] [500] request to https://0.0.0.0:3000/__nuxt_vite_node__/manifest failed, reason: unable to verify the first certificate ()
  at async $fetchRaw2 (./node_modules/ohmyfetch/dist/chunks/fetch.mjs:131:20)  
  at async ./.nuxt/dev/index.mjs:457:20  
  at async ./.nuxt/dev/index.mjs:526:64  
  at async ./.nuxt/dev/index.mjs:106:22  
  at async ./node_modules/h3/dist/index.mjs:592:19  
  at async nodeHandler (./node_modules/h3/dist/index.mjs:538:7)  
  at async ufetch (./node_modules/unenv/runtime/fetch/index.mjs:9:17)  
  at async $fetchRaw2 (./node_modules/ohmyfetch/dist/chunks/fetch.mjs:131:20)  
  at async Object.errorhandler [as onError] (./.nuxt/dev/index.mjs:354:29)  
  at async Server.nodeHandler (./node_modules/h3/dist/index.mjs:545:9)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pi0commented, Sep 15, 2022

It should work out of the box with RC.11+ (via #7547). You can use edge channel to try this.

1reaction
danielroecommented, Sep 15, 2022

I believe this is already present in the docs: https://v3.nuxtjs.org/api/commands/dev/#nuxi-dev.

@pi0 Are you thinking of putting it somewhere else?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running dev in https fails on rc10 - PullAnswer
Error in browser and on terminal. Unable to use https, but http (no SSL) works. Additional context. https://github.com/nuxt/framework/issues/ ...
Read more >
fix(nuxi): pass value of `https` through to vite-node by danielroe · Pull ...
pi0 merged 2 commits into main from fix/dev-https on Sep 6 ... Issue with running dev server on https mode. ... Running dev...
Read more >
SAP SSL handshake failed - SAP Community
I'm trying to retrieve data from an open data api. I have downloaded the certificate from the site and imported it into STRUST...
Read more >
unable to update - problems with runc
I am running Red Hat Enterprise Linux 8.3 on x86-64. I updated the system using: sudo yum update and no problem. I reboot...
Read more >
Unable to configure HTTPS endpoint. No server certificate ...
Solution · Run certmgr. · Then run dotnet dev-certs https -t a single time to create and trust a new development certificate. ·...
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