lyswhut/lx-music-desktop · error
哦No😱...接口无法访问了!
Error message
哦No😱...接口无法访问了!
What it means
Error "哦No😱...接口无法访问了!" thrown in lyswhut/lx-music-desktop.
Source
Thrown at src/main/utils/request.ts:31
// var proxyUrl = "http://" + user + ":" + password + "@" + host + ":" + port;
// var proxiedRequest = request.defaults({'proxy': proxyUrl});
// interface RequestPromise extends Promise<RequestResponse> {
// abort: () => void
// }
/**
* 请求超时自动重试
* @param {*} url
* @param {*} options
*/
export const httpFetch = async<T = unknown> (url: string, options: Options) => {
return request<T>(url, options).catch(async(err: any) => {
// console.log('出错', err)
if (err.message === 'socket hang up') {
// window.globalObj.apiSource = 'temp'
throw new Error(requestMsg.unachievable)
}
switch (err.code) {
case 'ETIMEDOUT':
case 'ESOCKETTIMEDOUT':
throw new Error(requestMsg.timeout)
case 'ENOTFOUND':
throw new Error(requestMsg.notConnectNetwork)
default:
throw err
}
})
// requestObj.promise = requestObj.promise.catch(async err => {
// // console.log('出错', err)
// if (err.message === 'socket hang up') {
// // window.globalObj.apiSource = 'temp'
// return Promise.reject(new Error(requestMsg.unachievable))
// }
// switch (err.code) {View on GitHub (pinned to 9c364b482e)
When it happens
Trigger: Thrown at src/main/utils/request.ts:31 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of lyswhut/lx-music-desktop@9c364b482e (2026-08-12).
Data as JSON: /api/errors/4bee9bc4fb15b5a9.
Report an issue: GitHub.