ljhopkins2 / broadcastify-archtk

The Broadcastify Archive Toolkit for python
https://ljhopkins2.github.io/broadcastify-archtk/
GNU Affero General Public License v3.0
8 stars 9 forks source link

Instantiate a BroadcastifyArchive object gives me the following error #36

Open renehasp opened 2 years ago

renehasp commented 2 years ago

Describe the bug Instantiate a BroadcastifyArchive object gives me the following error

ERROR Message: javascript error: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'. (Session info: headless chrome=95.0.4638.69)

renehasp commented 2 years ago

JavascriptException Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_1628/2662893894.py in ----> 1 archive = BroadcastifyArchive(TEST_FEED_ID, 2 login_cfg_path=login_path, 3 username=USERNAME, 4 password=PASSWORD, 5 webdriver_path=webdriver_path)

C:\Python310\lib\site-packages\broadcastify_archtk\btk.py in init(self, feed_id, username, password, login_cfg_path, show_browser_ui, webdriver_path) 182 self.password = _config['authentication_data']['password'] 183 --> 184 self.feed_id = feed_id 185 self._get_feed_name(feed_id) 186

C:\Python310\lib\site-packages\broadcastify_archtk\btk.py in feed_id(self, value) 474 self.latest_entry = None 475 --> 476 self._get_archive_dates() 477 else: 478 print('New Feed ID same as old Feed ID.')

C:\Python310\lib\site-packages\broadcastify_archtk\btk.py in _get_archive_dates(self) 427 chrome_options=options) as browser: 428 browser.get(self.archive_url) --> 429 self.archive_calendar = ArchiveCalendar(self, browser, 430 get_dates=True) 431 self.start_date = self.archive_calendar.start_date

C:\Python310\lib\site-packages\broadcastify_archtk\btk.py in init(self, parent, browser, get_dates) 700 self.start_date = self._parent.start_date 701 --> 702 self._att = ArchiveTimesTable(self, browser) 703 704 def update(self):

C:\Python310\lib\site-packages\broadcastify_archtk\btk.py in init(self, parent, browser) 937 # Set up MutationObserver to handle refresh waits for consecutive dates 938 # with no data --> 939 self._browser.execute_script( 940 """ new MutationObserver(() => { 941 window.lastRefresh = new Date()

C:\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py in execute_script(self, script, *args) 632 command = Command.EXECUTE_SCRIPT 633 --> 634 return self.execute(command, { 635 'script': script, 636 'args': converted_args})['value']

C:\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py in execute(self, driver_command, params) 319 response = self.command_executor.execute(driver_command, params) 320 if response: --> 321 self.error_handler.check_response(response) 322 response['value'] = self._unwrap_value( 323 response.get('value', None))

C:\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py in check_response(self, response) 240 alert_text = value['alert'].get('text') 241 raise exception_class(message, screen, stacktrace, alert_text) --> 242 raise exception_class(message, screen, stacktrace) 243 244 def _value_or_default(self, obj, key, default):

JavascriptException: Message: javascript error: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'. (Session info: headless chrome=95.0.4638.69)