-
Notifications
You must be signed in to change notification settings - Fork 386
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
git 部署后部分router报错 #42
Comments
有设置好 cookie 和账号嘛,把报错信息发一下看看
… 在 2020年6月17日,上午9:43,Zhenxing Lv ***@***.***> 写道:
您好,我尝试在nas和电脑端克隆项目后使用npm start 命令运行,song/find 等几个get 都会报错,刚好就是需要这几个接口,我刚学node js,还比较小白,不知道怎么解决这个问题。。node版本是12.14.
<https://user-images.githubusercontent.com/35286852/84845344-ffab3680-b07e-11ea-822e-01528f1fe6d1.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#42>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGFNGP67SBPQZCFW2MKRQMDRXANVRANCNFSM4OAEM67A>.
|
完全保持了默认的设置,没有设置自己的账号,报错信息如下 |
那不行的,这个接口是必须依赖登陆账号 cookie 的,可以再去看下文档那里
… 在 2020年6月17日,上午11:25,Zhenxing Lv ***@***.***> 写道:
完全保持了默认的设置,没有设置自己的账号,报错信息如下:(node:159516) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'data' of undefined
at reqFun (E:\qqmusicapi\routes\song.js:146:22)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async getUrls (E:\qqmusicapi\routes\song.js:152:5)
(node:159516) 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 <https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode>). (rejection id: 1)
(node:159516) [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.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#42 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGFNGP46U6AF7VHJCPUGFL3RXAZRLANCNFSM4OAEM67A>.
|
我可以通过fetch之类的post一个cookie就可以是咩 |
可以的,只要是 post 就行,不过要先把对应的账号设置上,不然不会默认设置成全局的 cookie
… 在 2020年6月17日,上午11:28,Zhenxing Lv ***@***.***> 写道:
我可以通过fetch之类的post一个cookie就可以是咩
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#42 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGFNGPYPGZ74QIQSDREKQUDRXAZ5RANCNFSM4OAEM67A>.
|
按照你的提示post cookie之后不再报错了,感谢! |
您好,我尝试在nas和电脑端克隆项目后使用npm start 命令运行,song/find 等几个get 都会报错,刚好就是需要这几个接口,我刚学node js,还比较小白,不知道怎么解决这个问题。。node版本是12.14.
The text was updated successfully, but these errors were encountered: