Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Need to expose the error message to the client #17

@myfingerhurt

Description

@myfingerhurt

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 "[email protected]" 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions