Repository navigation
OnlyWorlds Unity SDK 0.61.1
An answer whose connection drops while its body comes in says so in the transport's words: the answer was lost
while it was read, with its status. It was already a transport failure, now held by tests against a real socket.
Fixed
- An answer cut off while its body is read says so.
UnityWebRequestTransportalready answered such an answer
(a body short of itsContent-Length, a chunked body with no last chunk) as anOWTransportError, the TypeScript
SDK 4.223.1'sOwNetworkError, but in UnityWebRequest's own words,Unknown Error. When a status had been read
before the connection was lost, the transport's failure (theInnerExceptionof the client'sOWTransportError)
now readsGET <url> failed: the answer was lost while it was read (status 200, Unknown Error); a request that got
no status keeps its words (Cannot connect to destination host). New tests,OWCutBodyTests, hold that a cut-off
answer is a transport failure, never a value or a parse error, the image upload host's too, against a real socket on
127.0.0.1; a whole answer read to the end of the connection is the value, and a whole body that is not JSON keeps
its own error.