You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
1、使用样例那种好像好像不行,有个疑问哈,代理一般情况是这样设置:‘&proxy_host=121.196.226.246&proxy_port=84’,为啥前面要加前缀’http://’呢? http://localhost:3000/album?id=96680121×tamp=1503019930001&proxy=http://192.168.2.201:50000
2、然后我看了下axios的设置,改了下,request.js如下方式设置代理ip
请求url:http://localhost:3000/album?id=96680121×tamp=1503019930001
报错如下:
[ERR] /album?id=96680121×tamp=1503019930001 {
(node:20712) UnhandledPromiseRejectionWarning: TypeError: Converting circular structure to JSON
status: 502,
--> starting at object with constructor 'Socket'
body: {
code: 502,
| property '_httpMessage' -> object with constructor 'ClientRequest'
msg: Error: socket hang up
--- property 'socket' closes the circle
at connResetException (internal/errors.js:609:14)
at JSON.stringify ()
at stringify (D:\xxxxx\NeteaseCloudMusicApi\node_modules\express\lib\response.js:1123:12)
at Socket.socketOnEnd (_http_client.js:459:23)
at ServerResponse.json (D:\xxxxx\NeteaseCloudMusicApi\node_modules\express\lib\response.js:260:14)
at Socket.emit (events.js:326:22)
at ServerResponse.send (D:\xxxxx\NeteaseCloudMusicApi\node_modules\express\lib\response.js:158:21)
at D:\xxxxx\NeteaseCloudMusicApi\app.js:105:37
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:20712) 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). (rejection id: 6)
at endReadableNT (_stream_readable.js:1223:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: 'ECONNRESET',
config: [Object],
request: [Writable],
response: undefined,
isAxiosError: true,
toJSON: [Function: toJSON]
}
}
}
期待效果
The text was updated successfully, but these errors were encountered:
@Binaryify just spend 3 hours struggling with the proxy issue before you commented 😭 Every request with proxy returns 502 error currently (with a 404 not found error inside).
Really appreciate if you could fix it tomorrow❤️
环境
系统/平台: win10 64位
nodejs 版本: v12.19.0
API版本: 3.44.0
出现问题
不知道是不是我的设置操作问题,使用代理报错
重现步骤
1、使用样例那种好像好像不行,有个疑问哈,代理一般情况是这样设置:‘&proxy_host=121.196.226.246&proxy_port=84’,为啥前面要加前缀’http://’呢?
http://localhost:3000/album?id=96680121×tamp=1503019930001&proxy=http://192.168.2.201:50000
2、然后我看了下axios的设置,改了下,request.js如下方式设置代理ip
请求url:http://localhost:3000/album?id=96680121×tamp=1503019930001
报错如下:
[ERR] /album?id=96680121×tamp=1503019930001 {
(node:20712) UnhandledPromiseRejectionWarning: TypeError: Converting circular structure to JSON
status: 502,
--> starting at object with constructor 'Socket'
body: {
code: 502,
| property '_httpMessage' -> object with constructor 'ClientRequest'
msg: Error: socket hang up
--- property 'socket' closes the circle
at connResetException (internal/errors.js:609:14)
at JSON.stringify ()
at stringify (D:\xxxxx\NeteaseCloudMusicApi\node_modules\express\lib\response.js:1123:12)
at Socket.socketOnEnd (_http_client.js:459:23)
at ServerResponse.json (D:\xxxxx\NeteaseCloudMusicApi\node_modules\express\lib\response.js:260:14)
at Socket.emit (events.js:326:22)
at ServerResponse.send (D:\xxxxx\NeteaseCloudMusicApi\node_modules\express\lib\response.js:158:21)
at D:\xxxxx\NeteaseCloudMusicApi\app.js:105:37
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:20712) 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). (rejection id: 6)at endReadableNT (_stream_readable.js:1223:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: 'ECONNRESET',
config: [Object],
request: [Writable],
response: undefined,
isAxiosError: true,
toJSON: [Function: toJSON]
}
}
}
期待效果
The text was updated successfully, but these errors were encountered: