Open AKH1701 opened 2 days ago
I can confirm that 1.4.12 doesn't like proxy. I am using tor as proxy, worked fine on previous versions, but after running the script a few seconds, it get this error (cropped because in total it's ouputting like 1000 lines:
Also, could be nice to precise on the next changelog/ the readme how to add the proxy. Before i was just putting 127.0.0.1 , but now with axios it require to know the type of proxy, so for example my i need to put http://127.0.0.1 instead. Small thing, but a notice would be nice
@AKH1701 Does yours also throw errors related to Axios? Since that's the case for @serzak51 So not sure if these are related.
@AKH1701 Does yours also throw errors related to Axios? Since that's the case for @serzak51 So not sure if these are related.
To avoid it being an error with my proxy configuration (its an proxy server running an vpn) i didnt mention it, this is the error axios get while connected to the squid server
<details
`node:internal/process/promises:288
triggerUncaughtException(err, true / fromPromise /);
^
AxiosError: Request failed with status code 502
at settle (/home/akh/Microsoft-Rewards-Script/node_modules/axios/dist/node/axios.cjs:2019:12)
at IncomingMessage.handleStreamEnd (/home/akh/Microsoft-Rewards-Script/node_modules/axios/dist/node/axios.cjs:3135:11)
at IncomingMessage.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (/home/akh/Microsoft-Rewards-Script/node_modules/axios/dist/node/axios.cjs:4287:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Login.getMobileAccessToken (/home/akh/Microsoft-Rewards-Script/dist/functions/Login.js:241:31)
at async MicrosoftRewardsBot.Desktop (/home/akh/Microsoft-Rewards-Script/dist/index.js:108:28)
at async MicrosoftRewardsBot.runTasks (/home/akh/Microsoft-Rewards-Script/dist/index.js:86:13)
at async process.
[Symbol(kHandle)]: [TCP],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
}
]
},
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
proxy: URL {
[Symbol(context)]: URLContext {
href: 'http://127.0.0.1:3129/',
protocol_end: 5,
username_end: 7,
host_start: 7,
host_end: 16,
pathname_start: 21,
search_start: 4294967295,
hash_start: 4294967295,
port: 3129,
scheme_type: 0
}
},
proxyHeaders: {},
connectOpts: { host: '127.0.0.1', port: 3129 },
[Symbol(kCapture)]: false,
[Symbol(AgentBaseInternalState)]: { currentSocket: undefined }
},
httpsAgent: HttpProxyAgent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
options: [Object: null prototype] { noDelay: true, path: null },
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {
'login.microsoftonline.com:443:::::::::::::::::::::': [
Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
parser: null,
_httpMessage: [ClientRequest],
[Symbol(async_id_symbol)]: 9678,
[Symbol(kHandle)]: [TCP],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
}
]
},
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
proxy: URL {
[Symbol(context)]: URLContext {
href: 'http://127.0.0.1:3129/',
protocol_end: 5,
username_end: 7,
host_start: 7,
host_end: 16,
pathname_start: 21,
search_start: 4294967295,
hash_start: 4294967295,
port: 3129,
scheme_type: 0
}
},
proxyHeaders: {},
connectOpts: { host: '127.0.0.1', port: 3129 },
[Symbol(kCapture)]: false,
[Symbol(AgentBaseInternalState)]: { currentSocket: undefined }
},
url: 'https://login.microsoftonline.com/consumers/oauth2/v2.0/token',
method: 'post',
data: 'grant_type=authorization_code&client_id=0000000040170455&code=M.C545_BL2.2.U.f49f8565-5c55-ac1e-6831-ea46e6af7a0c&redirect_uri=https%3A%2F%2Flogin.live.com%2Foauth20_desktop.srf'
}, request: <ref 1> ClientRequest { _events: [Object: null prototype] { abort: [Function (anonymous)], aborted: [Function (anonymous)], connect: [Function (anonymous)], error: [Function (anonymous)], socket: [Function (anonymous)], timeout: [Function (anonymous)], finish: [Function: requestOnFinish] }, _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, strictContentLength: false, _contentLength: '177', _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, socket: <ref 2> Socket { connecting: false, _hadError: false, _parent: null, _host: null, _closeAfterHandlingError: false, _readableState: ReadableState { state: 266328, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], flowing: true, errored: null, defaultEncoding: 'utf8', awaitDrainWriters: null, decoder: null, encoding: null,
},
_events: [Object: null prototype] {
end: [Function: onReadableStreamEnd],
free: [Function: onFree],
close: [ [Function: onClose], [Function: socketCloseListener] ],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove],
error: [Function: socketErrorListener],
finish: [Function: bound onceWrapper] { listener: [Function: destroy] }
},
_eventsCount: 7,
_maxListeners: undefined,
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: true,
needDrain: false,
ending: true,
ended: true,
finished: false,
destroyed: false,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: false,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 1,
constructed: true,
prefinished: false,
errorEmitted: false,
emitClose: false,
autoDestroy: true,
errored: null,
closed: false,
closeEmitted: false,
[Symbol(kOnFinished)]: []
},
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
parser: null,
_httpMessage: [Circular *1],
[Symbol(async_id_symbol)]: 9678,
[Symbol(kHandle)]: TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *2],
[Symbol(kResourceStore)]: undefined
},
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
_header: 'POST http://login.microsoftonline.com:443/consumers/oauth2/v2.0/token HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/x-www-form-urlencoded\r\n' +
'User-Agent: axios/1.7.7\r\n' +
'Content-Length: 177\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: login.microsoftonline.com\r\n' +
'Proxy-Connection: close\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: HttpProxyAgent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
options: [Object: null prototype] { noDelay: true, path: null },
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {
'login.microsoftonline.com:443:::::::::::::::::::::': [
<ref *2> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
parser: null,
_httpMessage: [Circular *1],
[Symbol(async_id_symbol)]: 9678,
[Symbol(kHandle)]: [TCP],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
}
]
},
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
proxy: URL {
[Symbol(context)]: URLContext {
href: 'http://127.0.0.1:3129/',
protocol_end: 5,
username_end: 7,
host_start: 7,
host_end: 16,
pathname_start: 21,
search_start: 4294967295,
hash_start: 4294967295,
port: 3129,
scheme_type: 0
}
},
proxyHeaders: {},
connectOpts: { host: '127.0.0.1', port: 3129 },
[Symbol(kCapture)]: false,
[Symbol(AgentBaseInternalState)]: { currentSocket: undefined }
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: 'http://login.microsoftonline.com:443/consumers/oauth2/v2.0/token',
_ended: true,
res: IncomingMessage {
_readableState: ReadableState {
state: 325654,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
flowing: true,
errored: null,
defaultEncoding: 'utf8',
awaitDrainWriters: null,
decoder: null,
encoding: null,
[Symbol(kPaused)]: false
},
_events: [Object: null prototype] {
end: [ [Function: responseOnEnd], [Function: handleStreamEnd] ],
error: [Function: handleStreamError],
data: [Function: handleStreamData],
aborted: [Function: handlerStreamAborted]
},
_eventsCount: 4,
_maxListeners: undefined,
socket: <ref *2> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_readableState: ReadableState {
state: 266328,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
flowing: true,
errored: null,
defaultEncoding: 'utf8',
awaitDrainWriters: null,
decoder: null,
encoding: null,
[Symbol(kPaused)]: false
},
_events: [Object: null prototype] {
end: [Function: onReadableStreamEnd],
free: [Function: onFree],
close: [ [Function: onClose], [Function: socketCloseListener] ],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove],
error: [Function: socketErrorListener],
finish: [Function: bound onceWrapper] {
listener: [Function: destroy]
}
},
_eventsCount: 7,
_maxListeners: undefined,
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: true,
needDrain: false,
ending: true,
ended: true,
finished: false,
destroyed: false,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: false,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 1,
constructed: true,
prefinished: false,
errorEmitted: false,
emitClose: false,
autoDestroy: true,
errored: null,
closed: false,
closeEmitted: false,
[Symbol(kOnFinished)]: []
},
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
parser: null,
_httpMessage: [Circular *1],
[Symbol(async_id_symbol)]: 9678,
[Symbol(kHandle)]: TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *2],
[Symbol(kResourceStore)]: undefined
},
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [
'Server',
'squid/6.6',
'Mime-Version',
'1.0',
'Date',
'Sat, 19 Oct 2024 14:08:42 GMT',
'Content-Type',
'text/html;charset=utf-8',
'Content-Length',
'3926',
'X-Squid-Error',
'ERR_READ_ERROR 104',
'Vary',
'Accept-Language',
'Content-Language',
'en',
'Cache-Status',
'714aa33f54c9;detail=mismatch',
'Via',
'1.1 714aa33f54c9 (squid/6.6)',
'Connection',
'close'
],
rawTrailers: [],
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 502,
statusMessage: 'Bad Gateway',
client: <ref *2> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_readableState: ReadableState {
state: 266328,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
flowing: true,
errored: null,
defaultEncoding: 'utf8',
awaitDrainWriters: null,
decoder: null,
encoding: null,
[Symbol(kPaused)]: false
},
_events: [Object: null prototype] {
end: [Function: onReadableStreamEnd],
free: [Function: onFree],
close: [ [Function: onClose], [Function: socketCloseListener] ],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove],
error: [Function: socketErrorListener],
finish: [Function: bound onceWrapper] {
listener: [Function: destroy]
}
},
_eventsCount: 7,
_maxListeners: undefined,
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: true,
needDrain: false,
ending: true,
ended: true,
finished: false,
destroyed: false,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: false,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 1,
constructed: true,
prefinished: false,
errorEmitted: false,
emitClose: false,
autoDestroy: true,
errored: null,
closed: false,
closeEmitted: false,
[Symbol(kOnFinished)]: []
},
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
parser: null,
_httpMessage: [Circular *1],
[Symbol(async_id_symbol)]: 9678,
[Symbol(kHandle)]: TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *2],
[Symbol(kResourceStore)]: undefined
},
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
_consuming: true,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://login.microsoftonline.com/consumers/oauth2/v2.0/token',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: {
server: 'squid/6.6',
'mime-version': '1.0',
date: 'Sat, 19 Oct 2024 14:08:42 GMT',
'content-type': 'text/html;charset=utf-8',
'content-length': '3926',
'x-squid-error': 'ERR_READ_ERROR 104',
vary: 'Accept-Language',
'content-language': 'en',
'cache-status': '714aa33f54c9;detail=mismatch',
via: '1.1 714aa33f54c9 (squid/6.6)',
connection: 'close'
},
[Symbol(kHeadersCount)]: 22,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'login.microsoftonline.com',
protocol: 'https:',
_redirectable: 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: 21,
maxBodyLength: Infinity,
protocol: 'https:',
path: '/consumers/oauth2/v2.0/token',
method: 'POST',
headers: [Object: null prototype] {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/x-www-form-urlencoded',
'User-Agent': 'axios/1.7.7',
'Content-Length': '177',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
agents: {
http: HttpProxyAgent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
proxy: [URL],
proxyHeaders: {},
connectOpts: [Object],
[Symbol(kCapture)]: false,
[Symbol(AgentBaseInternalState)]: [Object]
},
https: HttpProxyAgent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
proxy: [URL],
proxyHeaders: {},
connectOpts: [Object],
[Symbol(kCapture)]: false,
[Symbol(AgentBaseInternalState)]: [Object]
}
},
auth: undefined,
family: undefined,
beforeRedirect: [Function: dispatchBeforeRedirect],
beforeRedirects: { proxy: [Function: beforeRedirect] },
hostname: 'login.microsoftonline.com',
port: '',
agent: HttpProxyAgent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
options: [Object: null prototype] { noDelay: true, path: null },
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {
'login.microsoftonline.com:443:::::::::::::::::::::': [Array]
},
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
proxy: URL { [Symbol(context)]: [URLContext] },
proxyHeaders: {},
connectOpts: { host: '127.0.0.1', port: 3129 },
[Symbol(kCapture)]: false,
[Symbol(AgentBaseInternalState)]: { currentSocket: undefined }
},
nativeProtocols: {
'http:': {
_connectionListener: [Function: connectionListener],
METHODS: [Array],
STATUS_CODES: [Object],
Agent: [Function],
ClientRequest: [Function: ClientRequest],
IncomingMessage: [Function: IncomingMessage],
OutgoingMessage: [Function: OutgoingMessage],
Server: [Function: Server],
ServerResponse: [Function: ServerResponse],
createServer: [Function: createServer],
validateHeaderName: [Function: __node_internal_],
validateHeaderValue: [Function: __node_internal_],
get: [Function: get],
request: [Function: request],
setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
maxHeaderSize: [Getter],
globalAgent: [Getter/Setter]
},
'https:': {
Agent: [Function: Agent],
globalAgent: [Agent],
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
}
},
pathname: '/consumers/oauth2/v2.0/token'
},
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 177,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://login.microsoftonline.com/consumers/oauth2/v2.0/token',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [ 'Accept', 'application/json, text/plain, */*' ],
'content-type': [ 'Content-Type', 'application/x-www-form-urlencoded' ],
'user-agent': [ 'User-Agent', 'axios/1.7.7' ],
'content-length': [ 'Content-Length', '177' ],
'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ],
host: [ 'Host', 'login.microsoftonline.com' ],
'proxy-connection': [ 'Proxy-Connection', 'close' ]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
}, response: { status: 502, statusText: 'Bad Gateway', headers: Object [AxiosHeaders] { server: 'squid/6.6', 'mime-version': '1.0', date: 'Sat, 19 Oct 2024 14:08:42 GMT', 'content-type': 'text/html;charset=utf-8', 'content-length': '3926', 'x-squid-error': 'ERR_READ_ERROR 104', vary: 'Accept-Language', 'content-language': 'en', 'cache-status': '714aa33f54c9;detail=mismatch', via: '1.1 714aa33f54c9 (squid/6.6)', connection: 'close' }, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function: FormData] { LINE_BREAK: '\r\n', DEFAULT_CONTENT_TYPE: 'application/octet-stream' }, Blob: [class Blob] }, validateStatus: [Function: validateStatus], headers: Object [AxiosHeaders] { Accept: 'application/json, text/plain, /', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'axios/1.7.7', 'Content-Length': '177', 'Accept-Encoding': 'gzip, compress, deflate, br' }, httpAgent: HttpProxyAgent { _events: [Object: null prototype] { free: [Function (anonymous)], newListener: [Function: maybeEnableKeylog] }, _eventsCount: 2, _maxListeners: undefined, options: [Object: null prototype] { noDelay: true, path: null }, requests: [Object: null prototype] {}, sockets: [Object: null prototype] { 'login.microsoftonline.com:443:::::::::::::::::::::': [ [Socket] ] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, proxy: URL { [Symbol(context)]: URLContext { href: 'http://127.0.0.1:3129/', protocol_end: 5, username_end: 7, host_start: 7, host_end: 16, pathname_start: 21, search_start: 4294967295, hash_start: 4294967295, port: 3129, scheme_type: 0 } }, proxyHeaders: {}, connectOpts: { host: '127.0.0.1', port: 3129 },
[Symbol(AgentBaseInternalState)]: { currentSocket: undefined }
},
httpsAgent: HttpProxyAgent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
options: [Object: null prototype] { noDelay: true, path: null },
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {
'login.microsoftonline.com:443:::::::::::::::::::::': [ [Socket] ]
},
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
proxy: URL {
[Symbol(context)]: URLContext {
href: 'http://127.0.0.1:3129/',
protocol_end: 5,
username_end: 7,
host_start: 7,
host_end: 16,
pathname_start: 21,
search_start: 4294967295,
hash_start: 4294967295,
port: 3129,
scheme_type: 0
}
},
proxyHeaders: {},
connectOpts: { host: '127.0.0.1', port: 3129 },
[Symbol(kCapture)]: false,
[Symbol(AgentBaseInternalState)]: { currentSocket: undefined }
},
url: 'https://login.microsoftonline.com/consumers/oauth2/v2.0/token',
method: 'post',
data: 'grant_type=authorization_code&client_id=0000000040170455&code=M.C545_BL2.2.U.f49f8565-5c55-ac1e-6831-ea46e6af7a0c&redirect_uri=https%3A%2F%2Flogin.live.com%2Foauth20_desktop.srf'
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
finish: [Function: requestOnFinish]
},
_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,
strictContentLength: false,
_contentLength: '177',
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
socket: <ref *2> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_readableState: ReadableState {
state: 266328,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
flowing: true,
errored: null,
defaultEncoding: 'utf8',
awaitDrainWriters: null,
decoder: null,
encoding: null,
[Symbol(kPaused)]: false
},
_events: [Object: null prototype] {
end: [Function: onReadableStreamEnd],
free: [Function: onFree],
close: [ [Function: onClose], [Function: socketCloseListener] ],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove],
error: [Function: socketErrorListener],
finish: [Function: bound onceWrapper] {
listener: [Function: destroy]
}
},
_eventsCount: 7,
_maxListeners: undefined,
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: true,
needDrain: false,
ending: true,
ended: true,
finished: false,
destroyed: false,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: false,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 1,
constructed: true,
prefinished: false,
errorEmitted: false,
emitClose: false,
autoDestroy: true,
errored: null,
closed: false,
closeEmitted: false,
[Symbol(kOnFinished)]: []
},
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
parser: null,
_httpMessage: [Circular *1],
[Symbol(async_id_symbol)]: 9678,
[Symbol(kHandle)]: TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *2],
[Symbol(kResourceStore)]: undefined
},
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
_header: 'POST http://login.microsoftonline.com:443/consumers/oauth2/v2.0/token HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/x-www-form-urlencoded\r\n' +
'User-Agent: axios/1.7.7\r\n' +
'Content-Length: 177\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: login.microsoftonline.com\r\n' +
'Proxy-Connection: close\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: HttpProxyAgent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
options: [Object: null prototype] { noDelay: true, path: null },
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {
'login.microsoftonline.com:443:::::::::::::::::::::': [ [Socket] ]
},
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
proxy: URL {
[Symbol(context)]: URLContext {
href: 'http://127.0.0.1:3129/',
protocol_end: 5,
username_end: 7,
host_start: 7,
host_end: 16,
pathname_start: 21,
search_start: 4294967295,
hash_start: 4294967295,
port: 3129,
scheme_type: 0
}
},
proxyHeaders: {},
connectOpts: { host: '127.0.0.1', port: 3129 },
[Symbol(kCapture)]: false,
[Symbol(AgentBaseInternalState)]: { currentSocket: undefined }
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: 'http://login.microsoftonline.com:443/consumers/oauth2/v2.0/token',
_ended: true,
res: IncomingMessage {
_readableState: ReadableState {
state: 325654,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
flowing: true,
errored: null,
defaultEncoding: 'utf8',
awaitDrainWriters: null,
decoder: null,
encoding: null,
[Symbol(kPaused)]: false
},
_events: [Object: null prototype] {
end: [ [Function: responseOnEnd], [Function: handleStreamEnd] ],
error: [Function: handleStreamError],
data: [Function: handleStreamData],
aborted: [Function: handlerStreamAborted]
},
_eventsCount: 4,
_maxListeners: undefined,
socket: <ref *2> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_readableState: ReadableState {
state: 266328,
highWaterMark: 16384,
buffer: [BufferList],
length: 0,
pipes: [],
flowing: true,
errored: null,
defaultEncoding: 'utf8',
awaitDrainWriters: null,
decoder: null,
encoding: null,
[Symbol(kPaused)]: false
},
_events: [Object: null prototype] {
end: [Function: onReadableStreamEnd],
free: [Function: onFree],
close: [Array],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove],
error: [Function: socketErrorListener],
finish: [Function]
},
_eventsCount: 7,
_maxListeners: undefined,
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: true,
needDrain: false,
ending: true,
ended: true,
finished: false,
destroyed: false,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: false,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 1,
constructed: true,
prefinished: false,
errorEmitted: false,
emitClose: false,
autoDestroy: true,
errored: null,
closed: false,
closeEmitted: false,
[Symbol(kOnFinished)]: []
},
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
parser: null,
_httpMessage: [Circular *1],
[Symbol(async_id_symbol)]: 9678,
[Symbol(kHandle)]: TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *2],
[Symbol(kResourceStore)]: undefined
},
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [
'Server',
'squid/6.6',
'Mime-Version',
'1.0',
'Date',
'Sat, 19 Oct 2024 14:08:42 GMT',
'Content-Type',
'text/html;charset=utf-8',
'Content-Length',
'3926',
'X-Squid-Error',
'ERR_READ_ERROR 104',
'Vary',
'Accept-Language',
'Content-Language',
'en',
'Cache-Status',
'714aa33f54c9;detail=mismatch',
'Via',
'1.1 714aa33f54c9 (squid/6.6)',
'Connection',
'close'
],
rawTrailers: [],
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 502,
statusMessage: 'Bad Gateway',
client: <ref *2> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_closeAfterHandlingError: false,
_readableState: ReadableState {
state: 266328,
highWaterMark: 16384,
buffer: [BufferList],
length: 0,
pipes: [],
flowing: true,
errored: null,
defaultEncoding: 'utf8',
awaitDrainWriters: null,
decoder: null,
encoding: null,
[Symbol(kPaused)]: false
},
_events: [Object: null prototype] {
end: [Function: onReadableStreamEnd],
free: [Function: onFree],
close: [Array],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove],
error: [Function: socketErrorListener],
finish: [Function]
},
_eventsCount: 7,
_maxListeners: undefined,
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: true,
needDrain: false,
ending: true,
ended: true,
finished: false,
destroyed: false,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: false,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 1,
constructed: true,
prefinished: false,
errorEmitted: false,
emitClose: false,
autoDestroy: true,
errored: null,
closed: false,
closeEmitted: false,
[Symbol(kOnFinished)]: []
},
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
parser: null,
_httpMessage: [Circular *1],
[Symbol(async_id_symbol)]: 9678,
[Symbol(kHandle)]: TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *2],
[Symbol(kResourceStore)]: undefined
},
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
_consuming: true,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://login.microsoftonline.com/consumers/oauth2/v2.0/token',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: {
server: 'squid/6.6',
'mime-version': '1.0',
date: 'Sat, 19 Oct 2024 14:08:42 GMT',
'content-type': 'text/html;charset=utf-8',
'content-length': '3926',
'x-squid-error': 'ERR_READ_ERROR 104',
vary: 'Accept-Language',
'content-language': 'en',
'cache-status': '714aa33f54c9;detail=mismatch',
via: '1.1 714aa33f54c9 (squid/6.6)',
connection: 'close'
},
[Symbol(kHeadersCount)]: 22,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'login.microsoftonline.com',
protocol: 'https:',
_redirectable: 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: 21,
maxBodyLength: Infinity,
protocol: 'https:',
path: '/consumers/oauth2/v2.0/token',
method: 'POST',
headers: [Object: null prototype] {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/x-www-form-urlencoded',
'User-Agent': 'axios/1.7.7',
'Content-Length': '177',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
agents: { http: [HttpProxyAgent], https: [HttpProxyAgent] },
auth: undefined,
family: undefined,
beforeRedirect: [Function: dispatchBeforeRedirect],
beforeRedirects: { proxy: [Function: beforeRedirect] },
hostname: 'login.microsoftonline.com',
port: '',
agent: HttpProxyAgent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
proxy: [URL],
proxyHeaders: {},
connectOpts: [Object],
[Symbol(kCapture)]: false,
[Symbol(AgentBaseInternalState)]: [Object]
},
nativeProtocols: { 'http:': [Object], 'https:': [Object] },
pathname: '/consumers/oauth2/v2.0/token'
},
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 177,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://login.microsoftonline.com/consumers/oauth2/v2.0/token',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [ 'Accept', 'application/json, text/plain, */*' ],
'content-type': [ 'Content-Type', 'application/x-www-form-urlencoded' ],
'user-agent': [ 'User-Agent', 'axios/1.7.7' ],
'content-length': [ 'Content-Length', '177' ],
'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ],
host: [ 'Host', 'login.microsoftonline.com' ],
'proxy-connection': [ 'Proxy-Connection', 'close' ]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
data: '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\n' +
'<html><head>\n' +
'<meta type="copyright" content="Copyright (C) 1996-2021 The Squid Software Foundation and contributors">\n' +
'<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\n' +
'<title>ERROR: The requested URL could not be retrieved</title>\n' +
'<style type="text/css"><!-- \n' +
' /*\n' +
' * Copyright (C) 1996-2023 The Squid Software Foundation and contributors\n' +
' *\n' +
' * Squid software is distributed under GPLv2+ license and includes\n' +
' * contributions from numerous individuals and organizations.\n' +
' * Please see the COPYING and CONTRIBUTORS files for details.\n' +
' */\n' +
'\n' +
'/*\n' +
' Stylesheet for Squid Error pages\n' +
' Adapted from design by Free CSS Templates\n' +
' http://www.freecsstemplates.org\n' +
' Released for free under a Creative Commons Attribution 2.5 License\n' +
'*/\n' +
'\n' +
'/* Page basics */\n' +
'* {\n' +
'\tfont-family: verdana, sans-serif;\n' +
'}\n' +
'\n' +
'html body {\n' +
'\tmargin: 0;\n' +
'\tpadding: 0;\n' +
'\tbackground: #efefef;\n' +
'\tfont-size: 12px;\n' +
'\tcolor: #1e1e1e;\n' +
'}\n' +
'\n' +
'/* Page displayed title area */\n' +
'#titles {\n' +
'\tmargin-left: 15px;\n' +
'\tpadding: 10px;\n' +
'\tpadding-left: 100px;\n' +
"\tbackground: url('/squid-internal-static/icons/SN.png') no-repeat left;\n" +
'}\n' +
'\n' +
'/* initial title */\n' +
'#titles h1 {\n' +
'\tcolor: #000000;\n' +
'}\n' +
'#titles h2 {\n' +
'\tcolor: #000000;\n' +
'}\n' +
'\n' +
'/* special event: FTP success page titles */\n' +
'#titles ftpsuccess {\n' +
'\tbackground-color:#00ff00;\n' +
'\twidth:100%;\n' +
'}\n' +
'\n' +
'/* Page displayed body content area */\n' +
'#content {\n' +
'\tpadding: 10px;\n' +
'\tbackground: #ffffff;\n' +
'}\n' +
'\n' +
'/* General text */\n' +
'p {\n' +
'}\n' +
'\n' +
'/* error brief description */\n' +
'#error p {\n' +
'}\n' +
'\n' +
'/* some data which may have caused the problem */\n' +
'#data {\n' +
'}\n' +
'\n' +
'/* the error message received from the system or other software */\n' +
'#sysmsg {\n' +
'}\n' +
'\n' +
'pre {\n' +
'}\n' +
'\n' +
'/* special event: FTP directory listing */\n' +
'#dirmsg {\n' +
' font-family: courier, monospace;\n' +
' color: black;\n' +
' font-size: 10pt;\n' +
'}\n' +
'#dirlisting {\n' +
' margin-left: 2%;\n' +
' margin-right: 2%;\n' +
'}\n' +
'#dirlisting tr.entry td.icon,td.filename,td.size,td.date {\n' +
' border-bottom: groove;\n' +
'}\n' +
'#dirlisting td.size {\n' +
' width: 50px;\n' +
' text-align: right;\n' +
' padding-right: 5px;\n' +
'}\n' +
'\n' +
'/* horizontal lines */\n' +
'hr {\n' +
'\tmargin: 0;\n' +
'}\n' +
'\n' +
'/* page displayed footer area */\n' +
'#footer {\n' +
'\tfont-size: 9px;\n' +
'\tpadding-left: 10px;\n' +
'}\n' +
'\n' +
'\n' +
'body\n' +
':lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; }\n' +
':lang(he) { direction: rtl; }\n' +
' --></style>\n' +
'</head><body id=ERR_READ_ERROR>\n' +
'<div id="titles">\n' +
'<h1>ERROR</h1>\n' +
'<h2>The requested URL could not be retrieved</h2>\n' +
'</div>\n' +
'<hr>\n' +
'\n' +
'<div id="content">\n' +
'<p>The following error was encountered while trying to retrieve the URL: <a href="http://login.microsoftonline.com:443/consumers/oauth2/v2.0/token">http://login.microsoftonline.com:443/consumers/oauth2/v2.0/token</a></p>\n' +
'\n' +
'<blockquote id="error">\n' +
'<p><b>Read Error</b></p>\n' +
'</blockquote>\n' +
'\n' +
'<p id="sysmsg">The system returned: <i>(104) Connection reset by peer</i></p>\n' +
'\n' +
'<p>An error condition occurred while reading data from the network. Please retry your request.</p>\n' +
'\n' +
'<p>Your cache administrator is <a href="mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_READ_ERROR&body=CacheHost%3A%20714aa33f54c9%0D%0AErrPage%3A%20ERR_READ_ERROR%0D%0AErr%3A%20(104)%20Connection%20reset%20by%20peer%0D%0ATimeStamp%3A%20Sat,%2019%20Oct%202024%2014%3A08%3A42%20GMT%0D%0A%0D%0AClientIP%3A%20172.17.0.1%0D%0AServerIP%3A%20login.microsoftonline.com%0D%0A%0D%0AHTTP%20Request%3A%0D%0APOST%20%2Fconsumers%2Foauth2%2Fv2.0%2Ftoken%20HTTP%2F1.1%0AAccept%3A%20application%2Fjson,%20text%2Fplain,%20*%2F*%0D%0AContent-Type%3A%20application%2Fx-www-form-urlencoded%0D%0AUser-Agent%3A%20axios%2F1.7.7%0D%0AContent-Length%3A%20177%0D%0AAccept-Encoding%3A%20gzip,%20compress,%20deflate,%20br%0D%0AHost%3A%20login.microsoftonline.com%3A443%0D%0AProxy-Connection%3A%20close%0D%0AConnection%3A%20close%0D%0A%0D%0A%0D%0A">webmaster</a>.</p>\n' +
'<br>\n' +
'</div>\n' +
'\n' +
'<hr>\n' +
'<div id="footer">\n' +
'<p>Generated Sat, 19 Oct 2024 14:08:42 GMT by 714aa33f54c9 (squid/6.6)</p>\n' +
'<!-- ERR_READ_ERROR -->\n' +
'</div>\n' +
'</body></html>\n'
}, status: 502 } `
server side logs:
2024-10-19 14:08:33 us=928579 PID_ERR replay [0] [SSL-2] [0000000000000000000000000000000000000000000000000000000000000000] 0:766 0:766 t=1729346913[0] r=[-2,64,15,0,1] sl=[2,64,64,528]
2024-10-19 14:08:33 us=928615 AEAD Decrypt error: bad packet ID (may be a replay): [ #766 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
2024-10-19 14:08:38 us=53092 PID_ERR replay [0] [SSL-2] [0111111111111111111111111111111111111111222222333333333333333333] 0:861 0:861 t=1729346918[0] r=[-2,64,15,0,1] sl=[35,64,64,528]
2024-10-19 14:08:38 us=53117 AEAD Decrypt error: bad packet ID (may be a replay): [ #861 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
2024-10-19 14:08:38 us=896332 PID_ERR replay-window backtrack occurred [21] [SSL-2] [0_____________________000000000000000000000000000000000000000000] 0:2030 0:2009 t=1729346918[0] r=[-2,64,15,21,1] sl=[18,64,64,528]
1729346918.787 461 172.17.0.1 TCP_TUNNEL/200 138 CONNECT msrewardspme.azureedge.net:443 - HIER_DIRECT/13.107.246.57 -
1729346918.787 463 172.17.0.1 TCP_TUNNEL/200 138 CONNECT msrewardspme.azureedge.net:443 - HIER_DIRECT/13.107.246.57 -
1729346918.787 463 172.17.0.1 TCP_TUNNEL/200 138 CONNECT msrewardspme.azureedge.net:443 - HIER_DIRECT/13.107.246.57 -
1729346919.840 107 172.17.0.1 TCP_TUNNEL/200 39 CONNECT www.bing.com:443 - HIER_DIRECT/23.213.53.24 -
1729346919.973 452 172.17.0.1 TCP_TUNNEL/200 4135 CONNECT c.s-microsoft.com:443 - HIER_DIRECT/23.221.246.39 -
1729346920.432 201 172.17.0.1 TCP_TUNNEL/200 39 CONNECT r.bing.com:443 - HIER_DIRECT/23.213.53.21 -
2024-10-19 14:08:42 us=98858 PID_ERR replay [0] [SSL-2] [0000000000000000000000000000000000000000000000000000000000000000] 0:4849 0:4849 t=1729346922[0] r=[-1,64,15,21,1] sl=[15,64,64,528]
2024-10-19 14:08:42 us=98871 AEAD Decrypt error: bad packet ID (may be a replay): [ #4849 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
1729346922.585 331 172.17.0.1 TCP_MISS_ABORTED/502 4268 POST http://login.microsoftonline.com:443/consumers/oauth2/v2.0/token - HIER_DIRECT/40.126.29.9 text/html
1729346922.585 0 172.17.0.1 NONE_NONE/000 0 - error:transaction-end-before-headers - HIER_NONE/- -
1729346922.598 2363 172.17.0.1 TCP_TUNNEL/200 4617 CONNECT r.bing.com:443 - HIER_DIRECT/23.213.53.21 -
1729346922.598 991 172.17.0.1 TCP_TUNNEL/200 7490 CONNECT optimizationguide-pa.googleapis.com:443 - HIER_DIRECT/142.250.190.138 -
1729346922.600 3078 172.17.0.1 TCP_TUNNEL/200 71717 CONNECT c.s-microsoft.com:443 - HIER_DIRECT/23.221.246.39 -
1729346922.600 913 172.17.0.1 TCP_TUNNEL/200 15185 CONNECT assets.msn.com:443 - HIER_DIRECT/23.45.46.230 -
1729346922.600 4273 172.17.0.1 TCP_TUNNEL/200 778984 CONNECT msrewardspme.azureedge.net:443 - HIER_DIRECT/13.107.246.57 -
1729346922.600 4273 172.17.0.1 TCP_TUNNEL/200 12213 CONNECT az15297.vo.msecnd.net:443 - HIER_DIRECT/72.21.81.200 -
1729346922.600 4273 172.17.0.1 TCP_TUNNEL/200 10549 CONNECT storage.live.com:443 - HIER_DIRECT/40.79.207.80 -
1729346922.600 3189 172.17.0.1 TCP_TUNNEL/200 19440 CONNECT wcpstatic.microsoft.com:443 - HIER_DIRECT/13.107.246.57 -
1729346922.600 10930 172.17.0.1 TCP_TUNNEL/200 8092 CONNECT accounts.google.com:443 - HIER_DIRECT/172.18.128.1 -
1729346922.600 5791 172.17.0.1 TCP_TUNNEL/200 30969 CONNECT login.live.com:443 - HIER_DIRECT/40.126.28.23 -
1729346922.600 10485 172.17.0.1 TCP_TUNNEL/200 791835 CONNECT r1---sn-vgqsknz6.gvt1.com:443 - HIER_DIRECT/172.217.129.166 -
1729346922.600 8791 172.17.0.1 TCP_TUNNEL/200 2031236 CONNECT rewards.bing.com:443 - HIER_DIRECT/13.107.21.237 -
1729346922.600 8170 172.17.0.1 TCP_TUNNEL/200 7426 CONNECT login.windows.net:443 - HIER_DIRECT/20.190.157.9 -
1729346922.600 7356 172.17.0.1 TCP_TUNNEL/200 8157 CONNECT login.microsoftonline.com:443 - HIER_DIRECT/40.126.29.9 -
1729346922.600 2416 172.17.0.1 TCP_TUNNEL/200 378768 CONNECT r.bing.com:443 - HIER_DIRECT/23.213.53.21 -
1729346922.600 2508 172.17.0.1 TCP_TUNNEL/200 150798 CONNECT r.bing.com:443 - HIER_DIRECT/23.213.53.21 -
1729346922.600 3187 172.17.0.1 TCP_TUNNEL/200 2695819 CONNECT www.bing.com:443 - HIER_DIRECT/23.213.53.24 -
1729346922.600 3078 172.17.0.1 TCP_TUNNEL/200 30482 CONNECT www.microsoft.com:443 - HIER_DIRECT/184.84.169.167 -
1729346922.600 4276 172.17.0.1 TCP_TUNNEL/200 286960 CONNECT msrewardspme.azureedge.net:443 - HIER_DIRECT/13.107.246.57 -
1729346922.600 10951 172.17.0.1 TCP_TUNNEL/200 9983 CONNECT redirector.gvt1.com:443 - HIER_DIRECT/142.250.191.174 -
2024-10-19 14:08:47 us=760253 PID_ERR replay [0] [SSL-2] [02222223333344444444444444455555555_5555555555555555555555555555] 0:6080 0:6080 t=1729346927[0] r=[0,64,15,21,1] sl=[0,64,64,528]
2024-10-19 14:08:47 us=760404 AEAD Decrypt error: bad packet ID (may be a replay): [ #6080 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
2024-10-19 14:08:50 us=875980 PID_ERR replay [0] [SSL-2] [01112333335555556666677777777777777788888888_8888888888888888888] 0:6089 0:6089 t=1729346930[0] r=[-3,64,15,21,1] sl=[55,64,64,528]
2024-10-19 14:08:50 us=876132 AEAD Decrypt error: bad packet ID (may be a replay): [ #6089 ] -- see the man page entry for --no-replay and --replay-window for more info or silence this warning with --mute-replay-warnings
I cant test this without openvpn running with squid, microsoft rewards is not available in my country,
I can test it whitout a proxy, and can confirm that whitout a proxy set, the script seems to work just fine.
jesus learn how to use the collapsible sections. also code blocks.
jesus learn how to use the collapsible sections. also code blocks.
Thank you, just fixed my comments
Thank you lol. it was unreadable. @serzak51 you next lol
EDIT: still unreadable. please put your logs in codeblocks.
Openvpn error logs:
The microsoft rewards script runs and can load webpages but crashes seconds after some seconds with ERR_UNHANDLED_REJECTION
NOTE: 1.4.11 works perfectly, was updating to 1.4.12 because of mobile searches not working