chatgpt-demo
chatgpt-demo copied to clipboard
POST 500 (Internal Server Error)
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.
#157
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?
Seems to need to open a proxy. https://github.com/ddiu8081/chatgpt-demo/issues/34
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.