Today, up to now, there have been a large number of error reports in api requests, and the error rate continues to increase. I have checked the availability and credit limit of the api key, and have not found any problems. However, there is still a chance of the following errors occurring :
Are you using a module from OpenAI, or your own code?
Can you log all chunks, all data, raw, as you receive them, direct from the API?
This forum post below demonstrates that the server-sent-event streaming subscription can be split across http chunks (chunking being the transfer encoding method on top of IP packets), or can split across smaller increments. You’ll need to reassemble contents, with a buffer, looking for the \ndata: that initiates a new transmitted OpenAI object, if you aren’t using a higher level http/2 library do that.