Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { Error: Bad Request
- at Request.callback (C:\Users\hamac\node_modules\superagent\lib\node\index.js:675:11)
- at C:\Users\hamac\node_modules\superagent\lib\node\index.js:883:18
- at IncomingMessage.<anonymous> (C:\Users\hamac\node_modules\superagent\lib\node\parsers\json.js:16:7)
- at emitNone (events.js:91:20)
- at IncomingMessage.emit (events.js:188:7)
- at endReadableNT (_stream_readable.js:975:12)
- at _combinedTickCallback (internal/process/next_tick.js:80:11)
- at process._tickCallback (internal/process/next_tick.js:104:9)
- status: 400,
- response:
- Response {
- domain: null,
- _events: {},
- _eventsCount: 0,
- _maxListeners: undefined,
- res:
- IncomingMessage {
- _readableState: [Object],
- readable: false,
- domain: null,
- _events: [Object],
- _eventsCount: 4,
- _maxListeners: undefined,
- socket: [Object],
- connection: [Object],
- httpVersionMajor: 1,
- httpVersionMinor: 1,
- httpVersion: '1.1',
- complete: true,
- headers: [Object],
- rawHeaders: [Object],
- trailers: {},
- rawTrailers: [],
- upgrade: false,
- url: '',
- method: null,
- statusCode: 400,
- statusMessage: 'BAD REQUEST',
- client: [Object],
- _consuming: true,
- _dumped: false,
- req: [Object],
- text: '{"type": ["Value \\"User created channel!\\" is not int."]}',
- read: [Function] },
- request:
- Request {
- domain: null,
- _events: {},
- _eventsCount: 0,
- _maxListeners: undefined,
- _agent: false,
- _formData: null,
- method: 'POST',
- url: 'https://discordapp.com/api/v6/guilds/237919168895254528/channels',
- _header: [Object],
- header: [Object],
- writable: true,
- _redirects: 0,
- _maxRedirects: 5,
- cookies: '',
- qs: {},
- qsRaw: [],
- _redirectList: [],
- _streamRequest: false,
- _data: [Object],
- req: [Object],
- protocol: 'https:',
- host: 'discordapp.com',
- _endCalled: true,
- _callback: [Function],
- res: [Object],
- response: [Circular],
- called: true },
- req:
- ClientRequest {
- domain: null,
- _events: [Object],
- _eventsCount: 3,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: true,
- upgrading: false,
- chunkedEncoding: false,
- shouldKeepAlive: false,
- useChunkedEncodingByDefault: true,
- sendDate: false,
- _removedHeader: [Object],
- _contentLength: 64,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- socket: [Object],
- connection: [Object],
- _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',
- _headers: [Object],
- _headerNames: [Object],
- _onPendingData: null,
- agent: [Object],
- socketPath: undefined,
- timeout: undefined,
- method: 'POST',
- path: '/api/v6/guilds/237919168895254528/channels',
- _ended: true,
- res: [Object],
- aborted: undefined,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null },
- text: '{"type": ["Value \\"User created channel!\\" is not int."]}',
- body: { type: [Object] },
- files: undefined,
- buffered: true,
- headers:
- { date: 'Fri, 28 Apr 2017 17:45:42 GMT',
- 'content-type': 'application/json',
- 'content-length': '57',
- connection: 'close',
- 'set-cookie': [Object],
- 'strict-transport-security': 'max-age=31536000; includeSubDomains',
- via: '1.1 google',
- 'alt-svc': 'clear',
- server: 'cloudflare-nginx',
- 'cf-ray': '356bd6376a325a08-VIE' },
- header:
- { date: 'Fri, 28 Apr 2017 17:45:42 GMT',
- 'content-type': 'application/json',
- 'content-length': '57',
- connection: 'close',
- 'set-cookie': [Object],
- 'strict-transport-security': 'max-age=31536000; includeSubDomains',
- via: '1.1 google',
- 'alt-svc': 'clear',
- server: 'cloudflare-nginx',
- 'cf-ray': '356bd6376a325a08-VIE' },
- statusCode: 400,
- status: 400,
- statusType: 4,
- info: false,
- ok: false,
- redirect: false,
- clientError: true,
- serverError: false,
- error:
- { Error: cannot POST /api/v6/guilds/237919168895254528/channels (400)
- at Response.toError (C:\Users\hamac\node_modules\superagent\lib\node\response.js:94:13)
- at ResponseBase._setStatusProperties (C:\Users\hamac\node_modules\superagent\lib\response-base.js:122:16)
- at new Response (C:\Users\hamac\node_modules\superagent\lib\node\response.js:40:8)
- at Request._emitResponse (C:\Users\hamac\node_modules\superagent\lib\node\index.js:738:20)
- at C:\Users\hamac\node_modules\superagent\lib\node\index.js:883:38
- at IncomingMessage.<anonymous> (C:\Users\hamac\node_modules\superagent\lib\node\parsers\json.js:16:7)
- at emitNone (events.js:91:20)
- at IncomingMessage.emit (events.js:188:7)
- at endReadableNT (_stream_readable.js:975:12)
- at _combinedTickCallback (internal/process/next_tick.js:80:11)
- status: 400,
- text: '{"type": ["Value \\"User created channel!\\" is not int."]}',
- method: 'POST',
- path: '/api/v6/guilds/237919168895254528/channels' },
- accepted: false,
- noContent: false,
- badRequest: true,
- unauthorized: false,
- notAcceptable: false,
- forbidden: false,
- notFound: false,
- type: 'application/json',
- links: {},
- setEncoding: [Function: bound ],
- redirects: [] } }
- [nodemon] restarting due to changes...
- [nodemon] starting `node dogebot.js`
- LMFAO! Doge Bot!
- (node:10668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Bad Request
- (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.
- [nodemon] restarting due to changes...
- [nodemon] starting `node dogebot.js`
- LMFAO! Doge Bot!
- (node:5116) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Bad Request
- (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.
- [nodemon] restarting due to changes...
- [nodemon] starting `node dogebot.js`
- LMFAO! Doge Bot!
- [nodemon] restarting due to changes...
- [nodemon] starting `node dogebot.js`
- LMFAO! Doge Bot!
- [nodemon] restarting due to changes...
- [nodemon] starting `node dogebot.js`
- C:\Users\hamac\Desktop\DogeBot\Start\dogebot.js:31
- .then(msg.channel.sendMessage('Created new channel');
- ^
- SyntaxError: missing ) after argument list
- at createScript (vm.js:53:10)
- at Object.runInThisContext (vm.js:95:10)
- at Module._compile (module.js:543:28)
- at Object.Module._extensions..js (module.js:580:10)
- at Module.load (module.js:488:32)
- at tryModuleLoad (module.js:447:12)
- at Function.Module._load (module.js:439:3)
- at Module.runMain (module.js:605:10)
- at run (bootstrap_node.js:423:7)
- at startup (bootstrap_node.js:147:9)
- [nodemon] app crashed - waiting for file changes before starting...
- [nodemon] restarting due to changes...
- [nodemon] starting `node dogebot.js`
- LMFAO! Doge Bot!
- (node:8408) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Bad Request
- (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.
- (node:8408) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Bad Request
- (node:8408) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: Bad Request
- (node:8408) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: Bad Request
- [nodemon] restarting due to changes...
- [nodemon] starting `node dogebot.js`
- LMFAO! Doge Bot!
- (node:6256) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Bad Request
- (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.
- [nodemon] restarting due to changes...
- [nodemon] starting `node dogebot.js`
- LMFAO! Doge Bot!
- { Error: Bad Request
- at Request.callback (C:\Users\hamac\node_modules\superagent\lib\node\index.js:675:11)
- at C:\Users\hamac\node_modules\superagent\lib\node\index.js:883:18
- at IncomingMessage.<anonymous> (C:\Users\hamac\node_modules\superagent\lib\node\parsers\json.js:16:7)
- at emitNone (events.js:91:20)
- at IncomingMessage.emit (events.js:188:7)
- at endReadableNT (_stream_readable.js:975:12)
- at _combinedTickCallback (internal/process/next_tick.js:80:11)
- at process._tickCallback (internal/process/next_tick.js:104:9)
- status: 400,
- response:
- Response {
- domain: null,
- _events: {},
- _eventsCount: 0,
- _maxListeners: undefined,
- res:
- IncomingMessage {
- _readableState: [Object],
- readable: false,
- domain: null,
- _events: [Object],
- _eventsCount: 4,
- _maxListeners: undefined,
- socket: [Object],
- connection: [Object],
- httpVersionMajor: 1,
- httpVersionMinor: 1,
- httpVersion: '1.1',
- complete: true,
- headers: [Object],
- rawHeaders: [Object],
- trailers: {},
- rawTrailers: [],
- upgrade: false,
- url: '',
- method: null,
- statusCode: 400,
- statusMessage: 'BAD REQUEST',
- client: [Object],
- _consuming: true,
- _dumped: false,
- req: [Object],
- text: '{"type": ["Value \\"-\\" is not int."]}',
- read: [Function] },
- request:
- Request {
- domain: null,
- _events: {},
- _eventsCount: 0,
- _maxListeners: undefined,
- _agent: false,
- _formData: null,
- method: 'POST',
- url: 'https://discordapp.com/api/v6/guilds/237919168895254528/channels',
- _header: [Object],
- header: [Object],
- writable: true,
- _redirects: 0,
- _maxRedirects: 5,
- cookies: '',
- qs: {},
- qsRaw: [],
- _redirectList: [],
- _streamRequest: false,
- _data: [Object],
- req: [Object],
- protocol: 'https:',
- host: 'discordapp.com',
- _endCalled: true,
- _callback: [Function],
- res: [Object],
- response: [Circular],
- called: true },
- req:
- ClientRequest {
- domain: null,
- _events: [Object],
- _eventsCount: 3,
- _maxListeners: undefined,
- output: [],
- outputEncodings: [],
- outputCallbacks: [],
- outputSize: 0,
- writable: true,
- _last: true,
- upgrading: false,
- chunkedEncoding: false,
- shouldKeepAlive: false,
- useChunkedEncodingByDefault: true,
- sendDate: false,
- _removedHeader: [Object],
- _contentLength: 27,
- _hasBody: true,
- _trailer: '',
- finished: true,
- _headerSent: true,
- socket: [Object],
- connection: [Object],
- _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',
- _headers: [Object],
- _headerNames: [Object],
- _onPendingData: null,
- agent: [Object],
- socketPath: undefined,
- timeout: undefined,
- method: 'POST',
- path: '/api/v6/guilds/237919168895254528/channels',
- _ended: true,
- res: [Object],
- aborted: undefined,
- timeoutCb: null,
- upgradeOrConnect: false,
- parser: null,
- maxHeadersCount: null },
- text: '{"type": ["Value \\"-\\" is not int."]}',
- body: { type: [Object] },
- files: undefined,
- buffered: true,
- headers:
- { date: 'Fri, 28 Apr 2017 17:50:37 GMT',
- 'content-type': 'application/json',
- 'content-length': '37',
- connection: 'close',
- 'set-cookie': [Object],
- 'strict-transport-security': 'max-age=31536000; includeSubDomains',
- via: '1.1 google',
- 'alt-svc': 'clear',
- server: 'cloudflare-nginx',
- 'cf-ray': '356bdd69dee259b4-VIE' },
- header:
- { date: 'Fri, 28 Apr 2017 17:50:37 GMT',
- 'content-type': 'application/json',
- 'content-length': '37',
- connection: 'close',
- 'set-cookie': [Object],
- 'strict-transport-security': 'max-age=31536000; includeSubDomains',
- via: '1.1 google',
- 'alt-svc': 'clear',
- server: 'cloudflare-nginx',
- 'cf-ray': '356bdd69dee259b4-VIE' },
- statusCode: 400,
- status: 400,
- statusType: 4,
- info: false,
- ok: false,
- redirect: false,
- clientError: true,
- serverError: false,
- error:
- { Error: cannot POST /api/v6/guilds/237919168895254528/channels (400)
- at Response.toError (C:\Users\hamac\node_modules\superagent\lib\node\response.js:94:13)
- at ResponseBase._setStatusProperties (C:\Users\hamac\node_modules\superagent\lib\response-base.js:122:16)
- at new Response (C:\Users\hamac\node_modules\superagent\lib\node\response.js:40:8)
- at Request._emitResponse (C:\Users\hamac\node_modules\superagent\lib\node\index.js:738:20)
- at C:\Users\hamac\node_modules\superagent\lib\node\index.js:883:38
- at IncomingMessage.<anonymous> (C:\Users\hamac\node_modules\superagent\lib\node\parsers\json.js:16:7)
- at emitNone (events.js:91:20)
- at IncomingMessage.emit (events.js:188:7)
- at endReadableNT (_stream_readable.js:975:12)
- at _combinedTickCallback (internal/process/next_tick.js:80:11)
- status: 400,
- text: '{"type": ["Value \\"-\\" is not int."]}',
- method: 'POST',
- path: '/api/v6/guilds/237919168895254528/channels' },
- accepted: false,
- noContent: false,
- badRequest: true,
- unauthorized: false,
- notAcceptable: false,
- forbidden: false,
- notFound: false,
- type: 'application/json',
- links: {},
- setEncoding: [Function: bound ],
- redirects: [] } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement