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

Weird assertion error after attempting to create a Mobile session #14

Closed
zaneburko opened this issue Aug 7, 2022 · 7 comments
Closed
Assignees
Labels
bug Something isn't working no-issue-activity All Issues with no activity in the last days will get this label

Comments

@zaneburko
Copy link

zaneburko commented Aug 7, 2022

When I try to start a new "rip", it asks me if I'd like to create a new mobile session as I have not created one already. It asks for my username and password which I put in correctly. Once the process starts, it gets interrupted very quickly due to an assertion error. I've tried reinstalling Orpheus, reinstalling the modules, installing the modules manually by cloning the repos, and nothing seems to work.

I'm not sure what this means as I have little understanding of python. Anyone know how to fix this. My endgoal is to be able to obtain 360 audio and I'm not sure what is causing this issue.

image


/ __ \ | | | __ | |
| | | |_ __ _ __ | |__ ___ _ _ | | | | |
| | | | '
| '
| '_ \ / _ \ | | / | | | | |
| |
| | | | |) | | | | __/ || __ \ || | |____
_
/|| | ./|| ||_|_,|//|___|
| |
|
|

"enable_mobile" is enabled but no MOBILE session was found. Do you want to create a MOBILE session (used for AC-4/360RA) [Y/n]? Y
TIDAL: Creating a Mobile session
TIDAL: Enter your Tidal username and password:
Username: ______@gmail.com
Password:
Traceback (most recent call last):
File "/Users/zaneburko/orpheusdl/orpheus.py", line 223, in
main()
File "/Users/zaneburko/orpheusdl/orpheus.py", line 218, in main
orpheus_core_download(orpheus, media_to_download, tpm, sdm, path)
File "/Users/zaneburko/orpheusdl/orpheus/core.py", line 360, in orpheus_core_download
music = orpheus_session.load_module(mainmodule)
File "/Users/zaneburko/orpheusdl/orpheus/core.py", line 205, in load_module
loaded_module = class
(module_controller)
File "/Users/zaneburko/orpheusdl/modules/tidal/interface.py", line 111, in init
sessions[session_type].auth(username, password)
File "/Users/zaneburko/orpheusdl/modules/tidal/tidal_api.py", line 454, in auth
assert (r.status_code == 200)
AssertionError

  • OS: Monterey
  • Python version 3.10.6
@zaneburko zaneburko added the bug Something isn't working label Aug 7, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because it has been open for 7 days with no activity.

@github-actions github-actions bot added the no-issue-activity All Issues with no activity in the last days will get this label label Aug 15, 2022
@Dniel97
Copy link
Owner

Dniel97 commented Aug 16, 2022

I was not able to reproduce this behavior on macOS Big Sur with Python 3.9.x using multiple accounts. I'd suggest using Python 3.9.x instead of Python 3.10 but other than that I have no idea what's going on. Set "debug_mode": true, inside config/settings.json and try it again, maybe that helps understanding the error.

@github-actions github-actions bot removed the no-issue-activity All Issues with no activity in the last days will get this label label Aug 16, 2022
@aconstas
Copy link

experiencing this "AssertionError" as well with Python Version 3.9.7

@Dniel97
Copy link
Owner

Dniel97 commented Aug 17, 2022

experiencing this "AssertionError" as well with Python Version 3.9.7

Can you also enable debug_mode and share the output while trying to create a mobile session?

@aconstas
Copy link

aconstas commented Aug 17, 2022

Of course! Here is the output
After entering the email, I type my password and no letters appear in the terminal so I press Enter and this is what returns.
Capture
:

DEBUG:root:Orpheus: Modules detected: example, tidal
DEBUG:root:Orpheus: example added as a module
DEBUG:root:Orpheus: tidal added as a module
"enable_mobile" is enabled but no MOBILE session was found. Do you want to create a MOBILE session (used for AC-4/360RA) [Y/n]? Y
DEBUG:root:TIDAL: TV session found, loading
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.tidal.com:443
DEBUG:urllib3.connectionpool:https://api.tidal.com:443 "GET /v1/sessions HTTP/1.1" 200 271
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.tidal.com:443
DEBUG:urllib3.connectionpool:https://api.tidal.com:443 "GET /v1/users/188699594/subscription HTTP/1.1" 200 290
DEBUG:root:TIDAL: No MOBILE_DEFAULT session found, creating new one
TIDAL: Creating a Mobile session
TIDAL: Enter your Tidal username and password:
Username: r------------@gmail.com
Password:
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): login.tidal.com:443
DEBUG:urllib3.connectionpool:https://login.tidal.com:443 "GET /authorize?response_type=code&redirect_uri=https%3A%2F%2Ftidal.com%2Fandroid%2Flogin%2Fauth&lang=en_US&appMode=android&client_id=WAU9gXp3tHhK4Nns&client_unique_key=ebd2b25f25aa3ee3&code_challenge=aQjHNqvfDvkfKaa-AuWaM1HVG_Y45OV8LR5wceB2LjI&code_challenge_method=S256&restrict_signup=true HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): dd.tidal.com:443
DEBUG:urllib3.connectionpool:https://dd.tidal.com:443 "POST /js/ HTTP/1.1" 200 229
DEBUG:urllib3.connectionpool:https://login.tidal.com:443 "POST /api/email?response_type=code&redirect_uri=https%3A%2F%2Ftidal.com%2Fandroid%2Flogin%2Fauth&lang=en_US&appMode=android&client_id=WAU9gXp3tHhK4Nns&client_unique_key=ebd2b25f25aa3ee3&code_challenge=aQjHNqvfDvkfKaa-AuWaM1HVG_Y45OV8LR5wceB2LjI&code_challenge_method=S256&restrict_signup=true HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:https://login.tidal.com:443 "POST /api/email/user/existing?response_type=code&redirect_uri=https%3A%2F%2Ftidal.com%2Fandroid%2Flogin%2Fauth&lang=en_US&appMode=android&client_id=WAU9gXp3tHhK4Nns&client_unique_key=ebd2b25f25aa3ee3&code_challenge=aQjHNqvfDvkfKaa-AuWaM1HVG_Y45OV8LR5wceB2LjI&code_challenge_method=S256&restrict_signup=true HTTP/1.1" 401 None
Traceback (most recent call last):
File "C:\Users\const\orpheusdl\orpheus.py", line 223, in
main()
File "C:\Users\const\orpheusdl\orpheus.py", line 218, in main
orpheus_core_download(orpheus, media_to_download, tpm, sdm, path)
File "C:\Users\const\orpheusdl\orpheus\core.py", line 360, in orpheus_core_download
music = orpheus_session.load_module(mainmodule)
File "C:\Users\const\orpheusdl\orpheus\core.py", line 205, in load_module
loaded_module = class_(module_controller)
File "C:\Users\const\orpheusdl\modules\tidal\interface.py", line 111, in init
sessions[session_type].auth(username, password)
File "C:\Users\const\orpheusdl\modules\tidal\tidal_api.py", line 454, in auth
assert (r.status_code == 200)
AssertionError

@github-actions
Copy link

This issue has been automatically marked as stale because it has been open for 7 days with no activity.

@github-actions github-actions bot added the no-issue-activity All Issues with no activity in the last days will get this label label Aug 24, 2022
@github-actions
Copy link

This issue was automatically closed because it has been inactive for 7 days since being marked as stale.

@Dniel97 Dniel97 reopened this Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity All Issues with no activity in the last days will get this label
Projects
None yet
Development

No branches or pull requests

3 participants