[GH-ISSUE #240] Hang during YTMusic initialization #189

Closed
opened 2026-02-27 22:08:30 +03:00 by kerem · 0 comments
Owner

Originally created by @cosven on GitHub (Dec 7, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/240

There is no timeout for the get request. As a result, the initialization of YTMusic object may hang. I think it should use self._session to send the request here.
github.com/sigma67/ytmusicapi@55c795a13e/ytmusicapi/ytmusic.py (L145-L147)

Originally created by @cosven on GitHub (Dec 7, 2021). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/240 There is no timeout for the get request. As a result, the initialization of YTMusic object may hang. I think it should use `self._session` to send the request here. https://github.com/sigma67/ytmusicapi/blob/55c795a13e76d47730502b4ab9ec56111b0995ef/ytmusicapi/ytmusic.py#L145-L147
kerem closed this issue 2026-02-27 22:08:31 +03:00
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
starred/ytmusicapi#189
No description provided.