nociza / Bimg

A reverse-engineered Bing Image Creator API as an NPM package
The Unlicense
79 stars 11 forks source link

Axios Error #14

Open Legends-of-NGDB opened 6 months ago

Legends-of-NGDB commented 6 months ago
https://www.bing.com/images/create?q=a%20chicken&rt=3&FORM=GENCRE
Redirected to https://www.bing.com/images/create?q=a%20chicken&rt=3&FORM=GENCRE&id=1-65ea17005537411d88e7a7f27c0734c6
Waiting for results...

seaches...

AxiosError: read ECONNRESET
    at AxiosError.from (file:///home/container/node_modules/axios/lib/core/AxiosError.js:89:14)
    at RedirectableRequest.handleRequestError (file:///home/container/node_modules/axios/lib/adapters/http.js:610:25)
    at RedirectableRequest.emit (node:events:517:28)
    at eventHandlers.<computed> (/home/container/node_modules/follow-redirects/index.js:38:24)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (file:///home/container/node_modules/axios/lib/core/Axios.js:45:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async getImages (file:///home/container/node_modules/bimg/dist/imgen.js:65:26)
    at async generateImagesLinks (file:///home/container/node_modules/bimg/dist/imgen.js:147:24)
    at async Object.run (/home/container/commands/ai/dalle.js:73:21) {
  syscall: 'read',
  code: 'ECONNRESET',
  errno: -104,
  config: {
    transitional: {
      silentJSONParsing: true,
      forcedJSONParsing: true,
      clarifyTimeoutError: false
    },
    adapter: [ 'xhr', 'http' ],
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 0,
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    env: { FormData: [Function], Blob: [class Blob] },
    validateStatus: [Function: validateStatus],
    headers: Object [AxiosHeaders] {