Hi,
Occasionally I have encountered a Sparkle exception error when trying to read the content of the response from a HTTP call. The latest error I got is :
HttpEngine Error
Could not read complete entity body. Content-length: 2384; Bytes read: 0
I can see this is raised in the THttpResponse.GetContentAsBytes function in Sparkle.Http.Engine.pas unit. So it seems the TStream.Read method has failed to read any bytes. Do you have any tips/suggestions as to what causes this, and is there any way to guard against?
Many thanks,
Jonathan