-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HtmlWeb Load() method returns empty HtmlDocument when using cache #15
Comments
Hello @AntonKedrov , Thank you for reporting. We will investigate this issue over the weekend and provide you more information very soon. Best Regards, Jonathan |
Hello @AntonKedrov , The v1.5.0-beta8 has been released: The content is now stored in the CachePath and loaded in the HtmlDocument as expected. Let us know if this issue is fixed on your side. Best Regards, Jonathan |
Unfortunately, it still doesn't work. BTW, I think there is a mistake in the unit test. I think there should be
Best regards, |
... omg! We will look at it again during the weekend. Best Regards, Jonathan |
Hello @AntonKedrov , We fixed the test. However, the code is still working fine for us with the v1.5.0-beta8. Could you verify on your side to make sure this is not an issue related to an assembly caching and still using the old version? By example, by making sure to clean the solution first. Best Regards, Jonathan |
Hello @AntonKedrov , We still have no received any update from your part concerning this issue. Best Regards, Jonathan |
Hi, I'm really sorry for delayed response.
In result I'm using following workaround. I'm checking if page is cached (using |
Hello @AntonKedrov , Unfortunately, we are not able to reproduce it. This feature works very well for my developer and me. We are currently not sure how to reproduce it since we don't have the error whatever we try ;( I believe the only solution currently is on your side downloading the source and trying to figure out what is not working. Best Regards, Jonathan |
Sure, I'll try to help. I cloned the repo and it seems that problem is in Non-NETSTANDARD code looks like this:
And NETSTANDARD code is like this:
I think that
Best regards, |
Thank you, We will fix it today and check at the same time why our .NET Core project didn't raised this error. Best Regards, Jonathan |
Hello @AntonKedrov , We have fixed our .NET Core project and we can now successfully reproduce this issue. The V1.5.2-beta2 has been released. It should now correctly work with your scenario. Thank you for giving us the solution ;) Best Regards, Jonathan |
I can confirm that it works now. Thank you! :) Best regards, |
Closing Comment: Fix confirmed |
Hi,
I'm using HtmlAgilityPack 1.5.0-beta6 in .NETCoreAPP 1.1 console application.
Following code outputs empty string. Once I set
UsingCache = false
it will output page content, as expected.The text was updated successfully, but these errors were encountered: