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

"Invalid ID format" error after making oauth_data file #13

Closed
clb92 opened this issue Apr 27, 2015 · 2 comments
Closed

"Invalid ID format" error after making oauth_data file #13

clb92 opened this issue Apr 27, 2015 · 2 comments
Labels

Comments

@clb92
Copy link

clb92 commented Apr 27, 2015

Description

After accepting the auth request, I saved the text to a "oauth_data" file in the application directory. I've also tried converting it to UTF-8 instead of the default ANSI, but that just crashes the JSON decoder completely (comment if you want a stacktrace of that).

Console output

C:\acd_cli-master>python acd_cli.py upload C:\test.txt
Invalid ID format.

Neither --verbose nor --debug seem to print any additional info.

Contents of oauth_data

The text is valid JSON format:

{
    "access_token": "<REMOVED FOR SECURITY REASONS>",
    "exp_time": 1430170624.685374,
    "expires_in": 3600,
    "refresh_token": "<REMOVED FOR SECURITY REASONS>",
    "token_type": "bearer"
}

In my Amazon account I can see that acd_cli_oa is successfully authorized, so I'm not exactly sure what's wrong.

@clb92
Copy link
Author

clb92 commented Apr 27, 2015

Ah, I feel stupid now. I was simply missing command line arguments, and it had nothing to do with the oauth...

@clb92 clb92 closed this as completed Apr 27, 2015
@yadayada
Copy link
Owner

There was an error in the argument processing. I will make a change to have argparse print a proper error message.

@yadayada yadayada added the CLI label Sep 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants