-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Unable to authorize, possibly because of using a pre-Amazon Audible account #113
Comments
It seams there is something wrong login with Audible username. Can you re-run quickstart and use login with a external browser? This way your browser will show you errors, if they occur. |
I got very similar results using the Browser. Here is the output: I also have a pdf of the webpage exhibited by the Browser, but the main content is already in the error report. |
Your login and device registration was successfully. But the registration response does not contain |
The honest answer is that I have very little experience with Python. (I do have some programming experience, but mainly with a couple of other higher-level systems. E.g. MatLab.) What is it that you would like me to do? |
If you don’t use the standalone binary from release page you can change these line from
to
After that reinstall the fixed |
I am not using the standalone binary. So I will definitely give that a try! Thanks! (It may take me a little while!) |
If you need any help you can contact me! |
Here is what I did. I edited the
|
Okay. Then delete these two lines please: for cookie in tokens["website_cookies"]:
website_cookies[cookie["Name"]] = cookie["Value"].replace(r'"', r'') This should resolve your issue. |
We are still getting problems. (Maybe I should ask: is there some kind of limit to the number of registrations that one can make?)
|
Theoretical it is possible to register an unlimited number of devices. But your last error says, that your login was not successfully and the url you past in does not contain the authorization code. Can you try it again? |
That was indeed my error: I pasted the wrong url. Here is the correct result:
|
Okay, I know what happens. Please change website_cookies = dict()
for cookie in tokens["website_cookies"]:
website_cookies[cookie["Name"]] = cookie["Value"].replace(r'"', r'') to website_cookies = None This should definitely solve this issue and set website cookies to None. They are not needed by |
It works! Thanks! (See below for confirmation and a little more information.) I now have a follow-up question: if I am being told that "Successfully registered FirstName's 6th Audible for iPhone.", then what happened to the other 5 Audible's for iPhone? (The first probably genuinely corresponds to an iPhone. But we have here the 6th.) It would be nice to tidy up the other 4! Thanks again! (And I learned a little bit about Python along the way.)
|
That sounds great. You can view and remove devices on the Amazon website under settings>devices or so. I think this should be the same for pre-Amazon accounts. If not, you can take a look on the Audible website under settings if there is a devices section. If not, you can deregister all devices by making a special API request. |
I checked the Audible website, and it says that you would need to contact Customer Services if you still log in with a username. In my experience the people at Customer Services are always delightful, but I am not sure that I want to explain to them how I have ended up with 6 devices registered. So it would be quite helpful to know about that API request! It would also be helpful to know: are some of these devices "virtual" devices created while debugging the code? (I probably would not use the API request immediately: I am still learning about your system, and at least my iPhone and Windows 7 computer are both working now..) |
Sorry for the delay. But I'm on annual vacation right now! The virtual devices cannot be distinguished from the real devices. At least not if you use my package. To deregister all devices for your account, create a file named import click
from audible import Authenticator
from audible_cli.cmds import cmd_manage as manage
CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
@click.command("deregister-all", context_settings=CONTEXT_SETTINGS)
@click.option(
"--auth-file", "-f",
type=click.Path(exists=False, file_okay=True),
callback=manage.check_if_auth_file_exists,
prompt="Please enter name for the auth file",
help="The auth file name (without dir)."
)
@click.option(
"--password", "-p",
help="The optional password for the auth file."
)
def cli(auth_file, password):
"""Deregister all devices for the given auth file account"""
auth = Authenticator.from_file(auth_file, password)
auth.refresh_access_token()
auth.deregister_device(deregister_all=True)
click.echo(f"all devices for given auth file account deregistered") Then you can run |
You really should not be doing this while on vacation! Thanks again! I have run the deactivation code, and the results are intriguing! (I removed the 'f' from 'click.echo(f"all devices for given auth file account deregistered")' first.)
Possible explanations for these data:
|
When it comes to numbering, he actually always takes the next free number. If deregistering a device, it free up this number. Have you read this? Sorry if I don’t answer all your questions yet. Will do it later. |
With apologies for the long pause: I have been exploring the capabilities of your system. Wow! It is magnificent! Thanks for contributing this! I think I can also now give a much more focused explanation of what I found vis-a-vis registration:
|
Error Report.md
The text was updated successfully, but these errors were encountered: