I’m having a problem developing my plugin. Every time the request is sent back, the GPT window always displays an error. The following is the specific error message
There was an error generating a response
_app-c21e6269359721f3.js:28 FatalServerError: Error in message stream
at onmessage (_app-c21e6269359721f3.js:33:230546)
at tt (_app-c21e6269359721f3.js:33:214150)
at async tb (_app-c21e6269359721f3.js:33:216168)
This is a plug-in developed by myself. I hosted it on a server, but it seems that the plug-in is not very stable. Sometimes the GPT chat interface will have an error and will not send a request to my server.
Are you using WebSocket, socket.io or similar technology?
Apparently, somehow you are not receiving the entire message in its format.
You could try breakpoints in your code to determine the point where reception fails.