CloudError:端点(observeMySession)响应错误

问题描述 投票:0回答:1

节点版本:20.5.0

Sails 版本(sails):1.5.7

ORM 钩子版本(sails-hook-orm):4.0.0

套接字挂钩版本(sails-hook-sockets):2.0.0

有机挂钩版本(sails-hook-organics):2.0.0

Grunt 钩子版本(sails-hook-grunt):5.0

首先按照“get-started”安装并创建“Web App”

使用电子邮件地址注册,当我尝试登录时遇到此错误。

“CloudError:端点 (observeMySession) 响应错误(或请求失败)。”

Uncaught (in promise) CloudError: Endpoint (observeMySession) responded with an errorv(or the request failed).
   exec http://localhost:1337/dependencies/cloud.js:649
   _promise http://localhost:1337/dependencies/cloud.js:612
   toPromise http://localhost:1337/dependencies/cloud.js:610
   then http://localhost:1337/dependencies/cloud.js:592

cloud.js:649:33
javascript node.js sails.js
1个回答
0
投票

使用样板创建新应用程序时面临同样的问题。尝试了另一个 Sails 应用程序,例如https://github.com/mikermcneil/ration并且运行没有问题。仅客户端有问题。

account-notification-banner.component.js:55 Uncaught (in promise) CloudError: Endpoint (`observeMySession`) responded with an error (or the request failed).
at Object.exec (http://localhost:1337/dependencies/cloud.js:649:33)
at http://localhost:1337/dependencies/cloud.js:612:26
at new Promise (<anonymous>)
at Object.toPromise (http://localhost:1337/dependencies/cloud.js:610:24)
at Object.then (http://localhost:1337/dependencies/cloud.js:592:36)

Error Summary:
(see `.responseInfo` for more details)
·-------------·----------------------------------------·
|    Protocol | ws(s)://   (io.socket)
|     Address | POST http://localhost:1337/api/v1/observe-my-session
|        Exit | error
| Status Code | 403
·-------------·----------------------------------------·

Response Body:
Forbidden

尝试在

config/security.js
中将 CSRF 设为 false,但没有任何区别。

© www.soinside.com 2019 - 2024. All rights reserved.