gmpetrov / openai-chatgpt

🤖 Use ChatGPT from the terminal
129 stars 11 forks source link

FetchError: request failed, getaddrinfo ENOTFOUND #7

Open mspronesti opened 1 year ago

mspronesti commented 1 year ago

Hello, I'm using the unofficial free API using the access token I got from chatGPT: https://chat.openai.com/api/auth/session However I get this ENOTFOUND error.

node version: v16.13.2

[ERROR] FetchError: request to https://chat.duti.tech/api/conversation failed, reason: getaddrinfo ENOTFOUND chat.duti.tech
    at ClientRequest.<anonymous> (file:///usr/lib/node_modules/openai-chatgpt/node_modules/node-fetch/src/index.js:108:11)
    at ClientRequest.emit (node:events:402:35)
    at TLSSocket.socketErrorListener (node:_http_client:447:9)
    at TLSSocket.emit (node:events:390:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  type: 'system',
  errno: 'ENOTFOUND',
  code: 'ENOTFOUND',
  erroredSysCall: 'getaddrinfo'
}