Error using TScHttpWebResponse 'ReadNoWait internal error'
Posted: Thu 07 Nov 2019 20:30
Hi I am having an issue when I am trying to perform a GET.
Here is a code for reference of the call, not always happens, is for an specific info.
var
Request: TScHttpWebRequest;
Response: TScHttpWebResponse;
Output: string
... Here I have the setup in order to use certificates for authentication
...
Response := Request.GetResponse;
Output := Response.ReadAsString;
The error occurs in function TScSecureConnection.ReadNoWait
during the debug, the values of the variables were:
FWritePos 16384
FReadPos 16383
Any Idea?
function TScSecureConnection.ReadNoWait(const Buffer: TValueArr; Offset, Count: integer): integer;
begin
if FWritePos <> FReadPos then
raise Exception.Create(SReadNoWaitInternalError); //Here is where the error is showed
Here is a code for reference of the call, not always happens, is for an specific info.
var
Request: TScHttpWebRequest;
Response: TScHttpWebResponse;
Output: string
... Here I have the setup in order to use certificates for authentication
...
Response := Request.GetResponse;
Output := Response.ReadAsString;
The error occurs in function TScSecureConnection.ReadNoWait
during the debug, the values of the variables were:
FWritePos 16384
FReadPos 16383
Any Idea?
function TScSecureConnection.ReadNoWait(const Buffer: TValueArr; Offset, Count: integer): integer;
begin
if FWritePos <> FReadPos then
raise Exception.Create(SReadNoWaitInternalError); //Here is where the error is showed