UnhandledPromisejectionWarning:aggregateerror:issuer.discover()失败[auth0][express][openid connect]

lf3rwulv  于 2021-09-13  发布在  Java
关注(0)|答案(0)|浏览(381)

我运行了这个示例应用程序的本地示例:here,遇到了一个错误,我目前找不到解决方案。

[01-Login]$ npm start

> auth0-express-webapp-sample@ start /mnt/ALPHA/Projects/auth0-express-webapp-sample/01-Login
> node server.js

Using 'form_post' for response_mode may cause issues for you logging in over http, see https://github.com/auth0/express-openid-connect/blob/master/FAQ.md
Listening on http://localhost:3000
(node:8779) UnhandledPromiseRejectionWarning: AggregateError: Issuer.discover() failed.
    RequestError: write EPROTO 140236193597312:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:
    RequestError: write EPROTO 140236193597312:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:
    at Function.discover (/mnt/ALPHA/Projects/auth0-express-webapp-sample/01-Login/node_modules/openid-client/lib/issuer.js:265:17)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8779) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:8779) [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.

从外观上看,我需要一个示例中异步函数的承诺解析器
虽然我在不同版本的node(stable/latest甚至是13.x)上尝试了这个示例,但遇到了相同的问题。一些见解可能会有所帮助!非常感谢。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题