When the "Conversation not found" error occurs, only the 404 status code is sent to the client. In this case, the user must call DELETE to create a new chat.
Exception <HTTPError 500: 'Internal Server Error'> response_body='{"message":"Something went wrong","error":"Error: ChatGPTAPI err
or 404"}'
The error message should be exposed to the client, allowing the user to better understand why the error occurred and what action they need to take.
Docker
ChatGPTError: ChatGPTAPI error 404
at ChatGPTAPIBrowser.sendMessage (file:///app/node_modules/chatgpt/build/index.js:1604:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async sendMesasge (/app/dist/index.js:68:20)
at async /app/dist/index.js:110:26 {
statusCode: 404,
statusText: ''
}
ChatGPT "xxxxxxxxx@xxxxx.com" error 404; Conversation not found
Sorry, I cannot locate the code that processes the 'Conversation not found' error. Could you please fix it for me?