Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\Users\Andrew\Documents\Coding\accu-bot>node --harmony .
- Request {
- domain: null,
- _events: { pipe: [Function] },
- _eventsCount: 1,
- _maxListeners: undefined,
- uri:
- Url {
- protocol: 'http:',
- slashes: true,
- auth: null,
- host: 'accumap-project.com',
- port: 80,
- hostname: 'accumap-project.com',
- hash: null,
- search: '?f=',
- query: 'f=',
- pathname: '/res/airports.json',
- path: '/res/airports.json?f=',
- href: 'http://accumap-project.com/res/airports.json?f=' },
- readable: true,
- writable: true,
- _qs:
- Querystring {
- request: [Circular],
- lib: { formats: [Object], parse: [Function], stringify: [Function] },
- useQuerystring: undefined,
- parseOptions: {},
- stringifyOptions: {} },
- _auth:
- Auth {
- request: [Circular],
- hasAuth: false,
- sentAuth: false,
- bearerToken: null,
- user: null,
- pass: null },
- _oauth: OAuth { request: [Circular], params: null },
- _multipart:
- Multipart {
- request: [Circular],
- boundary: 'd04cda1a-31dc-4163-a9d9-32dc1ec15274',
- chunked: false,
- body: null },
- _redirect:
- Redirect {
- request: [Circular],
- followRedirect: true,
- followRedirects: true,
- followAllRedirects: false,
- followOriginalHttpMethod: false,
- allowRedirect: [Function],
- maxRedirects: 10,
- redirects: [],
- redirectsFollowed: 0,
- removeRefererHeader: false },
- _tunnel:
- Tunnel {
- request: [Circular],
- proxyHeaderWhiteList:
- [ 'accept',
- 'accept-charset',
- 'accept-encoding',
- 'accept-language',
- 'accept-ranges',
- 'cache-control',
- 'content-encoding',
- 'content-language',
- 'content-location',
- 'content-md5',
- 'content-range',
- 'content-type',
- 'connection',
- 'date',
- 'expect',
- 'max-forwards',
- 'pragma',
- 'referer',
- 'te',
- 'user-agent',
- 'via' ],
- proxyHeaderExclusiveList: [] },
- headers: { host: 'accumap-project.com' },
- setHeader: [Function],
- hasHeader: [Function],
- getHeader: [Function],
- removeHeader: [Function],
- method: 'GET',
- localAddress: undefined,
- pool: {},
- dests: [],
- __isRequestRequest: true,
- proxy: null,
- tunnel: false,
- setHost: true,
- originalCookieHeader: undefined,
- _disableCookies: true,
- _jar: undefined,
- port: 80,
- host: 'accumap-project.com',
- path: '/res/airports.json?f=',
- httpModule:
- { _connectionListener: [Function: connectionListener],
- METHODS:
- [ 'ACL',
- 'BIND',
- 'CHECKOUT',
- 'CONNECT',
- 'COPY',
- 'DELETE',
- 'GET',
- 'HEAD',
- 'LINK',
- 'LOCK',
- 'M-SEARCH',
- 'MERGE',
- 'MKACTIVITY',
- 'MKCALENDAR',
- 'MKCOL',
- 'MOVE',
- 'NOTIFY',
- 'OPTIONS',
- 'PATCH',
- 'POST',
- 'PROPFIND',
- 'PROPPATCH',
- 'PURGE',
- 'PUT',
- 'REBIND',
- 'REPORT',
- 'SEARCH',
- 'SUBSCRIBE',
- 'TRACE',
- 'UNBIND',
- 'UNLINK',
- 'UNLOCK',
- 'UNSUBSCRIBE' ],
- STATUS_CODES:
- { '100': 'Continue',
- '101': 'Switching Protocols',
- '102': 'Processing',
- '103': 'Early Hints',
- '200': 'OK',
- '201': 'Created',
- '202': 'Accepted',
- '203': 'Non-Authoritative Information',
- '204': 'No Content',
- '205': 'Reset Content',
- '206': 'Partial Content',
- '207': 'Multi-Status',
- '208': 'Already Reported',
- '226': 'IM Used',
- '300': 'Multiple Choices',
- '301': 'Moved Permanently',
- '302': 'Found',
- '303': 'See Other',
- '304': 'Not Modified',
- '305': 'Use Proxy',
- '307': 'Temporary Redirect',
- '308': 'Permanent Redirect',
- '400': 'Bad Request',
- '401': 'Unauthorized',
- '402': 'Payment Required',
- '403': 'Forbidden',
- '404': 'Not Found',
- '405': 'Method Not Allowed',
- '406': 'Not Acceptable',
- '407': 'Proxy Authentication Required',
- '408': 'Request Timeout',
- '409': 'Conflict',
- '410': 'Gone',
- '411': 'Length Required',
- '412': 'Precondition Failed',
- '413': 'Payload Too Large',
- '414': 'URI Too Long',
- '415': 'Unsupported Media Type',
- '416': 'Range Not Satisfiable',
- '417': 'Expectation Failed',
- '418': 'I\'m a teapot',
- '421': 'Misdirected Request',
- '422': 'Unprocessable Entity',
- '423': 'Locked',
- '424': 'Failed Dependency',
- '425': 'Unordered Collection',
- '426': 'Upgrade Required',
- '428': 'Precondition Required',
- '429': 'Too Many Requests',
- '431': 'Request Header Fields Too Large',
- '451': 'Unavailable For Legal Reasons',
- '500': 'Internal Server Error',
- '501': 'Not Implemented',
- '502': 'Bad Gateway',
- '503': 'Service Unavailable',
- '504': 'Gateway Timeout',
- '505': 'HTTP Version Not Supported',
- '506': 'Variant Also Negotiates',
- '507': 'Insufficient Storage',
- '508': 'Loop Detected',
- '509': 'Bandwidth Limit Exceeded',
- '510': 'Not Extended',
- '511': 'Network Authentication Required' },
- Agent: { [Function: Agent] super_: [Function], defaultMaxSockets: Infinity },
- ClientRequest: { [Function: ClientRequest] super_: [Function] },
- globalAgent:
- Agent {
- domain: null,
- _events: [Object],
- _eventsCount: 1,
- _maxListeners: undefined,
- defaultPort: 80,
- protocol: 'http:',
- options: [Object],
- requests: {},
- sockets: {},
- freeSockets: {},
- keepAliveMsecs: 1000,
- keepAlive: false,
- maxSockets: Infinity,
- maxFreeSockets: 256 },
- IncomingMessage: { [Function: IncomingMessage] super_: [Function] },
- OutgoingMessage: { [Function: OutgoingMessage] super_: [Function] },
- Server: { [Function: Server] super_: [Function] },
- ServerResponse: { [Function: ServerResponse] super_: [Function] },
- createServer: [Function: createServer],
- get: [Function: get],
- request: [Function: request] },
- agentClass:
- { [Function: Agent]
- super_:
- { [Function: EventEmitter]
- EventEmitter: [Circular],
- usingDomains: false,
- defaultMaxListeners: [Getter/Setter],
- init: [Function],
- listenerCount: [Function] },
- defaultMaxSockets: Infinity },
- agent:
- Agent {
- domain: null,
- _events: { free: [Function] },
- _eventsCount: 1,
- _maxListeners: undefined,
- defaultPort: 80,
- protocol: 'http:',
- options: { path: null },
- requests: {},
- sockets: {},
- freeSockets: {},
- keepAliveMsecs: 1000,
- keepAlive: false,
- maxSockets: Infinity,
- maxFreeSockets: 256 } }
- SyntaxError: Unexpected token o in JSON at position 1
- at JSON.parse (<anonymous>)
- at airportCommand.run (C:\Users\Andrew\Documents\Coding\accu-bot\commands\accumap\airport.js:27:25)
- at CommandMessage.run (C:\Users\Andrew\Documents\Coding\accu-bot\node_modules\discord.js-commando\src\commands\message.js:195:33)
- at <anonymous>
- at process._tickCallback (internal/process/next_tick.js:160:7)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement