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
Fail close driver on browser crashing #7
Comments
Update Bose by execute the following command: In the browser configuration, utilize the "close on crash" and "undetected" options: class Task(BaseTask):
task_config = TaskConfig(
close_on_crash=True,
use_undetected_driver=True,
) Also, selenium is crashing in Docker due to low memory increase it's memory and it should work. |
No, I have 2.0.8 - it's not too old version. |
@goforbroke1006 Was interested to see a selenium Docker file for learning purposes. Could you show it? |
Yeah, sure!
|
And compose like this:
|
Thanks |
Description
Each
selenium.common.exceptions.InvalidSessionIdException
error breaks execution ofbose.launch_tasks.launch_tasks
function.Steps to Reproduce
InvalidSessionIdException
insidetask.run(self, driver: BoseDriver, data: any)
TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'str'
Expected behavior: broken task can be finished normally
Actual behavior: broken task stops all process, next tasks will not executed
Reproduces how often: for sites with bot detection - 99% cases
Additional context
Can't reproduce on host machine. Only inside docker container.
Full stack-trace:
The text was updated successfully, but these errors were encountered: