Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.11 KB | None | 0 0
  1. { StatusCodeError: 401 - [object Object]
  2. at new StatusCodeError (C:\snapshot\Gunbot-master\node_modules\telegram-bot-api\node_modules\request-promise\lib\errors.js:26:15)
  3. at Request.RP$callback [as _callback] (C:\snapshot\Gunbot-master\node_modules\telegram-bot-api\node_modules\request-promise\lib\rp.js:68:32)
  4. at Request.init.self.callback (C:\snapshot\Gunbot-master\node_modules\request\request.js:186:22)
  5. at emitTwo (events.js:126:13)
  6. at Request.emit (events.js:214:7)
  7. at Request. (C:\snapshot\Gunbot-master\node_modules\request\request.js:1163:10)
  8. at emitOne (events.js:116:13)
  9. at Request.emit (events.js:211:7)
  10. at IncomingMessage. (C:\snapshot\Gunbot-master\node_modules\request\request.js:1085:12)
  11. at Object.onceWrapper (events.js:313:30)
  12. at emitNone (events.js:111:20)
  13. at IncomingMessage.emit (events.js:208:7)
  14. at endReadableNT (_stream_readable.js:1056:12)
  15. at _combinedTickCallback (internal/process/next_tick.js:138:11)
  16. at process._tickCallback (internal/process/next_tick.js:180:9)
  17. name: 'StatusCodeError',
  18. statusCode: 401,
  19. message: '401 - [object Object]',
  20. error: { ok: false, error_code: 401, description: 'Unauthorized' },
  21. options:
  22. { proxy: null,
  23. method: 'POST',
  24. json: true,
  25. formData:
  26. { chat_id: '501631281',
  27. 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',
  28. parse_mode: 'Markdown' },
  29. uri: 'https://api.telegram.org/bot491497810:AAF-M_qmomnsVXGLEK90XJfajXea-lC2glg/sendMessage',
  30. callback: undefined,
  31. transform: undefined,
  32. simple: true,
  33. resolveWithFullResponse: false },
  34. response:
  35. IncomingMessage {
  36. _readableState:
  37. ReadableState {
  38. objectMode: false,
  39. highWaterMark: 16384,
  40. buffer: [Object],
  41. length: 0,
  42. pipes: null,
  43. pipesCount: 0,
  44. flowing: true,
  45. ended: true,
  46. endEmitted: true,
  47. reading: false,
  48. sync: true,
  49. needReadable: false,
  50. emittedReadable: false,
  51. readableListening: false,
  52. resumeScheduled: false,
  53. destroyed: false,
  54. defaultEncoding: 'utf8',
  55. awaitDrain: 0,
  56. readingMore: false,
  57. decoder: null,
  58. encoding: null },
  59. readable: false,
  60. domain: null,
  61. _events:
  62. { end: [Array],
  63. close: [Array],
  64. data: [Function],
  65. error: [Function] },
  66. _eventsCount: 4,
  67. _maxListeners: undefined,
  68. socket:
  69. TLSSocket {
  70. _tlsOptions: [Object],
  71. _secureEstablished: true,
  72. _securePending: false,
  73. _newSessionPending: false,
  74. _controlReleased: true,
  75. _SNICallback: null,
  76. servername: null,
  77. npnProtocol: false,
  78. alpnProtocol: false,
  79. authorized: true,
  80. authorizationError: null,
  81. encrypted: true,
  82. _events: [Object],
  83. _eventsCount: 9,
  84. connecting: false,
  85. _hadError: false,
  86. _handle: null,
  87. _parent: null,
  88. _host: 'api.telegram.org',
  89. _readableState: [Object],
  90. readable: false,
  91. domain: null,
  92. _maxListeners: undefined,
  93. _writableState: [Object],
  94. writable: false,
  95. allowHalfOpen: false,
  96. _bytesDispatched: 907,
  97. _sockname: null,
  98. _pendingData: null,
  99. _pendingEncoding: '',
  100. server: undefined,
  101. _server: null,
  102. ssl: null,
  103. _requestCert: true,
  104. _rejectUnauthorized: true,
  105. parser: null,
  106. _httpMessage: [Object],
  107. read: [Function],
  108. _consuming: true,
  109. _idleNext: null,
  110. _idlePrev: null,
  111. _idleTimeout: -1,
  112. [Symbol(asyncId)]: 20308,
  113. [Symbol(bytesRead)]: 332 },
  114. connection:
  115. TLSSocket {
  116. _tlsOptions: [Object],
  117. _secureEstablished: true,
  118. _securePending: false,
  119. _newSessionPending: false,
  120. _controlReleased: true,
  121. _SNICallback: null,
  122. servername: null,
  123. npnProtocol: false,
  124. alpnProtocol: false,
  125. authorized: true,
  126. authorizationError: null,
  127. encrypted: true,
  128. _events: [Object],
  129. _eventsCount: 9,
  130. connecting: false,
  131. _hadError: false,
  132. _handle: null,
  133. _parent: null,
  134. _host: 'api.telegram.org',
  135. _readableState: [Object],
  136. readable: false,
  137. domain: null,
  138. _maxListeners: undefined,
  139. _writableState: [Object],
  140. writable: false,
  141. allowHalfOpen: false,
  142. _bytesDispatched: 907,
  143. _sockname: null,
  144. _pendingData: null,
  145. _pendingEncoding: '',
  146. server: undefined,
  147. _server: null,
  148. ssl: null,
  149. _requestCert: true,
  150. _rejectUnauthorized: true,
  151. parser: null,
  152. _httpMessage: [Object],
  153. read: [Function],
  154. _consuming: true,
  155. _idleNext: null,
  156. _idlePrev: null,
  157. _idleTimeout: -1,
  158. [Symbol(asyncId)]: 20308,
  159. [Symbol(bytesRead)]: 332 },
  160. httpVersionMajor: 1,
  161. httpVersionMinor: 1,
  162. httpVersion: '1.1',
  163. complete: true,
  164. headers:
  165. { server: 'nginx/1.12.2',
  166. date: 'Wed, 21 Mar 2018 16:56:51 GMT',
  167. 'content-type': 'application/json',
  168. 'content-length': '58',
  169. connection: 'close',
  170. 'access-control-allow-origin': '*',
  171. 'access-control-expose-headers': 'Content-Length,Content-Type,Date,Server,Connection' },
  172. rawHeaders:
  173. [ 'Server',
  174. 'nginx/1.12.2',
  175. 'Date',
  176. 'Wed, 21 Mar 2018 16:56:51 GMT',
  177. 'Content-Type',
  178. 'application/json',
  179. 'Content-Length',
  180. '58',
  181. 'Connection',
  182. 'close',
  183. 'Access-Control-Allow-Origin',
  184. '*',
  185. 'Access-Control-Expose-Headers',
  186. 'Content-Length,Content-Type,Date,Server,Connection' ],
  187. trailers: {},
  188. rawTrailers: [],
  189. upgrade: false,
  190. url: '',
  191. method: null,
  192. statusCode: 401,
  193. statusMessage: 'Unauthorized',
  194. client:
  195. TLSSocket {
  196. _tlsOptions: [Object],
  197. _secureEstablished: true,
  198. _securePending: false,
  199. _newSessionPending: false,
  200. _controlReleased: true,
  201. _SNICallback: null,
  202. servername: null,
  203. npnProtocol: false,
  204. alpnProtocol: false,
  205. authorized: true,
  206. authorizationError: null,
  207. encrypted: true,
  208. _events: [Object],
  209. _eventsCount: 9,
  210. connecting: false,
  211. _hadError: false,
  212. _handle: null,
  213. _parent: null,
  214. _host: 'api.telegram.org',
  215. _readableState: [Object],
  216. readable: false,
  217. domain: null,
  218. _maxListeners: undefined,
  219. _writableState: [Object],
  220. writable: false,
  221. allowHalfOpen: false,
  222. _bytesDispatched: 907,
  223. _sockname: null,
  224. _pendingData: null,
  225. _pendingEncoding: '',
  226. server: undefined,
  227. _server: null,
  228. ssl: null,
  229. _requestCert: true,
  230. _rejectUnauthorized: true,
  231. parser: null,
  232. _httpMessage: [Object],
  233. read: [Function],
  234. _consuming: true,
  235. _idleNext: null,
  236. _idlePrev: null,
  237. _idleTimeout: -1,
  238. [Symbol(asyncId)]: 20308,
  239. [Symbol(bytesRead)]: 332 },
  240. _consuming: true,
  241. _dumped: false,
  242. req:
  243. ClientRequest {
  244. domain: null,
  245. _events: [Object],
  246. _eventsCount: 5,
  247. _maxListeners: undefined,
  248. output: [],
  249. outputEncodings: [],
  250. outputCallbacks: [],
  251. outputSize: 0,
  252. writable: true,
  253. _last: true,
  254. upgrading: false,
  255. chunkedEncoding: false,
  256. shouldKeepAlive: false,
  257. useChunkedEncodingByDefault: true,
  258. sendDate: false,
  259. _removedConnection: false,
  260. _removedContLen: false,
  261. _removedTE: false,
  262. _contentLength: null,
  263. _hasBody: true,
  264. _trailer: '',
  265. finished: true,
  266. _headerSent: true,
  267. socket: [Object],
  268. connection: [Object],
  269. _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',
  270. _onPendingData: [Function: noopPendingOutput],
  271. agent: [Object],
  272. socketPath: undefined,
  273. timeout: undefined,
  274. method: 'POST',
  275. path: '/bot491497810:AAF-M_qmomnsVXGLEK90XJfajXea-lC2glg/sendMessage',
  276. _ended: true,
  277. res: [Circular],
  278. aborted: undefined,
  279. timeoutCb: null,
  280. upgradeOrConnect: false,
  281. parser: null,
  282. maxHeadersCount: null,
  283. [Symbol(outHeadersKey)]: [Object] },
  284. request:
  285. Request {
  286. domain: null,
  287. _events: [Object],
  288. _eventsCount: 5,
  289. _maxListeners: undefined,
  290. proxy: null,
  291. method: 'POST',
  292. formData: [Object],
  293. uri: [Object],
  294. readable: true,
  295. writable: true,
  296. explicitMethod: true,
  297. _qs: [Object],
  298. _auth: [Object],
  299. _oauth: [Object],
  300. _multipart: [Object],
  301. _redirect: [Object],
  302. _tunnel: [Object],
  303. _rp_resolve: [Function],
  304. _rp_reject: [Function],
  305. _rp_promise: [Object],
  306. _rp_callbackOrig: undefined,
  307. callback: [Function],
  308. _rp_options: [Object],
  309. headers: [Object],
  310. setHeader: [Function],
  311. hasHeader: [Function],
  312. getHeader: [Function],
  313. removeHeader: [Function],
  314. localAddress: undefined,
  315. pool: {},
  316. dests: [],
  317. __isRequestRequest: true,
  318. _callback: [Function: RP$callback],
  319. tunnel: true,
  320. setHost: true,
  321. originalCookieHeader: undefined,
  322. _disableCookies: true,
  323. _jar: undefined,
  324. port: 443,
  325. host: 'api.telegram.org',
  326. _form: [Object],
  327. path: '/bot491497810:AAF-M_qmomnsVXGLEK90XJfajXea-lC2glg/sendMessage',
  328. _json: true,
  329. httpModule: [Object],
  330. agentClass: [Object],
  331. agent: [Object],
  332. ntick: true,
  333. src: [Object],
  334. _started: true,
  335. href: 'https://api.telegram.org/bot491497810:AAF-M_qmomnsVXGLEK90XJfajXea-lC2glg/sendMessage',
  336. req: [Object],
  337. response: [Circular],
  338. originalHost: 'api.telegram.org',
  339. originalHostHeaderName: 'host',
  340. responseContent: [Circular],
  341. _destdata: true,
  342. _ended: true,
  343. _callbackCalled: true },
  344. toJSON: [Function: responseToJSON],
  345. caseless: Caseless { dict: [Object] },
  346. read: [Function],
  347. body: { ok: false, error_code: 401, description: 'Unauthorized' } } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement