Skip to content
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

请求没有歌词的歌曲的歌词导致崩溃 #188

Open
mokurin000 opened this issue Aug 12, 2023 · 3 comments
Open

请求没有歌词的歌曲的歌词导致崩溃 #188

mokurin000 opened this issue Aug 12, 2023 · 3 comments

Comments

@mokurin000
Copy link

mokurin000 commented Aug 12, 2023

/lyric?songmid=000HETgV3jq7Cq

node:internal/per_context/domexception:53
    ErrorCaptureStackTrace(this);
    ^
DOMException [InvalidCharacterError]: The string to be decoded is not correctly encoded.
    at new DOMException (node:internal/per_context/domexception:53:5)
    at __node_internal_ (node:internal/util:505:10)
    at atob (node:buffer:1288:11)
    at _atob (/home/poly/QQMusicApi/node_modules/js-base64/base64.js:151:38)
    at _decode (/home/poly/QQMusicApi/node_modules/js-base64/base64.js:157:45)
    at Object.decode (/home/poly/QQMusicApi/node_modules/js-base64/base64.js:164:16)
    at / (/home/poly/QQMusicApi/routes/lyric.js:33:34)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
error Command failed with exit code 1.
@mokurin000 mokurin000 changed the title 请求特定歌曲后api会一直崩溃 请求特定歌曲歌词会导致崩溃 Aug 12, 2023
@mokurin000 mokurin000 changed the title 请求特定歌曲歌词会导致崩溃 请求没有歌词的歌曲导致崩溃 Aug 12, 2023
@mokurin000 mokurin000 changed the title 请求没有歌词的歌曲导致崩溃 请求没有歌词的歌曲的歌词导致崩溃 Aug 12, 2023
@qheartq616
Copy link

改一下代码嘛,没有result.lyric的时候直接返回个空就行了

@mokurin000
Copy link
Author

改一下代码嘛,没有result.lyric的时候直接返回个空就行了

已经改了,但是这里好像不会再merge pr了

@qheartq616
Copy link

@poly000 是的 他说他比较忙 我还想着有人能帮我解决cookie的事情呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants