[GH-ISSUE #390] Ошибка при обновлении списка отслеживания #309

Open
opened 2026-10-13 19:55:17 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @Taran2ul on GitHub (May 11, 2023).
Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/390

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"
============================================================
Originally created by @Taran2ul on GitHub (May 11, 2023). Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/390 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" ============================================================ ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
werwolfby/monitorrent#309
No description provided.