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
Captcha Login Fails 'KeyError' #73
Comments
Your issue seems to be identical with #72. I think I know what happens. Will look at this at soon as possible! |
I'm getting this error as well with the latest master branch installed... let me know if you want me to test other branches.
|
The real problem is not on the captcha page. |
I can't tell if I'm exposing my password or username for audible by sharing this log snippet. Please let me know!
|
Don’t worry, there are no username/password in the log. Can you use git and clone the master branch and install it. In my last commit I resolved the KeyError issue. |
With
I'm enabling debug logging, but I don't see any other logs that I can check.
|
Okay. There could be two things which could be cause the error.
Let me try something. |
Can you try this repo https://github.com/mkb79/Audible/tree/issue-73 please?! This will print out all forms found on a page. Then I can see if the captcha page contains additional forms. |
Sorry first time pulling from a github issue. How do I pip install it? I've added the commit hash to the url already.
|
Best is you clone from github repo this way git clone --branch issue-73 https://github.com/mkb79/Audible
cd audible-cli
pip install --upgrade . |
You know, when you put it like that, I feel very silly. If it matters, I'm in the "us" marketplace.
|
Okay, good news. There are two forms and the wrong is selected. Now I need the name of the form (I forget these)! Can you delete the audible-cli folder and repeat the steps above (reinstall issue branch and test)! With the name of the form I can solve the issue easy |
|
I think I solved the issue now. Can you repeat your last step again (pull and reinstall)! |
|
I have committed changes. Can you try them. These should solve the new issue. |
Looks good. Thanks for the fix. I can't imagine how hard it is to keep up with unofficial API changes.
|
using:
audible 0.6.0
Python 3.10
When trying to login using captcha method, login fails due to an exception 'KeyError'.
I am using a captcha call back but the
guess
seems to be coming back correctly on ln 376.In line 388 of login.py ( last line in the section below ) it calls the 'get_next_action_from_soup'
inside that method it gets an exception on line 126
method = form["method"]
KeyError: method
The form variable contains the following
(<)form action="get" name="ue_backdetect"(>)<input name="ue_back" type="hidden" value="1"/></form>
Replace (<) with < above
I have used the captcha on many occasions in the past with success until now.
The text was updated successfully, but these errors were encountered: