尝试连接到node.js服务器上的google fitness API时,无法获取本地颁发者证书

时间:2018-01-24 20:04:30

标签: javascript node.js api certificate ssl-certificate

我正在尝试访问Google健身API,我正在node.js服务器上运行我的代码,我收到以下错误:

> $ node --trace-warnings index.js   (node:14160) Error: unable to get
> local issuer certificate  
>     at TLSSocket.<anonymous> (_tls_wrap.js:1103:38)   
>     at emitNone (events.js:106:13)   
>     at TLSSocket.emit (events.js:208:7)   
>     at TLSSocket._finishInit (_tls_wrap.js:637:8)   
>     at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38)    (node:14160) [DEP0018] DeprecationWarning: Unhandled promise
> rejections are depr ecated. In the future, promise rejections that are
> not handled will terminate th e Node.js process with a non-zero exit
> code.   
>     at emitWarning (internal/process/promises.js:78:15)   
>     at emitPendingUnhandledRejections (internal/process/promises.js:95:11)   
>     at process._tickCallback (internal/process/next_tick.js:189:7)

我尝试在线搜索但无法找到任何内容。问题是什么,如何解决?

0 个答案:

没有答案