我使用命令创建了一个API Connect项目
apic loopback当我尝试启动API designer时,收到如下错误:
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中的声明时,我确实看到编写了强错误处理程序。
"dependencies": {
...
"strong-error-handler": "^2.0.0",
}如何修复此问题以使API Designer运行?
发布于 2017-05-16 14:07:11
实际上,我有点认识到这个问题。我们有新的强错误处理程序,但也有旧的激活的。
执行“从旧的LoopBack错误处理程序迁移”中的步骤:
应该完全消除旧的。
https://stackoverflow.com/questions/43923315
复制相似问题