werwolfby / monitorrent

Automatic torrents downloader
Do What The F*ck You Want To Public License
509 stars 71 forks source link

Ошибка при обновлении списка отслеживания #390

Open Taran2ul opened 1 year ago

Taran2ul commented 1 year ago

Monitorrent v.1.4.0-alpha.1 в Docker образе Периодически при обновлении списка отслеживания с lostfilm вывальвается ошибка и после Monitorrent висит до перезапуска контейнера.

Exception while execute topic
Traceback (most recent call last):
  File "/var/www/monitorrent/monitorrent/plugins/trackers/__init__.py", line 416, in extract_cloudflare_credentials_and_headers
    raise CloudflareException('Exception should be thrown by scrapper, but this is not always happened')
cloudscraper.exceptions.CloudflareException: Exception should be thrown by scrapper, but this is not always happened

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 845, in execute
    episodes = self._prepare_request(topic)
  File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 908, in _prepare_request
    show = self.tracker.parse_url(topic.url, True)
  File "/var/www/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 535, in parse_url
    update_headers_and_cookies_mixin(self, url)
  File "/var/www/monitorrent/monitorrent/plugins/trackers/__init__.py", line 399, in update_headers_and_cookies_mixin
    headers, cookies = extract_cloudflare_credentials_and_headers(url, self.headers, self.cookies,
  File "/var/www/monitorrent/monitorrent/plugins/trackers/__init__.py", line 421, in extract_cloudflare_credentials_and_headers
    return asyncio.run(solve_challenge(url, settings))
  File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    return future.result()
  File "/var/www/monitorrent/monitorrent/plugins/trackers/__init__.py", line 451, in solve_challenge
    await page.goto(url)
  File "/usr/local/lib/python3.9/site-packages/playwright/async_api/_generated.py", line 9162, in goto
    await self._impl_obj.goto(
  File "/usr/local/lib/python3.9/site-packages/playwright/_impl/_page.py", line 494, in goto
    return await self._main_frame.goto(**locals_to_params(locals()))
  File "/usr/local/lib/python3.9/site-packages/playwright/_impl/_frame.py", line 147, in goto
    await self._channel.send("goto", locals_to_params(locals()))
  File "/usr/local/lib/python3.9/site-packages/playwright/_impl/_connection.py", line 44, in send
    return await self._connection.wrap_api_call(
  File "/usr/local/lib/python3.9/site-packages/playwright/_impl/_connection.py", line 419, in wrap_api_call
    return await cb()
  File "/usr/local/lib/python3.9/site-packages/playwright/_impl/_connection.py", line 79, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
navigating to "https://www.lostfilm.tv/series/Love_Death_and_Robots/seasons", waiting until "load"
============================================================