[GH-ISSUE #475] OAuth Error #352

Closed
opened 2026-02-27 23:00:20 +03:00 by kerem · 1 comment
Owner

Originally created by @gro-david on GitHub (Nov 21, 2023).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/475

Describe the bug
Even though the YTMusic class is authenticated (_check_auth returns True), upload_song raises the "Provide authentication" error.

To Reproduce
Steps to reproduce the behavior:

  1. Create and oauth.json
  2. pass it into a YTMusic class
  3. test upload_song

Additional context
I am on Arch Linux with python 3.11.
I think the problem is at uploads:197. after commenting line 197 and 198 out i got the error that x-goog-authuser is not a valid key.

Originally created by @gro-david on GitHub (Nov 21, 2023). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/475 **Describe the bug** Even though the YTMusic class is authenticated (_check_auth returns True), upload_song raises the "Provide authentication" error. **To Reproduce** Steps to reproduce the behavior: 1. Create and oauth.json 2. pass it into a YTMusic class 3. test upload_song **Additional context** I am on Arch Linux with python 3.11. I think the problem is at uploads:197. after commenting line 197 and 198 out i got the error that x-goog-authuser is not a valid key.
kerem closed this issue 2026-02-27 23:00:20 +03:00
Author
Owner

@sigma67 commented on GitHub (Nov 21, 2023):

https://ytmusicapi.readthedocs.io/en/stable/setup/index.html

OAuth doesn't work for uploads

<!-- gh-comment-id:1821395610 --> @sigma67 commented on GitHub (Nov 21, 2023): https://ytmusicapi.readthedocs.io/en/stable/setup/index.html OAuth doesn't work for uploads
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#352
No description provided.