Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.44 KB | None | 0 0
  1.  
  2. C:\Users\Andrew\Documents\Coding\accu-bot>node --harmony .
  3. Request {
  4. domain: null,
  5. _events: { pipe: [Function] },
  6. _eventsCount: 1,
  7. _maxListeners: undefined,
  8. uri:
  9. Url {
  10. protocol: 'http:',
  11. slashes: true,
  12. auth: null,
  13. host: 'accumap-project.com',
  14. port: 80,
  15. hostname: 'accumap-project.com',
  16. hash: null,
  17. search: '?f=',
  18. query: 'f=',
  19. pathname: '/res/airports.json',
  20. path: '/res/airports.json?f=',
  21. href: 'http://accumap-project.com/res/airports.json?f=' },
  22. readable: true,
  23. writable: true,
  24. _qs:
  25. Querystring {
  26. request: [Circular],
  27. lib: { formats: [Object], parse: [Function], stringify: [Function] },
  28. useQuerystring: undefined,
  29. parseOptions: {},
  30. stringifyOptions: {} },
  31. _auth:
  32. Auth {
  33. request: [Circular],
  34. hasAuth: false,
  35. sentAuth: false,
  36. bearerToken: null,
  37. user: null,
  38. pass: null },
  39. _oauth: OAuth { request: [Circular], params: null },
  40. _multipart:
  41. Multipart {
  42. request: [Circular],
  43. boundary: 'd04cda1a-31dc-4163-a9d9-32dc1ec15274',
  44. chunked: false,
  45. body: null },
  46. _redirect:
  47. Redirect {
  48. request: [Circular],
  49. followRedirect: true,
  50. followRedirects: true,
  51. followAllRedirects: false,
  52. followOriginalHttpMethod: false,
  53. allowRedirect: [Function],
  54. maxRedirects: 10,
  55. redirects: [],
  56. redirectsFollowed: 0,
  57. removeRefererHeader: false },
  58. _tunnel:
  59. Tunnel {
  60. request: [Circular],
  61. proxyHeaderWhiteList:
  62. [ 'accept',
  63. 'accept-charset',
  64. 'accept-encoding',
  65. 'accept-language',
  66. 'accept-ranges',
  67. 'cache-control',
  68. 'content-encoding',
  69. 'content-language',
  70. 'content-location',
  71. 'content-md5',
  72. 'content-range',
  73. 'content-type',
  74. 'connection',
  75. 'date',
  76. 'expect',
  77. 'max-forwards',
  78. 'pragma',
  79. 'referer',
  80. 'te',
  81. 'user-agent',
  82. 'via' ],
  83. proxyHeaderExclusiveList: [] },
  84. headers: { host: 'accumap-project.com' },
  85. setHeader: [Function],
  86. hasHeader: [Function],
  87. getHeader: [Function],
  88. removeHeader: [Function],
  89. method: 'GET',
  90. localAddress: undefined,
  91. pool: {},
  92. dests: [],
  93. __isRequestRequest: true,
  94. proxy: null,
  95. tunnel: false,
  96. setHost: true,
  97. originalCookieHeader: undefined,
  98. _disableCookies: true,
  99. _jar: undefined,
  100. port: 80,
  101. host: 'accumap-project.com',
  102. path: '/res/airports.json?f=',
  103. httpModule:
  104. { _connectionListener: [Function: connectionListener],
  105. METHODS:
  106. [ 'ACL',
  107. 'BIND',
  108. 'CHECKOUT',
  109. 'CONNECT',
  110. 'COPY',
  111. 'DELETE',
  112. 'GET',
  113. 'HEAD',
  114. 'LINK',
  115. 'LOCK',
  116. 'M-SEARCH',
  117. 'MERGE',
  118. 'MKACTIVITY',
  119. 'MKCALENDAR',
  120. 'MKCOL',
  121. 'MOVE',
  122. 'NOTIFY',
  123. 'OPTIONS',
  124. 'PATCH',
  125. 'POST',
  126. 'PROPFIND',
  127. 'PROPPATCH',
  128. 'PURGE',
  129. 'PUT',
  130. 'REBIND',
  131. 'REPORT',
  132. 'SEARCH',
  133. 'SUBSCRIBE',
  134. 'TRACE',
  135. 'UNBIND',
  136. 'UNLINK',
  137. 'UNLOCK',
  138. 'UNSUBSCRIBE' ],
  139. STATUS_CODES:
  140. { '100': 'Continue',
  141. '101': 'Switching Protocols',
  142. '102': 'Processing',
  143. '103': 'Early Hints',
  144. '200': 'OK',
  145. '201': 'Created',
  146. '202': 'Accepted',
  147. '203': 'Non-Authoritative Information',
  148. '204': 'No Content',
  149. '205': 'Reset Content',
  150. '206': 'Partial Content',
  151. '207': 'Multi-Status',
  152. '208': 'Already Reported',
  153. '226': 'IM Used',
  154. '300': 'Multiple Choices',
  155. '301': 'Moved Permanently',
  156. '302': 'Found',
  157. '303': 'See Other',
  158. '304': 'Not Modified',
  159. '305': 'Use Proxy',
  160. '307': 'Temporary Redirect',
  161. '308': 'Permanent Redirect',
  162. '400': 'Bad Request',
  163. '401': 'Unauthorized',
  164. '402': 'Payment Required',
  165. '403': 'Forbidden',
  166. '404': 'Not Found',
  167. '405': 'Method Not Allowed',
  168. '406': 'Not Acceptable',
  169. '407': 'Proxy Authentication Required',
  170. '408': 'Request Timeout',
  171. '409': 'Conflict',
  172. '410': 'Gone',
  173. '411': 'Length Required',
  174. '412': 'Precondition Failed',
  175. '413': 'Payload Too Large',
  176. '414': 'URI Too Long',
  177. '415': 'Unsupported Media Type',
  178. '416': 'Range Not Satisfiable',
  179. '417': 'Expectation Failed',
  180. '418': 'I\'m a teapot',
  181. '421': 'Misdirected Request',
  182. '422': 'Unprocessable Entity',
  183. '423': 'Locked',
  184. '424': 'Failed Dependency',
  185. '425': 'Unordered Collection',
  186. '426': 'Upgrade Required',
  187. '428': 'Precondition Required',
  188. '429': 'Too Many Requests',
  189. '431': 'Request Header Fields Too Large',
  190. '451': 'Unavailable For Legal Reasons',
  191. '500': 'Internal Server Error',
  192. '501': 'Not Implemented',
  193. '502': 'Bad Gateway',
  194. '503': 'Service Unavailable',
  195. '504': 'Gateway Timeout',
  196. '505': 'HTTP Version Not Supported',
  197. '506': 'Variant Also Negotiates',
  198. '507': 'Insufficient Storage',
  199. '508': 'Loop Detected',
  200. '509': 'Bandwidth Limit Exceeded',
  201. '510': 'Not Extended',
  202. '511': 'Network Authentication Required' },
  203. Agent: { [Function: Agent] super_: [Function], defaultMaxSockets: Infinity },
  204. ClientRequest: { [Function: ClientRequest] super_: [Function] },
  205. globalAgent:
  206. Agent {
  207. domain: null,
  208. _events: [Object],
  209. _eventsCount: 1,
  210. _maxListeners: undefined,
  211. defaultPort: 80,
  212. protocol: 'http:',
  213. options: [Object],
  214. requests: {},
  215. sockets: {},
  216. freeSockets: {},
  217. keepAliveMsecs: 1000,
  218. keepAlive: false,
  219. maxSockets: Infinity,
  220. maxFreeSockets: 256 },
  221. IncomingMessage: { [Function: IncomingMessage] super_: [Function] },
  222. OutgoingMessage: { [Function: OutgoingMessage] super_: [Function] },
  223. Server: { [Function: Server] super_: [Function] },
  224. ServerResponse: { [Function: ServerResponse] super_: [Function] },
  225. createServer: [Function: createServer],
  226. get: [Function: get],
  227. request: [Function: request] },
  228. agentClass:
  229. { [Function: Agent]
  230. super_:
  231. { [Function: EventEmitter]
  232. EventEmitter: [Circular],
  233. usingDomains: false,
  234. defaultMaxListeners: [Getter/Setter],
  235. init: [Function],
  236. listenerCount: [Function] },
  237. defaultMaxSockets: Infinity },
  238. agent:
  239. Agent {
  240. domain: null,
  241. _events: { free: [Function] },
  242. _eventsCount: 1,
  243. _maxListeners: undefined,
  244. defaultPort: 80,
  245. protocol: 'http:',
  246. options: { path: null },
  247. requests: {},
  248. sockets: {},
  249. freeSockets: {},
  250. keepAliveMsecs: 1000,
  251. keepAlive: false,
  252. maxSockets: Infinity,
  253. maxFreeSockets: 256 } }
  254. SyntaxError: Unexpected token o in JSON at position 1
  255. at JSON.parse (<anonymous>)
  256. at airportCommand.run (C:\Users\Andrew\Documents\Coding\accu-bot\commands\accumap\airport.js:27:25)
  257. at CommandMessage.run (C:\Users\Andrew\Documents\Coding\accu-bot\node_modules\discord.js-commando\src\commands\message.js:195:33)
  258. at <anonymous>
  259. at process._tickCallback (internal/process/next_tick.js:160:7)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement