YesPlayMusic
YesPlayMusic copied to clipboard
歌单不能点红心收藏,报错403
版本:版本0.4.5 (0.4.5)
系统:macOS 10.15 (19A583)
问题描述:账号登录状态下,点击喜欢的歌单红心收藏无反应,控制台报错
Request URL: http://localhost:27232/api/playlist/subscribe?id=87120496&t=1×tamp=1661235832881
Request Method: POST
Status Code: 403 Forbidden
Remote Address: 127.0.0.1:27232
Referrer Policy: no-referrer
请求Curl:
curl 'http://localhost:27232/api/playlist/subscribe?id=87120496&t=1×tamp=1661235832881'
-X 'POST'
-H 'Connection: keep-alive'
-H 'Content-Length: 0'
-H 'Accept: application/json, text/plain, /'
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_0) AppleWebKit/537.36 (KHTML, like Gecko) yesplaymusic/0.4.5 Chrome/91.0.4472.164 Electron/13.6.9 Safari/537.36'
-H 'Sec-Fetch-Site: same-origin'
-H 'Sec-Fetch-Mode: cors'
-H 'Sec-Fetch-Dest: empty'
-H 'Accept-Language: zh-CN'
-H 'Cookie: _ga=GA1.1.144400455.1649936448; MUSIC_U=1ef972870c73ed09d903219436e9f2250764eceb4734513faa9caeaee4497a90993166e004087dd387edc4b92fe884be3a925f29fb31529346b14e3f0c3f8af929f5e126cc9926cbc3061cd18d77b7a0; NMTID=00OHuSUY3dmXzV8U05Hr3xV4oAy0oMAAAGCyV06jA; _ga_KMJJCFZDKF=GS1.1.1661233265.14.1.1661235818.0.0.0'
--compressed
请求response:{"code":403,"message":"illegal request!","debugInfo":null,"data":null,"failData":null,"msg":"illegal request!"}
遇到了相同的问题
- YPM 版本:0.4.5
- 系统版本:Windows 11 专业版 21H2
- Console 截图如下

Uncaught (in promise) TypeError: this.WorkerClass is not a constructor
at t._findIdleWorker (chunk-vendors.442d09f1.js:70)
at t._tryDequeue (chunk-vendors.442d09f1.js:70)
at t._enqueue (chunk-vendors.442d09f1.js:70)
at t.invoke (chunk-vendors.442d09f1.js:70)
at t.invokeWorker (chunk-vendors.442d09f1.js:58)
at t.process (chunk-vendors.442d09f1.js:82)
at t._process (chunk-vendors.442d09f1.js:70)
at chunk-vendors.442d09f1.js:70
Failed to load resource: the server :27232/api/playlist/subscribe?id=426181886&t=1×tamp=1662295493807:1 responded with a status of 403 (Forbidden)
Uncaught (in promise) TypeError: Cannot read chunk-7414744c.c21dfbdb.js:9 property 'code' of undefined
at chunk-7414744c.c21dfbdb.js:9
类似问题,但是报错是405
使用代理:
chunk-vendors.442d09f1.js:82 GET http://localhost:27232/api/like?id=1905634714&like=true×tamp=1673600699420&proxy=HTTPS:%2F%2F127.0.0.1:7890 405 (Method Not Allowed)
关闭代理:
chunk-vendors.442d09f1.js:82 GET http://localhost:27232/api/like?id=1905634714&like=true×tamp=1673600787244 500 (Internal Server Error)