AWA-Helper
AWA-Helper copied to clipboard
求教,ASF初始化失败原因
麻烦问一下,初始化asf的时候报错,是什么原因呢?之前是没问题的,这两天一直这样
[2022-10-10 10:08:45] 正在初始化 ASF...Error
[2022-10-10 10:08:47] 正在重试第 1 次...Error
[2022-10-10 10:08:50] 正在重试第 2 次...Error
[2022-10-10 10:08:53] 正在重试第 3 次...Error
Error: getaddrinfo ENOTFOUND 7890
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: '7890',
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [AsyncFunction (anonymous)],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
Host: '127.0.0.1:6242',
Origin: 'http://127.0.0.1:6242',
Referer: 'http://127.0.0.1:6242/page/commands',
'User-Agent': 'axios/0.26.1',
'Content-Length': 20,
host: '127.0.0.1:6242'
},
maxRedirects: 5,
url: 'http://127.0.0.1:6242/Api/Command',
method: 'post',
data: '{"Command":"!stats"}',
Logger: Logger { id: 1665367733996, data: '' },
httpsAgent: TunnelingAgent {
options: [Object],
proxyOptions: [Object],
maxSockets: Infinity,
requests: [],
sockets: [],
_events: [Object: null prototype],
_eventsCount: 1,
request: [Function: request],
createSocket: [Function: createSecureSocket],
defaultPort: 443
}
},
request: <ref *1> Writable {
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: false,
needDrain: false,
ending: false,
ended: false,
finished: false,
destroyed: false,
decodeStrings: true,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: true,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 0,
constructed: true,
prefinished: false,
errorEmitted: false,
emitClose: true,
autoDestroy: true,
errored: null,
closed: false,
closeEmitted: false,
[Symbol(kOnFinished)]: []
},
_events: [Object: null prototype] {
response: [Function: handleResponse],
error: [Function: handleRequestError],
socket: [Function: handleRequestSocket]
},
_eventsCount: 3,
_maxListeners: undefined,
_options: {
maxRedirects: 5,
maxBodyLength: 10485760,
protocol: 'http:',
path: 'http://127.0.0.1:6242/Api/Command',
method: 'POST',
headers: [Object],
agent: undefined,
agents: [Object],
auth: undefined,
hostname: '7890',
port: null,
beforeRedirect: [Function: beforeRedirect],
nativeProtocols: [Object],
pathname: 'http://127.0.0.1:6242/Api/Command'
},
_ended: false,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 20,
_requestBodyBuffers: [ [Object] ],
_onNativeResponse: [Function (anonymous)],
_currentRequest: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: false,
_headerSent: true,
_closed: false,
socket: [Socket],
_header: 'POST http://127.0.0.1:6242/Api/Command HTTP/1.1\r\n' +
'Accept: application/json\r\n' +
'Content-Type: application/json\r\n' +
'host: 127.0.0.1:6242\r\n' +
'Origin: http://127.0.0.1:6242\r\n' +
'Referer: http://127.0.0.1:6242/page/commands\r\n' +
'User-Agent: axios/0.26.1\r\n' +
'Content-Length: 20\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: 'http://127.0.0.1:6242/Api/Command',
_ended: false,
res: null,
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: '7890',
protocol: 'http:',
_redirectable: [Circular *1],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
_currentUrl: 'http://127.0.0.1:6242/Api/Command',
[Symbol(kCapture)]: false
},
response: undefined,
isAxiosError: true,
toJSON: [Function: toJSON]
}
开代理了吗?
开了,用的Clash,Twitch是没问题的
asf不要走代理
#### 代理设置(可选) ####
proxy:
enable:
- github # 在检测更新时使用代理,不使用删掉此行
- twitch # 在访问Twitch站点时使用代理,不使用删掉此行
- awa # 在访问外星人论坛站点时使用代理,不使用删掉此行
- steam # 在访问Steam时使用代理,不使用删掉此行
protocol: 'http' # 代理协议,'http'|'https'|'socks4'|'socks5'
host: '127.0.0.1' # 代理host
port: 7890 # 代理端口
username: '' # 代理用户名,没有可留空
password: '' # 代理密码,没有可留空
去掉了还是不行,并且代理软件已经关掉了
比较奇怪的是 这个hostname还是指向7890
[2022-10-10 10:49:54] 正在初始化 ASF...Error
[2022-10-10 10:49:57] 正在重试第 1 次...Error
[2022-10-10 10:50:00] 正在重试第 2 次...Error
[2022-10-10 10:50:03] 正在重试第 3 次...Error
Error: getaddrinfo ENOTFOUND 7890
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: '7890',
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [AsyncFunction (anonymous)],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
Host: '127.0.0.1:6242',
Origin: 'http://127.0.0.1:6242',
Referer: 'http://127.0.0.1:6242/page/commands',
'User-Agent': 'axios/0.26.1',
'Content-Length': 20,
host: '127.0.0.1:6242'
},
maxRedirects: 5,
url: 'http://127.0.0.1:6242/Api/Command',
method: 'post',
data: '{"Command":"!stats"}',
Logger: Logger { id: 1665370203757, data: '\x1B[31mError\x1B[39m' }
},
request: <ref *1> Writable {
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: false,
needDrain: false,
ending: false,
ended: false,
finished: false,
destroyed: false,
decodeStrings: true,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: true,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 0,
constructed: true,
prefinished: false,
errorEmitted: false,
emitClose: true,
autoDestroy: true,
errored: null,
closed: false,
closeEmitted: false,
[Symbol(kOnFinished)]: []
},
_events: [Object: null prototype] {
response: [Function: handleResponse],
error: [Function: handleRequestError],
socket: [Function: handleRequestSocket]
},
_eventsCount: 3,
_maxListeners: undefined,
_options: {
maxRedirects: 5,
maxBodyLength: 10485760,
protocol: 'http:',
path: 'http://127.0.0.1:6242/Api/Command',
method: 'POST',
headers: [Object],
agent: undefined,
agents: [Object],
auth: undefined,
hostname: '7890',
port: null,
beforeRedirect: [Function: beforeRedirect],
nativeProtocols: [Object],
pathname: 'http://127.0.0.1:6242/Api/Command'
},
_ended: false,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 20,
_requestBodyBuffers: [ [Object] ],
_onNativeResponse: [Function (anonymous)],
_currentRequest: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: false,
_headerSent: true,
_closed: false,
socket: [Socket],
_header: 'POST http://127.0.0.1:6242/Api/Command HTTP/1.1\r\n' +
'Accept: application/json\r\n' +
'Content-Type: application/json\r\n' +
'host: 127.0.0.1:6242\r\n' +
'Origin: http://127.0.0.1:6242\r\n' +
'Referer: http://127.0.0.1:6242/page/commands\r\n' +
'User-Agent: axios/0.26.1\r\n' +
'Content-Length: 20\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: 'http://127.0.0.1:6242/Api/Command',
_ended: false,
res: null,
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: '7890',
protocol: 'http:',
_redirectable: [Circular *1],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
_currentUrl: 'http://127.0.0.1:6242/Api/Command',
[Symbol(kCapture)]: false
},
response: undefined,
isAxiosError: true,
toJSON: [Function: toJSON]
}