Skip to content

WebResourceResponseViewGetContentCompleted returning errorCode -32000 (0xFFFF8300) #86

@acztassi

Description

@acztassi

hello..

I'm using MiniBrowser demo and I got no return in one specific request of a webpage.

at the event:

procedure TMiniBrowserFrm.WVBrowser1WebResourceResponseViewGetContentCompleted(
  Sender: TObject; aErrorCode: HRESULT; const aContents: IStream;
  aResourceID: Integer);
var
  TempOLEStream : TOLEStream;
begin
  TempOLEStream := nil;
  try
    // Copy the resource contents into FResourceContents
    // The "Save resource as..." menu option will save FResourceContents in an HTML file.
    if succeeded(aErrorCode) and assigned(aContents) then
      begin
        TempOLEStream          := TOLEStream.Create(aContents);
        TempOLEStream.Position := 0;

        if (TempOLEStream.Size > 0) then
          begin
            SetLength(FResourceContents, TempOLEStream.Size);
            TempOLEStream.Read(FResourceContents, TempOLEStream.Size);
          end;
      end;
  finally
    if assigned(TempOLEStream) then
      FreeAndNil(TempOLEStream);
  end;
end;

the variable aErrorCode returns -32000, and aContents = nil...

I tested to debug the event in Firefox and the same link returns a valid json as content...

In the WVBrowser1WebResourceResponseReceived the header is all ok, even the length of the content.

do you have any idea about this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions