chatgpt-demo icon indicating copy to clipboard operation
chatgpt-demo copied to clipboard

POST 500 (Internal Server Error)

Open zhao0824 opened this issue 2 years ago • 3 comments

Describe the bug

本地 Generator.tsx? [sm]:53 POST http://localhost:3000/api/generate 500 (Internal Server Error)

Reproduction

POST http://localhost:3000/api/generate 500 (Internal Server Error)

System Info

Generator.tsx? [sm]:53          POST http://localhost:3000/api/generate 500 (Internal Server Error)
requestWithLatestMessage @ Generator.tsx? [sm]:53
await in requestWithLatestMessage (async)
handleButtonClick @ Generator.tsx? [sm]:30
eventHandler @ dev.js:369
Generator.tsx? [sm]:90 Error: Internal Server Error
    at requestWithLatestMessage (Generator.tsx? [sm]:66:15)

Used Package Manager

npm

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [X] The provided reproduction is a minimal reproducible of the bug.

zhao0824 avatar Mar 07 '23 05:03 zhao0824

#157

zhao0824 avatar Mar 07 '23 05:03 zhao0824

According to the feedback from the community, it seems to have encountered some api exceptions today, and I wonder if this is the reason. Try to request the OpenAI API directly through the HTTP tool?

ddiu8081 avatar Mar 08 '23 03:03 ddiu8081

Seems to need to open a proxy. https://github.com/ddiu8081/chatgpt-demo/issues/34

yzh990918 avatar Mar 11 '23 04:03 yzh990918

We've just added a more detailed error message output. You should now be able to see the cause of the error in the UI.

ddiu8081 avatar Mar 16 '23 18:03 ddiu8081