Skip to content

Fix unhandled JSONDecodeError in fetch_room_id_api - #375

Merged
isaackogan merged 2 commits into
isaackogan:masterfrom
kpopdev:patch-1
Sep 10, 2026
Merged

isaackogan merged 2 commits into
isaackogan:masterfrom
kpopdev:patch-1

Conversation

@kpopdev

@kpopdev kpopdev commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Wrap response.json() in a try/except so a non-JSON response from TikTok (e.g. 403 with empty body when rate-limited or blocked) raises a clean FailedParseRoomIdError instead of an unhandled JSONDecodeError.

Wrap response.json() in a try/except so a non-JSON response from
TikTok (e.g. 403 with empty body when rate-limited or blocked)
raises a clean FailedParseRoomIdError instead of an unhandled
JSONDecodeError.
@isaackogan
isaackogan merged commit 30091a3 into isaackogan:master Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants