mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #134] Unable to connect on WSL #97
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#97
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LewisGaul on GitHub (Dec 28, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/134
Just wanted to point out, in case it's helpful, that it seems that it's not possible to connect from Windows Subsystem for Linux (version 1 at least) when the request headers have been obtained from a browser running in Windows. Perhaps this is unsurprising given they include a mention of Windows in the "User-Agent" field!
What's more, I'm unable to Ctrl+C out when it hangs trying to connect.
Feel free to close this issue if you don't feel there's anything to be done about it.
WSL:
Command Prompt:
@sigma67 commented on GitHub (Dec 30, 2020):
Not quite sure what issue you are facing here? The HTTP request in your log returns status code 200 which is correct. WSL or Linux should work with headers obtained on Windows browsers, in fact that's how I always set up my machines (get credentials on Win, automate on Linux).
@LewisGaul commented on GitHub (Dec 31, 2020):
Hm, interesting. I still can't get it to work on WSL using Python 3.6 or 3.8, and the fact Ctrl+C stops being handled is strange. If this works for you then maybe it's a problem with my environment - if I ever work it out I'll try to remember to update here, but for now running on Windows is fine for me.
@sigma67 commented on GitHub (Jan 3, 2021):
Please reopen if you can describe the root of the issue more clearly. I don't see why it shouldn't work on WSL, since it's just some basic web requests. Seems like a problem with your environment or WSL, not related to this package.