【问题标题】:IBM API Connect API Designer not startingIBM API Connect API Designer 未启动
【发布时间】:2017-10-10 22:08:34
【问题描述】:

我使用命令创建了一个 API Connect 项目

apic loopback

当我尝试启动 API 设计器时,我收到如下错误:

sdil@sdil-VirtualBox:~/Project/test-apic/todo4$ apic edit

The user model "User" is attached to an application that does not specify
whether other sessions should be invalidated when a password or
an email has changed. Session invalidation is important for security
reasons as it allows users to recover from various account breach
situations.

We recommend turning this feature on by setting
"logoutSessionsOnSensitiveChanges" to true in
server/config.json (unless you have implemented your own solution
for token invalidation).

We also recommend enabling "injectOptionsFromRemoteContext" in
User's settings (typically via common/models/*.json file).
This setting is required for the invalidation algorithm to keep
the current session valid.

Learn more in our documentation at
https://loopback.io/doc/en/lb2/AccessToken-invalidation.html

Error: loopback.errorHandler is no longer available. Please use the module "strong-error-handler" instead.

当我检查 package.json 中的声明时,我确实看到编写了 strong-error-handler。

"dependencies": {
    ...
    "strong-error-handler": "^2.0.0",
}

如何解决此问题以使 API Designer 运行?

【问题讨论】:

  • 你真的安装了模块吗? npm 安装 :)
  • @Undrium 我在文件夹中运行“npm ls”,我看到它已安装:└─┬ strong-error-handler@2.1.0

标签: loopbackjs strongloop apiconnect


【解决方案1】:

实际上,我有点意识到这个问题。我们有新的强错误处理程序,但也有旧的激活的。

在此处执行“从旧 LoopBack 错误处理程序迁移”中的步骤:

https://loopback.io/doc/en/lb3/Using-strong-error-handler.html#migration-from-old-loopback-error-handler

应该彻底淘汰旧的。

【讨论】:

  • @sdil:这个答案是否有助于解决您的问题?如果可以,请将问题标记为已回答。
  • @Undrium 我使用带有环回版本 3.x 的命令 apic loopback 生成了项目脚手架。它已完成文档中给出的所有步骤。但是,它仍然无法正常工作。我的 npm 列表中什至没有 loopback.errorHandler 包
猜你喜欢
  • 1970-01-01
  • 2021-03-10
  • 1970-01-01
  • 2016-07-21
  • 2020-10-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-10-11
相关资源
最近更新 更多