Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.42 KB | None | 0 0
  1. { Error: Bad Request
  2. at Request.callback (C:\Users\hamac\node_modules\superagent\lib\node\index.js:675:11)
  3. at C:\Users\hamac\node_modules\superagent\lib\node\index.js:883:18
  4. at IncomingMessage.<anonymous> (C:\Users\hamac\node_modules\superagent\lib\node\parsers\json.js:16:7)
  5. at emitNone (events.js:91:20)
  6. at IncomingMessage.emit (events.js:188:7)
  7. at endReadableNT (_stream_readable.js:975:12)
  8. at _combinedTickCallback (internal/process/next_tick.js:80:11)
  9. at process._tickCallback (internal/process/next_tick.js:104:9)
  10. status: 400,
  11. response:
  12. Response {
  13. domain: null,
  14. _events: {},
  15. _eventsCount: 0,
  16. _maxListeners: undefined,
  17. res:
  18. IncomingMessage {
  19. _readableState: [Object],
  20. readable: false,
  21. domain: null,
  22. _events: [Object],
  23. _eventsCount: 4,
  24. _maxListeners: undefined,
  25. socket: [Object],
  26. connection: [Object],
  27. httpVersionMajor: 1,
  28. httpVersionMinor: 1,
  29. httpVersion: '1.1',
  30. complete: true,
  31. headers: [Object],
  32. rawHeaders: [Object],
  33. trailers: {},
  34. rawTrailers: [],
  35. upgrade: false,
  36. url: '',
  37. method: null,
  38. statusCode: 400,
  39. statusMessage: 'BAD REQUEST',
  40. client: [Object],
  41. _consuming: true,
  42. _dumped: false,
  43. req: [Object],
  44. text: '{"type": ["Value \\"User created channel!\\" is not int."]}',
  45. read: [Function] },
  46. request:
  47. Request {
  48. domain: null,
  49. _events: {},
  50. _eventsCount: 0,
  51. _maxListeners: undefined,
  52. _agent: false,
  53. _formData: null,
  54. method: 'POST',
  55. url: 'https://discordapp.com/api/v6/guilds/237919168895254528/channels',
  56. _header: [Object],
  57. header: [Object],
  58. writable: true,
  59. _redirects: 0,
  60. _maxRedirects: 5,
  61. cookies: '',
  62. qs: {},
  63. qsRaw: [],
  64. _redirectList: [],
  65. _streamRequest: false,
  66. _data: [Object],
  67. req: [Object],
  68. protocol: 'https:',
  69. host: 'discordapp.com',
  70. _endCalled: true,
  71. _callback: [Function],
  72. res: [Object],
  73. response: [Circular],
  74. called: true },
  75. req:
  76. ClientRequest {
  77. domain: null,
  78. _events: [Object],
  79. _eventsCount: 3,
  80. _maxListeners: undefined,
  81. output: [],
  82. outputEncodings: [],
  83. outputCallbacks: [],
  84. outputSize: 0,
  85. writable: true,
  86. _last: true,
  87. upgrading: false,
  88. chunkedEncoding: false,
  89. shouldKeepAlive: false,
  90. useChunkedEncodingByDefault: true,
  91. sendDate: false,
  92. _removedHeader: [Object],
  93. _contentLength: 64,
  94. _hasBody: true,
  95. _trailer: '',
  96. finished: true,
  97. _headerSent: true,
  98. socket: [Object],
  99. connection: [Object],
  100. _header: 'POST /api/v6/guilds/237919168895254528/channels HTTP/1.1\r\nHost: discordapp.com\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: DiscordBot (https://github.com/hydrabolt/discord.js, 11.0.0)\r\nauthorization: Bot MjM3OTIyODUxOTgwNTc0NzIw.C-UBlg.h0Kajce64jXESMAoeCCv2xaPTj8\r\nContent-Type: application/json\r\nContent-Length: 64\r\nConnection: close\r\n\r\n',
  101. _headers: [Object],
  102. _headerNames: [Object],
  103. _onPendingData: null,
  104. agent: [Object],
  105. socketPath: undefined,
  106. timeout: undefined,
  107. method: 'POST',
  108. path: '/api/v6/guilds/237919168895254528/channels',
  109. _ended: true,
  110. res: [Object],
  111. aborted: undefined,
  112. timeoutCb: null,
  113. upgradeOrConnect: false,
  114. parser: null,
  115. maxHeadersCount: null },
  116. text: '{"type": ["Value \\"User created channel!\\" is not int."]}',
  117. body: { type: [Object] },
  118. files: undefined,
  119. buffered: true,
  120. headers:
  121. { date: 'Fri, 28 Apr 2017 17:45:42 GMT',
  122. 'content-type': 'application/json',
  123. 'content-length': '57',
  124. connection: 'close',
  125. 'set-cookie': [Object],
  126. 'strict-transport-security': 'max-age=31536000; includeSubDomains',
  127. via: '1.1 google',
  128. 'alt-svc': 'clear',
  129. server: 'cloudflare-nginx',
  130. 'cf-ray': '356bd6376a325a08-VIE' },
  131. header:
  132. { date: 'Fri, 28 Apr 2017 17:45:42 GMT',
  133. 'content-type': 'application/json',
  134. 'content-length': '57',
  135. connection: 'close',
  136. 'set-cookie': [Object],
  137. 'strict-transport-security': 'max-age=31536000; includeSubDomains',
  138. via: '1.1 google',
  139. 'alt-svc': 'clear',
  140. server: 'cloudflare-nginx',
  141. 'cf-ray': '356bd6376a325a08-VIE' },
  142. statusCode: 400,
  143. status: 400,
  144. statusType: 4,
  145. info: false,
  146. ok: false,
  147. redirect: false,
  148. clientError: true,
  149. serverError: false,
  150. error:
  151. { Error: cannot POST /api/v6/guilds/237919168895254528/channels (400)
  152. at Response.toError (C:\Users\hamac\node_modules\superagent\lib\node\response.js:94:13)
  153. at ResponseBase._setStatusProperties (C:\Users\hamac\node_modules\superagent\lib\response-base.js:122:16)
  154. at new Response (C:\Users\hamac\node_modules\superagent\lib\node\response.js:40:8)
  155. at Request._emitResponse (C:\Users\hamac\node_modules\superagent\lib\node\index.js:738:20)
  156. at C:\Users\hamac\node_modules\superagent\lib\node\index.js:883:38
  157. at IncomingMessage.<anonymous> (C:\Users\hamac\node_modules\superagent\lib\node\parsers\json.js:16:7)
  158. at emitNone (events.js:91:20)
  159. at IncomingMessage.emit (events.js:188:7)
  160. at endReadableNT (_stream_readable.js:975:12)
  161. at _combinedTickCallback (internal/process/next_tick.js:80:11)
  162. status: 400,
  163. text: '{"type": ["Value \\"User created channel!\\" is not int."]}',
  164. method: 'POST',
  165. path: '/api/v6/guilds/237919168895254528/channels' },
  166. accepted: false,
  167. noContent: false,
  168. badRequest: true,
  169. unauthorized: false,
  170. notAcceptable: false,
  171. forbidden: false,
  172. notFound: false,
  173. type: 'application/json',
  174. links: {},
  175. setEncoding: [Function: bound ],
  176. redirects: [] } }
  177. [nodemon] restarting due to changes...
  178. [nodemon] starting `node dogebot.js`
  179. LMFAO! Doge Bot!
  180. (node:10668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Bad Request
  181. (node:10668) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  182. [nodemon] restarting due to changes...
  183. [nodemon] starting `node dogebot.js`
  184. LMFAO! Doge Bot!
  185. (node:5116) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Bad Request
  186. (node:5116) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  187. [nodemon] restarting due to changes...
  188. [nodemon] starting `node dogebot.js`
  189. LMFAO! Doge Bot!
  190. [nodemon] restarting due to changes...
  191. [nodemon] starting `node dogebot.js`
  192. LMFAO! Doge Bot!
  193. [nodemon] restarting due to changes...
  194. [nodemon] starting `node dogebot.js`
  195. C:\Users\hamac\Desktop\DogeBot\Start\dogebot.js:31
  196. .then(msg.channel.sendMessage('Created new channel');
  197. ^
  198. SyntaxError: missing ) after argument list
  199. at createScript (vm.js:53:10)
  200. at Object.runInThisContext (vm.js:95:10)
  201. at Module._compile (module.js:543:28)
  202. at Object.Module._extensions..js (module.js:580:10)
  203. at Module.load (module.js:488:32)
  204. at tryModuleLoad (module.js:447:12)
  205. at Function.Module._load (module.js:439:3)
  206. at Module.runMain (module.js:605:10)
  207. at run (bootstrap_node.js:423:7)
  208. at startup (bootstrap_node.js:147:9)
  209. [nodemon] app crashed - waiting for file changes before starting...
  210. [nodemon] restarting due to changes...
  211. [nodemon] starting `node dogebot.js`
  212. LMFAO! Doge Bot!
  213. (node:8408) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Bad Request
  214. (node:8408) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  215. (node:8408) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Bad Request
  216. (node:8408) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: Bad Request
  217. (node:8408) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: Bad Request
  218. [nodemon] restarting due to changes...
  219. [nodemon] starting `node dogebot.js`
  220. LMFAO! Doge Bot!
  221. (node:6256) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Bad Request
  222. (node:6256) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  223. [nodemon] restarting due to changes...
  224. [nodemon] starting `node dogebot.js`
  225. LMFAO! Doge Bot!
  226. { Error: Bad Request
  227. at Request.callback (C:\Users\hamac\node_modules\superagent\lib\node\index.js:675:11)
  228. at C:\Users\hamac\node_modules\superagent\lib\node\index.js:883:18
  229. at IncomingMessage.<anonymous> (C:\Users\hamac\node_modules\superagent\lib\node\parsers\json.js:16:7)
  230. at emitNone (events.js:91:20)
  231. at IncomingMessage.emit (events.js:188:7)
  232. at endReadableNT (_stream_readable.js:975:12)
  233. at _combinedTickCallback (internal/process/next_tick.js:80:11)
  234. at process._tickCallback (internal/process/next_tick.js:104:9)
  235. status: 400,
  236. response:
  237. Response {
  238. domain: null,
  239. _events: {},
  240. _eventsCount: 0,
  241. _maxListeners: undefined,
  242. res:
  243. IncomingMessage {
  244. _readableState: [Object],
  245. readable: false,
  246. domain: null,
  247. _events: [Object],
  248. _eventsCount: 4,
  249. _maxListeners: undefined,
  250. socket: [Object],
  251. connection: [Object],
  252. httpVersionMajor: 1,
  253. httpVersionMinor: 1,
  254. httpVersion: '1.1',
  255. complete: true,
  256. headers: [Object],
  257. rawHeaders: [Object],
  258. trailers: {},
  259. rawTrailers: [],
  260. upgrade: false,
  261. url: '',
  262. method: null,
  263. statusCode: 400,
  264. statusMessage: 'BAD REQUEST',
  265. client: [Object],
  266. _consuming: true,
  267. _dumped: false,
  268. req: [Object],
  269. text: '{"type": ["Value \\"-\\" is not int."]}',
  270. read: [Function] },
  271. request:
  272. Request {
  273. domain: null,
  274. _events: {},
  275. _eventsCount: 0,
  276. _maxListeners: undefined,
  277. _agent: false,
  278. _formData: null,
  279. method: 'POST',
  280. url: 'https://discordapp.com/api/v6/guilds/237919168895254528/channels',
  281. _header: [Object],
  282. header: [Object],
  283. writable: true,
  284. _redirects: 0,
  285. _maxRedirects: 5,
  286. cookies: '',
  287. qs: {},
  288. qsRaw: [],
  289. _redirectList: [],
  290. _streamRequest: false,
  291. _data: [Object],
  292. req: [Object],
  293. protocol: 'https:',
  294. host: 'discordapp.com',
  295. _endCalled: true,
  296. _callback: [Function],
  297. res: [Object],
  298. response: [Circular],
  299. called: true },
  300. req:
  301. ClientRequest {
  302. domain: null,
  303. _events: [Object],
  304. _eventsCount: 3,
  305. _maxListeners: undefined,
  306. output: [],
  307. outputEncodings: [],
  308. outputCallbacks: [],
  309. outputSize: 0,
  310. writable: true,
  311. _last: true,
  312. upgrading: false,
  313. chunkedEncoding: false,
  314. shouldKeepAlive: false,
  315. useChunkedEncodingByDefault: true,
  316. sendDate: false,
  317. _removedHeader: [Object],
  318. _contentLength: 27,
  319. _hasBody: true,
  320. _trailer: '',
  321. finished: true,
  322. _headerSent: true,
  323. socket: [Object],
  324. connection: [Object],
  325. _header: 'POST /api/v6/guilds/237919168895254528/channels HTTP/1.1\r\nHost: discordapp.com\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: DiscordBot (https://github.com/hydrabolt/discord.js, 11.0.0)\r\nauthorization: Bot MjM3OTIyODUxOTgwNTc0NzIw.C-UBlg.h0Kajce64jXESMAoeCCv2xaPTj8\r\nContent-Type: application/json\r\nContent-Length: 27\r\nConnection: close\r\n\r\n',
  326. _headers: [Object],
  327. _headerNames: [Object],
  328. _onPendingData: null,
  329. agent: [Object],
  330. socketPath: undefined,
  331. timeout: undefined,
  332. method: 'POST',
  333. path: '/api/v6/guilds/237919168895254528/channels',
  334. _ended: true,
  335. res: [Object],
  336. aborted: undefined,
  337. timeoutCb: null,
  338. upgradeOrConnect: false,
  339. parser: null,
  340. maxHeadersCount: null },
  341. text: '{"type": ["Value \\"-\\" is not int."]}',
  342. body: { type: [Object] },
  343. files: undefined,
  344. buffered: true,
  345. headers:
  346. { date: 'Fri, 28 Apr 2017 17:50:37 GMT',
  347. 'content-type': 'application/json',
  348. 'content-length': '37',
  349. connection: 'close',
  350. 'set-cookie': [Object],
  351. 'strict-transport-security': 'max-age=31536000; includeSubDomains',
  352. via: '1.1 google',
  353. 'alt-svc': 'clear',
  354. server: 'cloudflare-nginx',
  355. 'cf-ray': '356bdd69dee259b4-VIE' },
  356. header:
  357. { date: 'Fri, 28 Apr 2017 17:50:37 GMT',
  358. 'content-type': 'application/json',
  359. 'content-length': '37',
  360. connection: 'close',
  361. 'set-cookie': [Object],
  362. 'strict-transport-security': 'max-age=31536000; includeSubDomains',
  363. via: '1.1 google',
  364. 'alt-svc': 'clear',
  365. server: 'cloudflare-nginx',
  366. 'cf-ray': '356bdd69dee259b4-VIE' },
  367. statusCode: 400,
  368. status: 400,
  369. statusType: 4,
  370. info: false,
  371. ok: false,
  372. redirect: false,
  373. clientError: true,
  374. serverError: false,
  375. error:
  376. { Error: cannot POST /api/v6/guilds/237919168895254528/channels (400)
  377. at Response.toError (C:\Users\hamac\node_modules\superagent\lib\node\response.js:94:13)
  378. at ResponseBase._setStatusProperties (C:\Users\hamac\node_modules\superagent\lib\response-base.js:122:16)
  379. at new Response (C:\Users\hamac\node_modules\superagent\lib\node\response.js:40:8)
  380. at Request._emitResponse (C:\Users\hamac\node_modules\superagent\lib\node\index.js:738:20)
  381. at C:\Users\hamac\node_modules\superagent\lib\node\index.js:883:38
  382. at IncomingMessage.<anonymous> (C:\Users\hamac\node_modules\superagent\lib\node\parsers\json.js:16:7)
  383. at emitNone (events.js:91:20)
  384. at IncomingMessage.emit (events.js:188:7)
  385. at endReadableNT (_stream_readable.js:975:12)
  386. at _combinedTickCallback (internal/process/next_tick.js:80:11)
  387. status: 400,
  388. text: '{"type": ["Value \\"-\\" is not int."]}',
  389. method: 'POST',
  390. path: '/api/v6/guilds/237919168895254528/channels' },
  391. accepted: false,
  392. noContent: false,
  393. badRequest: true,
  394. unauthorized: false,
  395. notAcceptable: false,
  396. forbidden: false,
  397. notFound: false,
  398. type: 'application/json',
  399. links: {},
  400. setEncoding: [Function: bound ],
  401. redirects: [] } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement