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

启动训练小恐龙的时候selenium会读取页面的ERR_INTERNET_DISCONNECTED导致报错 #11

Open
SuperTyrael opened this issue Dec 6, 2020 · 1 comment

Comments

@SuperTyrael
Copy link

Traceback (most recent call last):
  File "TRexRush.py", line 50, in <module>
    main()
  File "TRexRush.py", line 40, in main
    game_cotroller = GameController(cfg)
  File "/Users/liam/Desktop/Git/AIGames/AITRexRush/Algorithm_1/modules/gameapis/controller.py", line 30, in __init__
    self.driver.get(cfg.GAME_URL)
  File "/Users/liam/opt/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 333, in get
    self.execute(Command.GET, {'url': url})
  File "/Users/liam/opt/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/Users/liam/opt/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: net::ERR_INTERNET_DISCONNECTED
  (Session info: chrome=87.0.4280.88)

这是为啥?

@HexZzzzz
Copy link

HexZzzzz commented Jan 16, 2022

Traceback (most recent call last):
File "C:\AITRexRush\Algorithm_1\TRexRush.py", line 50, in
main()
File "C:\AITRexRush\Algorithm_1\TRexRush.py", line 40, in main
game_cotroller = GameController(cfg)
File "C:\AITRexRush\Algorithm_1\modules\gameapis\controller.py", line 30, in init
self.driver.get(cfg.GAME_URL)
File "C:\AITRexRush\Algorithm_1\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 436, in get
self.execute(Command.GET, {'url': url})
File "C:\AITRexRush\Algorithm_1\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 424, in execute
self.error_handler.check_response(response)
File "C:\AITRexRush\Algorithm_1\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: net::ERR_INTERNET_DISCONNECTED
(Session info: chrome=97.0.4692.71)

我也不知道为什么,跟你有着一样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants