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

Stops on its own #164

Open
skyshines opened this issue Jan 7, 2022 · 12 comments
Open

Stops on its own #164

skyshines opened this issue Jan 7, 2022 · 12 comments

Comments

@skyshines
Copy link

Describe the bug
Script stops on its own

Screenshots
[13:58:50] Looking for new meetings
Traceback (most recent call last):
File "auto_joiner.py", line 58, in expand_channels
self.get_elem().find_element_by_css_selector("div.channels")
File "/home/sky/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 430, in find_element_by_css_selector
return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
File "/home/sky/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 658, in find_element
return self._execute(Command.FIND_CHILD_ELEMENT,
File "/home/sky/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "/home/sky/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/home/sky/.local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"div.channels"}
(Session info: chrome=97.0.4692.71)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "auto_joiner.py", line 770, in
main()
File "auto_joiner.py", line 713, in main
teams = get_all_teams()
File "auto_joiner.py", line 311, in get_all_teams
return [Team(team_names[i], team_ids[i]) for i in range(len(team_elems))]
File "auto_joiner.py", line 311, in
return [Team(team_names[i], team_ids[i]) for i in range(len(team_elems))]
File "auto_joiner.py", line 40, in init
self.get_channels()
File "auto_joiner.py", line 67, in get_channels
self.expand_channels()
File "auto_joiner.py", line 62, in expand_channels
self.get_elem().find_element_by_css_selector("div.channels")
File "auto_joiner.py", line 53, in get_elem
team_elem = team_header.find_element_by_xpath("..")
File "/home/sky/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 351, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/home/sky/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 658, in find_element
return self._execute(Command.FIND_CHILD_ELEMENT,
File "/home/sky/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "/home/sky/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/home/sky/.local/lib/python3.8/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: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
(Session info: chrome=97.0.4692.71)

Desktop :

  • Linux
  • Chrome(original from official site)
  • Version 97.0.4692.71 (Official Build) (64-bit)
@skyshines
Copy link
Author

@TobiasPankner pls help

@TobiasPankner
Copy link
Owner

Sorry for the late reply, have you tried running it in headful mode to see what's happening?

@skyshines
Copy link
Author

yes i run it in maximized mode, never ran it in minimize or headless mode

@TobiasPankner
Copy link
Owner

Okay, a video would be helpful if because I cannot reproduce the issue

@skyshines
Copy link
Author

It closes on its own
since i have a discord webhook url attached
it gives me a message browser closed thank you
i will try giving you a video

@AP-XD
Copy link

AP-XD commented Jan 20, 2022

How to track keypress in terminal?
With that we can resume search on keypress in terminal in case in gets stuck

@AP-XD
Copy link

AP-XD commented Jan 20, 2022

Okay, a video would be helpful if because I cannot reproduce the issue

image
Meeting got ended by host in the red part and then it keeps spamming that forever.

@TobiasPankner
Copy link
Owner

TobiasPankner commented Jan 20, 2022

How to track keypress in terminal?
With that we can resume search on keypress in terminal in case in gets stuck

Thats not really what I have in mind with this bot though. You should be able to leave the computer and let it do it's thing without input. Thats the whole point

@TobiasPankner
Copy link
Owner

Okay, a video would be helpful if because I cannot reproduce the issue

image
Meeting got ended by host in the red part and then it keeps spamming that forever.

I don't see how the picture is related to this issue. Please create a new issue

@AP-XD
Copy link

AP-XD commented Jan 20, 2022

How to track keypress in terminal?
With that we can resume search on keypress in terminal in case in gets stuck

Thats not really what I have in mind with this bot though. You should be able to leave the computer and let it do it's thing without input. Thats the whole point

Yes but incase it gets stuck for some reason we can just restart the searching manually instead of relaunching it.

@skyshines
Copy link
Author

@AP-XD i just found a fix, not a code
the moment it checks for a new meeting
scroll up and down a bit
it will open the meet as it is supposed to

why this works for me
i want to to store the max members in a meet
so that i can ignore it and rest it can handle itself

@TobiasPankner
Copy link
Owner

Very weird, can you post a screenshot of chrome to help me fix this issue?

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

3 participants