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

Unclosed client session #233

Open
tanakrit-d opened this issue Jan 24, 2025 · 0 comments
Open

Unclosed client session #233

tanakrit-d opened this issue Jan 24, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@tanakrit-d
Copy link

tanakrit-d commented Jan 24, 2025

Describe the bug

Recently, iSponsorBlockTV has stopped connecting to the Apple TV YouTube app.

The error message is: ERROR:asyncio:Unclosed client session

This may be similar to #210

If you'd like me to perform any other actions or diagnostics please let me know.
As an aside - I'm incredibly appreciative of what you've created!

Steps taken to resolve

I've attempted the following:

  1. Recreate the Docker container
  2. Run the setup configuration again and re-pair the Apple TV
  3. Restart the YouTube app
  4. Restart the Apple TV
  5. Disable Ad Guard Home instance

Screenshots

  • N/A

iSponsorBlockTV server

  • OS: Raspberry Pi 4B

    • System: 64-bit
    • Kernel version: 6.6
    • Debian version: 12 (bookworm)
    • Docker (20.10.24)
  • Device: Apple TV 4K (3rd generation) Wi-Fi + Ethernet

  • OS: tvOS 18.2.1

Additional context

docker-compose.yml

services:
  isponsorblocktv:
    image: ghcr.io/dmunozv04/isponsorblocktv
    container_name: isponsorblocktv
    labels:
      - "com.centurylinklabs.watchtower.enable=true"
    restart: unless-stopped
    environment:
      - TZ=Australia/Melbourne
    volumes:
      - /data/app_data/isponsorblocktv:/app/data

config.json

{
    "devices": [
        {
            "screen_id": "hp3rdbua8n2c56pj5rjnvrqvai",
            "name": "Apple TV",
            "offset": 0
        }
    ],
    "apikey": "",
    "skip_categories": [
        "sponsor",
        "selfpromo"
    ],
    "channel_whitelist": [],
    "skip_count_tracking": true,
    "mute_ads": true,
    "skip_ads": true,
    "auto_play": true
}

Log output with --debug argument enabled:

DEBUG:asyncio:Using selector: EpollSelector

WARNING:aiohttp.internal:The object should be created within an async function

Stack (most recent call last):

  File "./main.py", line 3, in <module>

  File "./iSponsorBlockTV/helpers.py", line 218, in app_start

  File "/usr/local/lib/python3.11/site-packages/rich_click/rich_command.py", line 367, in __call__

  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__

  File "/usr/local/lib/python3.11/site-packages/rich_click/rich_command.py", line 152, in main

  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1666, in invoke

  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke

  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke

  File "/usr/local/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func

  File "./iSponsorBlockTV/helpers.py", line 162, in cli

  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke

  File "/usr/local/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func

  File "./iSponsorBlockTV/helpers.py", line 194, in start

  File "./iSponsorBlockTV/main.py", line 155, in main

  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 776, in __init__

  File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 232, in __init__

  File "/usr/local/lib/python3.11/site-packages/aiohttp/helpers.py", line 308, in get_running_loop
@tanakrit-d tanakrit-d added the bug Something isn't working label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant