Skip to content
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

[BUG] Failed to connect to browser #326

Closed
1 task done
finnjung opened this issue Aug 22, 2024 · 1 comment
Closed
1 task done

[BUG] Failed to connect to browser #326

finnjung opened this issue Aug 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@finnjung
Copy link

finnjung commented Aug 22, 2024

✔️ Expected Behaviour

Connect to browser when executed

🐞 Actual Behaviour

Terminal:

[ERROR] Traceback (most recent call last):
  File "kleinanzeigen_bot/__main__.py", line 9, in <module>
  File "kleinanzeigen_bot/__init__.py", line 902, in main
  File "asyncio/base_events.py", line 684, in run_until_complete
  File "kleinanzeigen_bot/__init__.py", line 91, in run
  File "kleinanzeigen_bot/web_scraping_mixin.py", line 201, in create_browser_session
  File "nodriver/core/util.py", line 88, in start
  File "nodriver/core/browser.py", line 91, in create
  File "nodriver/core/browser.py", line 351, in start
Exception: 
                ---------------------
                Failed to connect to browser
                ---------------------
                One of the causes could be when you are running as root.
                In that case you need to pass no_sandbox=True 

📋 Steps to Reproduce

I run the executable version on a Mac currently with chrome, but I also tried edge and there was the same problem

📺 What browsers are you seeing the problem on? (if applicable)

Chrome, Microsoft Edge

💻 What operating systems are you seeing the problem on? (if applicable)

MacOS

📃 Relevant log output (if applicable)

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@finnjung finnjung added the bug Something isn't working label Aug 22, 2024
@sebthom
Copy link
Contributor

sebthom commented Nov 22, 2024

Closing this as duplicate of #315 where some suggestions are provided in comments.

@sebthom sebthom closed this as completed Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants