We are using Aspose.HTML 19.12.0 on .NET.
We are attempting to load an HTML document from content in a stream, as folllows:
HTMLDocument document = new HTMLDocument(htmlStream, “”);
The error produced sometimes is:
Failed to parse base URL. at . [T](String , Object[] ) at .(String , Object[] ) at Aspose.Html.Url…ctor(String url, String baseUrl) at
.(Stream , String ) at Aspose.Html.HTMLDocument…ctor(Stream content, String baseUri)
The odd thing is that, for the same data, this sometimes occurs and sometimes not. I cannot find a way to reliably reproduce. The baseUri provided to the constructor is simply an empty string. Would an upgrade help with this issue? I currently can’t view release notes, as docs.aspose.com is encountering a 403 HTTP error.