Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用url导入swagger数据时报错 #28

Open
NICK-DUAN opened this issue May 12, 2021 · 0 comments
Open

使用url导入swagger数据时报错 #28

NICK-DUAN opened this issue May 12, 2021 · 0 comments

Comments

@NICK-DUAN
Copy link
Contributor

  1. 定时自动导入会错,错误如下:
[sever] log: -------------------------------------swaggerSyncUtils constructor-----------------------------------------------
[sever] log: 服务已启动,请打开下面链接访问: 
[sever] http://127.0.0.1:3000/
[sever] log: mongodb load success...
[sever] log: 定时器触发, syncJsonUrl:http://9.148.163.161/swagger,合并模式:good
[sever] (node:1121) [DEP0106] DeprecationWarning: crypto.createCipher is deprecated.
[sever] (node:1121) UnhandledPromiseRejectionWarning: TypeError: operation[inheritName].some is not a function
[sever]     at _loop2 (/Users/nickduan/Documents/UGit/YApi-X/node_modules/swagger-client/dist/index.js:2635:57)
[sever]     at _loop (/Users/nickduan/Documents/UGit/YApi-X/node_modules/swagger-client/dist/index.js:2644:198)
[sever]     at normalizeSwagger (/Users/nickduan/Documents/UGit/YApi-X/node_modules/swagger-client/dist/index.js:2650:47)
[sever]     at processTicksAndRejections (internal/process/task_queues.js:97:5)
[sever] (node:1121) 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)
[sever] (node:1121) [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.
  1. 直接swagger导入没反应,一直loading,且接口也没有导入。如图
    image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant