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 _app-c21e6269359721f3.js:33:214593
at _app-c21e6269359721f3.js:33:214423
at tt (_app-c21e6269359721f3.js:33:214150)
at async tb (_app-c21e6269359721f3.js:33:216168)
Can you provide what libraries you are using and what the API calling code looks like, that seems to be a java streaming error in the onmessage function.
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.
You can check your http connection status. The reason for this problem is that the status of the ssl certificate is sometimes unstable and the connection fails.