athrowaway2021 / comix

Seamlessly download and de-drm comics and manga from Kindle in highest possible quality
MIT License
61 stars 20 forks source link

Timeout error #15

Closed dchambai closed 2 years ago

dchambai commented 2 years ago

When I try to run the command I get a "getting auth token" but then get a timeout error. What am I doing wrong?

athrowaway2021 commented 2 years ago

Not sure, I can't replicate this issue. What region are you using the tool in, what region is your Amazon account from if different, and are you using a VPN? Could you also post the full console output, and censor any private information.

dchambai commented 2 years ago

I have managed to solve the timeout error by using a VPN, but I now have a new error:

{"response": {"error": {"code": "CredentialError", "message": "The input credential is invalid."}}, "request_id": "1b3ef928-fc03-4f7d-aab3-759d9a9eb39d"} Traceback (most recent call last): File "D:\comix-main\comix.py", line 142, in cmx = Cmx(None) File "D:\comix-main\comix.py", line 23, in init self.auth_token = amazon_auth.login(config.EMAIL, config.PASSWORD, config.DEVICE_ID)["access_token"] TypeError: 'NoneType' object is not subscriptable

comment-account commented 2 years ago

Regarding your new error... I ran into that as well. The solution, at least for me, was to turn off two-step verification in the Amazon settings. Longer version: I noticed while trying to run the script a few times that I kept receiving confirmation texts from Amazon, as its system was viewing this as login attempts from an unrecognized device. Not knowing what else to do (it's not as if the script has a built-in way to enter a confirmation number), I turned off two-step verification, and the error went away.

dchambai commented 2 years ago

Thanks I finally got it to work.