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

[BUG] 超时导致搜索失败 #46

Open
docase opened this issue Sep 9, 2022 · 5 comments
Open

[BUG] 超时导致搜索失败 #46

docase opened this issue Sep 9, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@docase
Copy link

docase commented Sep 9, 2022

可能是我的机器配置过低或者网络环境不好,搜索歌曲的时候xhr请求总是超时超过5000ms。将preload-helper-59e8b50d.js中的xhr请求超时时间改大就可以使用了。

@foamzou
Copy link
Owner

foamzou commented Sep 9, 2022

我后面将超时时间弄成可配置化。

@foamzou foamzou added the enhancement New feature or request label Sep 9, 2022
@foamzou foamzou changed the title [BUG] 搜索失败 [BUG] 超时导致搜索失败 Sep 9, 2022
@HUANMVP
Copy link

HUANMVP commented Sep 11, 2022

我将未来的时间弄成可配置化。

arm64 docker安装之后,网易云歌单能听,但是搜索失败。
ℹ searchSong with {"0":{"keyword":"fade"}}
ℹ cmdStr: /app/backend/src/service/media_fetcher/../../../bin/media-get -k "fade" --searchType="song" -m --infoFormat=json -l silence
/app/backend/src/service/media_fetcher/../../../bin/media-get [
'-k',
'"fade"',
'--searchType="song"',
'-m',
'--infoFormat=json',
'-l',
'silence'
]
ℹ -------
ℹ 0
ℹ -------

@foamzou
Copy link
Owner

foamzou commented Sep 11, 2022

不同的问题麻烦另外开一个 issue。
And , for your question, 可以进入容器里执行这条命令看看结果 @HUANMVP

/app/backend/src/service/media_fetcher/../../../bin/media-get -k "fade" --searchType="song" -m --infoFormat=json -l debug

@foamzou
Copy link
Owner

foamzou commented Sep 12, 2022

@HUANMVP
我可能没那么快做这个 feature。
可以先在 容器里 vi /app/backend/public/static/js/preload-helper-xxxx.js 。 将 5e3 替换为 你想要的超时时间,例如 50000 (50秒)
然后重启 docker restart containerID (因为是静态资源,或许不用重启也行)

@HUANMVP
Copy link

HUANMVP commented Sep 12, 2022

了解

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

No branches or pull requests

3 participants