Closed buave closed 1 month ago
I also got error with new_page() method. This is its error
Cdp error: ChannelSendError( Send( SendError { kind: Disconnected, }, ), )
It was working fine before
In my project I have the below which has been working fine for the past year but stopped working at some point in the past couple of weeks:
let page = browser.new_page("about:blank").await.unwrap();
and now errors with:
called `Result::unwrap()` on an `Err` value: ChannelSendError(Canceled(Canceled))
If I run the wiki example from the chromiumoxide repo with cargo run --example wiki
I get:
2024-09-29T13:06:38.414276Z ERROR chromiumoxide::conn: Failed to deserialize WS response data did not match any variant of untagged enum Message
2024-09-29T13:06:38.414395Z ERROR chromiumoxide::handler: WS Connection error: Serde(Error("data did not match any variant of untagged enum Message", line: 0, column: 0))
2024-09-29T13:06:38.824326Z WARN chromiumoxide::browser: Browser was not closed manually, it will be killed automatically in the background
Error: ChromeMessage("Node is either not visible or not an HTMLElement")
I tried copying the example code in to a new repo and got the below error when I run the example:
Error: ChannelSendError(Canceled(Canceled))
Hello, I'm back for an update.
I tried the code by switching to an older version (0.6.0) I was on 0.7.0. But it didn't change anything. I've noticed that my page loads when I load it for the first time, but then I get the problem mentioned above. The problem came from cookies in the cache. I put the browser in incognito mode, so as never to save cookies, and that solved the problem. So in the end, the problem had more to do with the site than with the code.
I've noticed that my page loads when I load it for the first time, but then I get the problem mentioned above. The problem came from cookies in the cache. I put the browser in incognito mode, so as never to save cookies, and that solved the problem.
So in the end, the problem had more to do with the site than with the code.
PS: @maxwell8888 @goni098 I'm going to close this issue, please open your issue, your errors look more serious. Good luck
Hi, thank you for this great project. I'm opening an issue because I don't understand, I don't know if it's a bug or if it's me who's taking it wrong.
To sum up, I need to take screenshots of a website with an X URL. My program works, and for my tests, I put all sorts of URLs. But with “ https://piped.bauve.link " arriving at
browser.new_page(“https://piped.bauve.link”)
the program freezes (the URL is valid and functional) I am forced to stop the program. I have no errors, nothing at all. It just hangsThe weirdest thing is that out of 20 tries, the URL goes through at least once and continues on its way to take a screenshot, and then it works. But if I restart it, it doesn't work anymore.
I tested with
.with_head()
chromium opens and enters the URL, the page loads, but the program remains blocked.To prevent it from blocking the program indefinitely, I've added a timeout, but I'd like to understand why it doesn't work with this particular link.
I can't provide all the code, but here's the part where there's a problem:
Thanks in advance