You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could the spec be updated to indicate how to handle this? How can one indicate that the stream is complete? A closing sentinel could be used for example, e.g. 2 empty lines?
The text was updated successfully, but these errors were encountered:
Is there a way to detect if an ndjson stream is terminated prematurely by the server?
Assume a server tries to stream the following ndjson:
but due to server error, aborts prematurely, after sending the first 2 lines.
In JSON, this is trivially detected:
was obviously aborted prematurely.
However, this is not at all clear for the equivalent ndjson:
Could the spec be updated to indicate how to handle this? How can one indicate that the stream is complete? A closing sentinel could be used for example, e.g. 2 empty lines?
The text was updated successfully, but these errors were encountered: