Skip to content

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

@NICK-DUAN

Description

@NICK-DUAN
  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions