我正在尝试访问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)
我尝试在线搜索但无法找到任何内容。问题是什么,如何解决?