Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { StatusCodeError: 401 - [object Object]
- at new StatusCodeError (C:\snapshot\Gunbot-master\node_modules\telegram-bot-api\node_modules\request-promise\lib\errors.js:26:15)
- at Request.RP$callback [as _callback] (C:\snapshot\Gunbot-master\node_modules\telegram-bot-api\node_modules\request-promise\lib\rp.js:68:32)
- at Request.init.self.callback (C:\snapshot\Gunbot-master\node_modules\request\request.js:186:22)
- at emitTwo (events.js:126:13)
- at Request.emit (events.js:214:7)
- at Request. (C:\snapshot\Gunbot-master\node_modules\request\request.js:1163:10)
- at emitOne (events.js:116:13)
- at Request.emit (events.js:211:7)
- at IncomingMessage. (C:\snapshot\Gunbot-master\node_modules\request\request.js:1085:12)
- at Object.onceWrapper (events.js:313:30)
- at emitNone (events.js:111:20)
- at IncomingMessage.emit (events.js:208:7)
- at endReadableNT (_stream_readable.js:1056:12)
- at _combinedTickCallback (internal/process/next_tick.js:138:11)
- at process._tickCallback (internal/process/next_tick.js:180:9)
- name: 'StatusCodeError',
- statusCode: 401,
- message: '401 - [object Object]',
- error: { ok: false, error_code: 401, description: 'Unauthorized' },
- options:
- { proxy: null,
- method: 'POST',
- json: true,
- formData:
- { chat_id: '501631281',
- text: 'At 2018/03/21 18:56:50 `Gunbot` _says:_ *BUYING* BTC-NEO _at_ bittrex_-_ *Rate:* 0.00829824 _-_ *Amount:* 4.820299244177079\n*BTC* balance: 0.10321663\n*NEO* balance: 0\nCheck this trade chart here https://www.tradingview.com/chart/?symbol=bittrex:NEOBTC',
- parse_mode: 'Markdown' },
- uri: 'https://api.telegram.org/bot491497810:AAF-M_qmomnsVXGLEK90XJfajXea-lC2glg/sendMessage',
- callback: undefined,
- transform: undefined,
- simple: true,
- resolveWithFullResponse: false },
- response:
- IncomingMessage {
- _readableState:
- ReadableState {
- objectMode: false,
- highWaterMark: 16384,
- buffer: [Object],
- length: 0,
- pipes: null,
- pipesCount: 0,
- flowing: true,
- ended: true,
- endEmitted: true,
- reading: false,
- sync: true,
- needReadable: false,
- emittedReadable: false,
- readableListening: false,
- resumeScheduled: false,
- destroyed: false,
- defaultEncoding: 'utf8',
- awaitDrain: 0,
- readingMore: false,
- decoder: null,
- encoding: null },
- readable: false,
- domain: null,
- _events:
- { end: [Array],
- close: [Array],
- data: [Function],
- error: [Function] },
- _eventsCount: 4,
- _maxListeners: undefined,
- socket:
- TLSSocket {
- _tlsOptions: [Object],
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- _SNICallback: null,
- servername: null,
- npnProtocol: false,
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object],
- _eventsCount: 9,
- connecting: false,
- _hadError: false,
- _handle: null,
- _parent: null,
- _host: 'api.telegram.org',
- _readableState: [Object],
- readable: false,
- domain: null,
- _maxListeners: undefined,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- _bytesDispatched: 907,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: null,
- _httpMessage: [Object],
- read: [Function],
- _consuming: true,
- _idleNext: null,
- _idlePrev: null,
- _idleTimeout: -1,
- [Symbol(asyncId)]: 20308,
- [Symbol(bytesRead)]: 332 },
- connection:
- TLSSocket {
- _tlsOptions: [Object],
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- _SNICallback: null,
- servername: null,
- npnProtocol: false,
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object],
- _eventsCount: 9,
- connecting: false,
- _hadError: false,
- _handle: null,
- _parent: null,
- _host: 'api.telegram.org',
- _readableState: [Object],
- readable: false,
- domain: null,
- _maxListeners: undefined,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- _bytesDispatched: 907,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: null,
- _httpMessage: [Object],
- read: [Function],
- _consuming: true,
- _idleNext: null,
- _idlePrev: null,
- _idleTimeout: -1,
- [Symbol(asyncId)]: 20308,
- [Symbol(bytesRead)]: 332 },
- httpVersionMajor: 1,
- httpVersionMinor: 1,
- httpVersion: '1.1',
- complete: true,
- headers:
- { server: 'nginx/1.12.2',
- date: 'Wed, 21 Mar 2018 16:56:51 GMT',
- 'content-type': 'application/json',
- 'content-length': '58',
- connection: 'close',
- 'access-control-allow-origin': '*',
- 'access-control-expose-headers': 'Content-Length,Content-Type,Date,Server,Connection' },
- rawHeaders:
- [ 'Server',
- 'nginx/1.12.2',
- 'Date',
- 'Wed, 21 Mar 2018 16:56:51 GMT',
- 'Content-Type',
- 'application/json',
- 'Content-Length',
- '58',
- 'Connection',
- 'close',
- 'Access-Control-Allow-Origin',
- '*',
- 'Access-Control-Expose-Headers',
- 'Content-Length,Content-Type,Date,Server,Connection' ],
- trailers: {},
- rawTrailers: [],
- upgrade: false,
- url: '',
- method: null,
- statusCode: 401,
- statusMessage: 'Unauthorized',
- client:
- TLSSocket {
- _tlsOptions: [Object],
- _secureEstablished: true,
- _securePending: false,
- _newSessionPending: false,
- _controlReleased: true,
- _SNICallback: null,
- servername: null,
- npnProtocol: false,
- alpnProtocol: false,
- authorized: true,
- authorizationError: null,
- encrypted: true,
- _events: [Object],
- _eventsCount: 9,
- connecting: false,
- _hadError: false,
- _handle: null,
- _parent: null,
- _host: 'api.telegram.org',
- _readableState: [Object],
- readable: false,
- domain: null,
- _maxListeners: undefined,
- _writableState: [Object],
- writable: false,
- allowHalfOpen: false,
- _bytesDispatched: 907,
- _sockname: null,
- _pendingData: null,
- _pendingEncoding: '',
- server: undefined,
- _server: null,
- ssl: null,
- _requestCert: true,
- _rejectUnauthorized: true,
- parser: null,
- _httpMessage: [Object],
- read: [Function],
- _consuming: true,
- _idleNext: null,
- _idlePrev: null,
- _idleTimeout: -1,
- [Symbol(asyncId)]: 20308,
- [Symbol(bytesRead)]: 332 },
- _consuming: true,
- _dumped: false,
- req:
- ClientRequest {
- domain: null,
- _events: [Object],
- _eventsCount: 5,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: true,
- upgrading: false,
- chunkedEncoding: false,
- shouldKeepAlive: false,
- useChunkedEncodingByDefault: true,
- sendDate: false,
- _removedConnection: false,
- _removedContLen: false,
- _removedTE: false,
- _contentLength: null,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- socket: [Object],
- connection: [Object],
- _header: 'POST /bot491497810:AAF-M_qmomnsVXGLEK90XJfajXea-lC2glg/sendMessage HTTP/1.1\r\nhost: api.telegram.org\r\naccept: application/json\r\ncontent-type: multipart/form-data; boundary=--------------------------559351875114731188292880\r\ncontent-length: 642\r\nConnection: close\r\n\r\n',
- _onPendingData: [Function: noopPendingOutput],
- agent: [Object],
- socketPath: undefined,
- timeout: undefined,
- method: 'POST',
- path: '/bot491497810:AAF-M_qmomnsVXGLEK90XJfajXea-lC2glg/sendMessage',
- _ended: true,
- res: [Circular],
- aborted: undefined,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null,
- [Symbol(outHeadersKey)]: [Object] },
- request:
- Request {
- domain: null,
- _events: [Object],
- _eventsCount: 5,
- _maxListeners: undefined,
- proxy: null,
- method: 'POST',
- formData: [Object],
- uri: [Object],
- readable: true,
- writable: true,
- explicitMethod: true,
- _qs: [Object],
- _auth: [Object],
- _oauth: [Object],
- _multipart: [Object],
- _redirect: [Object],
- _tunnel: [Object],
- _rp_resolve: [Function],
- _rp_reject: [Function],
- _rp_promise: [Object],
- _rp_callbackOrig: undefined,
- callback: [Function],
- _rp_options: [Object],
- headers: [Object],
- setHeader: [Function],
- hasHeader: [Function],
- getHeader: [Function],
- removeHeader: [Function],
- localAddress: undefined,
- pool: {},
- dests: [],
- __isRequestRequest: true,
- _callback: [Function: RP$callback],
- tunnel: true,
- setHost: true,
- originalCookieHeader: undefined,
- _disableCookies: true,
- _jar: undefined,
- port: 443,
- host: 'api.telegram.org',
- _form: [Object],
- path: '/bot491497810:AAF-M_qmomnsVXGLEK90XJfajXea-lC2glg/sendMessage',
- _json: true,
- httpModule: [Object],
- agentClass: [Object],
- agent: [Object],
- ntick: true,
- src: [Object],
- _started: true,
- href: 'https://api.telegram.org/bot491497810:AAF-M_qmomnsVXGLEK90XJfajXea-lC2glg/sendMessage',
- req: [Object],
- response: [Circular],
- originalHost: 'api.telegram.org',
- originalHostHeaderName: 'host',
- responseContent: [Circular],
- _destdata: true,
- _ended: true,
- _callbackCalled: true },
- toJSON: [Function: responseToJSON],
- caseless: Caseless { dict: [Object] },
- read: [Function],
- body: { ok: false, error_code: 401, description: 'Unauthorized' } } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement