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: unable to verify the first certificate

See original GitHub issue

I am unable to serve up directories. I used create-react-app, ran a build, and attempted to serve it up.

Ran into this error…

(node:22821) UnhandledPromiseRejectionWarning: Error: unable to verify the first certificate
    at TLSSocket.<anonymous> (_tls_wrap.js:1105:38)
    at emitNone (events.js:106:13)
    at TLSSocket.emit (events.js:208:7)
    at TLSSocket._finishInit (_tls_wrap.js:639:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:469:38)
(node:22821) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:22821) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Here are my versions…

{ asdf: '0.1.0',
  npm: '5.6.0',
  ares: '1.10.1-DEV',
  cldr: '32.0',
  http_parser: '2.8.0',
  icu: '60.1',
  modules: '57',
  nghttp2: '1.25.0',
  node: '8.11.1',
  openssl: '1.0.2o',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.19.1',
  v8: '6.2.414.50',
  zlib: '1.2.11' }

I do have a cafile set in my .npmrc file. Another program, httpster, works fine.

I removed the cafile setting to no avail.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ghusercommented, May 14, 2018

I have the same issue. I just try to do this: node_modules/.bin/serve --ignore node_modules. I use nexus3 as registry:

my ~/.npmrc is

proxy=http://myproxy:8080/
https-proxy=http://myproxy:8080/
registry=http://nexusrepo/nexus3/repository/npmjs-group/
@myscope:registry=http://nexusrepo/nexus3/repository/npmjs-my-hosted/

node -v v8.11.1

npm -v 6.0.1

npm ls --depth=0 npmtest@1.0.0 /tmp/npmtest ├── lodash@4.17.10 └── serve@6.5.6

0reactions
leocommented, May 28, 2018

Closing this now, as this issue is not related to serve, but rather to the way how you’re installing it from npm.

Thank you for the effort you’ve put into this!

Please also read the docs for the new release.

🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: unable to verify the first certificate in nodejs
It means that the webserver you are connecting to is misconfigured and did not include the intermediate certificate in the certificate chain it...
Read more >
Postman responds to API calls with "Error: Unable to verify the ...
Open Postman, then select File -> Settings · Select the General tab. · Move the slider for SSL certificate verification to the OFF...
Read more >
Unable to Verify the First Certificate with OpenSSL - Pavol Kutaj
This error means that the certificate chain is broken for OpenSSL — but does not have to be for browsers! Why? Because browsers...
Read more >
Error: unable to verify the first certificate. How to fix? - NodeBB
As that answer on SO says, the error unable to verify the first certificate means that the webserver you are connecting to is...
Read more >
Getting certificate errors "unable to get local issuer certificate ...
2. The “error:num=21:unable to verify the first certificate” means that chain of trust is broken right from the start. Typically it ...
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