Guest User

Untitled

a guest
Feb 20th, 2023
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.56 KB | None | 0 0
  1. PS D:\Arbeitszimmer\Projekte\DiscordBot\Mind-Imager\main> npm start
  2.  
  3. > node index.js
  4.  
  5. Logged in as Arty#7655!
  6. Arty is connected to http://127.0.0.1:9090/images/generate
  7. Error: Request failed with status code 405
  8. at createError (D:\Arbeitszimmer\Projekte\DiscordBot\Mind-Imager\main\node_modules\axios\lib\core\createError.js:16:15)
  9. at settle (D:\Arbeitszimmer\Projekte\DiscordBot\Mind-Imager\main\node_modules\axios\lib\core\settle.js:17:12)
  10. at IncomingMessage.handleStreamEnd (D:\Arbeitszimmer\Projekte\DiscordBot\Mind-Imager\main\node_modules\axios\lib\adapters\http.js:293:11)
  11. at IncomingMessage.emit (node:events:525:35)
  12. at endReadableNT (node:internal/streams/readable:1359:12)
  13. at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  14. config: {
  15. transitional: {
  16. silentJSONParsing: true,
  17. forcedJSONParsing: true,
  18. clarifyTimeoutError: false
  19. },
  20. adapter: [Function: httpAdapter],
  21. transformRequest: [ [Function: transformRequest] ],
  22. transformResponse: [ [Function: transformResponse] ],
  23. timeout: 0,
  24. xsrfCookieName: 'XSRF-TOKEN',
  25. xsrfHeaderName: 'X-XSRF-TOKEN',
  26. maxContentLength: -1,
  27. maxBodyLength: -1,
  28. validateStatus: [Function: validateStatus],
  29. headers: {
  30. Accept: 'application/json, text/plain, */*',
  31. 'Content-Type': 'application/json',
  32. 'User-Agent': 'axios/0.24.0',
  33. 'Content-Length': 33
  34. },
  35. method: 'post',
  36. url: 'http://127.0.0.1:9090/images/generate',
  37. data: '{"text":"a house","format":"png"}'
  38. },
  39. request: <ref *1> ClientRequest {
  40. _events: [Object: null prototype] {
  41. abort: [Function (anonymous)],
  42. aborted: [Function (anonymous)],
  43. connect: [Function (anonymous)],
  44. error: [Function (anonymous)],
  45. socket: [Function (anonymous)],
  46. timeout: [Function (anonymous)],
  47. finish: [Function: requestOnFinish]
  48. },
  49. _eventsCount: 7,
  50. _maxListeners: undefined,
  51. outputData: [],
  52. outputSize: 0,
  53. writable: true,
  54. destroyed: false,
  55. _last: true,
  56. chunkedEncoding: false,
  57. shouldKeepAlive: false,
  58. maxRequestsOnConnectionReached: false,
  59. _defaultKeepAlive: true,
  60. useChunkedEncodingByDefault: true,
  61. sendDate: false,
  62. _removedConnection: false,
  63. _removedContLen: false,
  64. _removedTE: false,
  65. strictContentLength: false,
  66. _contentLength: 33,
  67. _hasBody: true,
  68. _trailer: '',
  69. finished: true,
  70. _headerSent: true,
  71. _closed: false,
  72. socket: Socket {
  73. connecting: false,
  74. _hadError: false,
  75. _parent: null,
  76. _host: null,
  77. _closeAfterHandlingError: false,
  78. _readableState: [ReadableState],
  79. _events: [Object: null prototype],
  80. _eventsCount: 7,
  81. _maxListeners: undefined,
  82. _writableState: [WritableState],
  83. allowHalfOpen: false,
  84. _sockname: null,
  85. _pendingData: null,
  86. _pendingEncoding: '',
  87. server: null,
  88. _server: null,
  89. parser: null,
  90. _httpMessage: [Circular *1],
  91. [Symbol(async_id_symbol)]: 90,
  92. [Symbol(kHandle)]: [TCP],
  93. [Symbol(lastWriteQueueSize)]: 0,
  94. [Symbol(timeout)]: null,
  95. [Symbol(kBuffer)]: null,
  96. [Symbol(kBufferCb)]: null,
  97. [Symbol(kBufferGen)]: null,
  98. [Symbol(kCapture)]: false,
  99. [Symbol(kSetNoDelay)]: true,
  100. [Symbol(kSetKeepAlive)]: false,
  101. [Symbol(kSetKeepAliveInitialDelay)]: 0,
  102. [Symbol(kBytesRead)]: 0,
  103. [Symbol(kBytesWritten)]: 0
  104. },
  105. _header: 'POST /images/generate HTTP/1.1\r\n' +
  106. 'Accept: application/json, text/plain, */*\r\n' +
  107. 'Content-Type: application/json\r\n' +
  108. 'User-Agent: axios/0.24.0\r\n' +
  109. 'Content-Length: 33\r\n' +
  110. 'Host: 127.0.0.1:9090\r\n' +
  111. 'Connection: close\r\n' +
  112. '\r\n',
  113. _keepAliveTimeout: 0,
  114. _onPendingData: [Function: nop],
  115. agent: Agent {
  116. _events: [Object: null prototype],
  117. _eventsCount: 2,
  118. _maxListeners: undefined,
  119. defaultPort: 80,
  120. protocol: 'http:',
  121. options: [Object: null prototype],
  122. requests: [Object: null prototype] {},
  123. sockets: [Object: null prototype],
  124. freeSockets: [Object: null prototype] {},
  125. keepAliveMsecs: 1000,
  126. keepAlive: false,
  127. maxSockets: Infinity,
  128. maxFreeSockets: 256,
  129. scheduling: 'lifo',
  130. maxTotalSockets: Infinity,
  131. totalSocketCount: 1,
  132. [Symbol(kCapture)]: false
  133. },
  134. socketPath: undefined,
  135. method: 'POST',
  136. maxHeaderSize: undefined,
  137. insecureHTTPParser: undefined,
  138. path: '/images/generate',
  139. _ended: true,
  140. res: IncomingMessage {
  141. _readableState: [ReadableState],
  142. _events: [Object: null prototype],
  143. _eventsCount: 3,
  144. _maxListeners: undefined,
  145. socket: [Socket],
  146. httpVersionMajor: 1,
  147. httpVersionMinor: 1,
  148. httpVersion: '1.1',
  149. complete: true,
  150. rawHeaders: [Array],
  151. rawTrailers: [],
  152. aborted: false,
  153. upgrade: false,
  154. url: '',
  155. method: null,
  156. statusCode: 405,
  157. statusMessage: 'METHOD NOT ALLOWED',
  158. client: [Socket],
  159. _consuming: false,
  160. _dumped: false,
  161. req: [Circular *1],
  162. responseUrl: 'http://127.0.0.1:9090/images/generate',
  163. redirects: [],
  164. [Symbol(kCapture)]: false,
  165. [Symbol(kHeaders)]: [Object],
  166. [Symbol(kHeadersCount)]: 10,
  167. [Symbol(kTrailers)]: null,
  168. [Symbol(kTrailersCount)]: 0
  169. },
  170. aborted: false,
  171. timeoutCb: null,
  172. upgradeOrConnect: false,
  173. parser: null,
  174. maxHeadersCount: null,
  175. reusedSocket: false,
  176. host: '127.0.0.1',
  177. protocol: 'http:',
  178. _redirectable: Writable {
  179. _writableState: [WritableState],
  180. _events: [Object: null prototype],
  181. _eventsCount: 2,
  182. _maxListeners: undefined,
  183. _options: [Object],
  184. _ended: true,
  185. _ending: true,
  186. _redirectCount: 0,
  187. _redirects: [],
  188. _requestBodyLength: 33,
  189. _requestBodyBuffers: [],
  190. _onNativeResponse: [Function (anonymous)],
  191. _currentRequest: [Circular *1],
  192. _currentUrl: 'http://127.0.0.1:9090/images/generate',
  193. [Symbol(kCapture)]: false
  194. },
  195. [Symbol(kCapture)]: false,
  196. [Symbol(kBytesWritten)]: 0,
  197. [Symbol(kEndCalled)]: true,
  198. [Symbol(kNeedDrain)]: false,
  199. [Symbol(corked)]: 0,
  200. [Symbol(kOutHeaders)]: [Object: null prototype] {
  201. accept: [Array],
  202. 'content-type': [Array],
  203. 'user-agent': [Array],
  204. 'content-length': [Array],
  205. host: [Array]
  206. },
  207. [Symbol(errored)]: null,
  208. [Symbol(kUniqueHeaders)]: null
  209. },
  210. response: {
  211. status: 405,
  212. statusText: 'METHOD NOT ALLOWED',
  213. headers: {
  214. 'content-type': 'text/html; charset=utf-8',
  215. allow: 'OPTIONS, HEAD, GET',
  216. 'content-length': '153',
  217. date: 'Mon, 20 Feb 2023 18:23:54 GMT',
  218. connection: 'close'
  219. },
  220. config: {
  221. transitional: [Object],
  222. adapter: [Function: httpAdapter],
  223. transformRequest: [Array],
  224. transformResponse: [Array],
  225. timeout: 0,
  226. xsrfCookieName: 'XSRF-TOKEN',
  227. xsrfHeaderName: 'X-XSRF-TOKEN',
  228. maxContentLength: -1,
  229. maxBodyLength: -1,
  230. validateStatus: [Function: validateStatus],
  231. headers: [Object],
  232. method: 'post',
  233. url: 'http://127.0.0.1:9090/images/generate',
  234. data: '{"text":"a house","format":"png"}'
  235. },
  236. request: <ref *1> ClientRequest {
  237. _events: [Object: null prototype],
  238. _eventsCount: 7,
  239. _maxListeners: undefined,
  240. outputData: [],
  241. outputSize: 0,
  242. writable: true,
  243. destroyed: false,
  244. _last: true,
  245. chunkedEncoding: false,
  246. shouldKeepAlive: false,
  247. maxRequestsOnConnectionReached: false,
  248. _defaultKeepAlive: true,
  249. useChunkedEncodingByDefault: true,
  250. sendDate: false,
  251. _removedConnection: false,
  252. _removedContLen: false,
  253. _removedTE: false,
  254. strictContentLength: false,
  255. _contentLength: 33,
  256. _hasBody: true,
  257. _trailer: '',
  258. finished: true,
  259. _headerSent: true,
  260. _closed: false,
  261. socket: [Socket],
  262. _header: 'POST /images/generate HTTP/1.1\r\n' +
  263. 'Accept: application/json, text/plain, */*\r\n' +
  264. 'Content-Type: application/json\r\n' +
  265. 'User-Agent: axios/0.24.0\r\n' +
  266. 'Content-Length: 33\r\n' +
  267. 'Host: 127.0.0.1:9090\r\n' +
  268. 'Connection: close\r\n' +
  269. '\r\n',
  270. _keepAliveTimeout: 0,
  271. _onPendingData: [Function: nop],
  272. agent: [Agent],
  273. socketPath: undefined,
  274. method: 'POST',
  275. maxHeaderSize: undefined,
  276. insecureHTTPParser: undefined,
  277. path: '/images/generate',
  278. _ended: true,
  279. res: [IncomingMessage],
  280. aborted: false,
  281. timeoutCb: null,
  282. upgradeOrConnect: false,
  283. parser: null,
  284. maxHeadersCount: null,
  285. reusedSocket: false,
  286. host: '127.0.0.1',
  287. protocol: 'http:',
  288. _redirectable: [Writable],
  289. [Symbol(kCapture)]: false,
  290. [Symbol(kBytesWritten)]: 0,
  291. [Symbol(kEndCalled)]: true,
  292. [Symbol(kNeedDrain)]: false,
  293. [Symbol(corked)]: 0,
  294. [Symbol(kOutHeaders)]: [Object: null prototype],
  295. [Symbol(errored)]: null,
  296. [Symbol(kUniqueHeaders)]: null
  297. },
  298. data: '<!doctype html>\n' +
  299. '<html lang=en>\n' +
  300. '<title>405 Method Not Allowed</title>\n' +
  301. '<h1>Method Not Allowed</h1>\n' +
  302. '<p>The method is not allowed for the requested URL.</p>\n'
  303. },
  304. isAxiosError: true,
  305. toJSON: [Function: toJSON]
  306. }
  307.  
Advertisement
Add Comment
Please, Sign In to add comment