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

Authentication error not caught and leads to xmldom error loop #23

Open
KudMath opened this issue Jun 3, 2021 · 3 comments
Open

Authentication error not caught and leads to xmldom error loop #23

KudMath opened this issue Jun 3, 2021 · 3 comments

Comments

@KudMath
Copy link

KudMath commented Jun 3, 2021

I'm getting an xmldom error when registering a new device.
[xmldom error] element parse error: TypeError: source.indexOf is not a function @#[line:0,col:undefined]

@ptbrowne
Copy link
Owner

ptbrowne commented Jun 8, 2021

Hey, I haven't quite the necessary bandwidth to look at this at the moment, are you able to reproduce easily ? I think the best way to debug this would be to add logs in this file :

const parseRegisterResponse = xmlText => {
?

Tell me if you succeed and what kind of register response you receive (the raw xmlText that is received in parseRegisterResponse). Thanks !

@KudMath KudMath changed the title xmldom error Authentication error not caught and leads to xmldom error loop Jun 9, 2021
@nebriv
Copy link

nebriv commented Feb 17, 2023

@KudMath not sure if I'm having the same issue as you - but this is what the XML response is that I'm getting:

<error><customer_not_found>No customer found for this e-mail address and password.</customer_not_found></error>

Will continue to debug and see whats up.

Edit:
AHA! I got it figured out! Ok so when it fails the first password authentication, Amazon will send you a OTP to your email associated with your account. Swap your password out for this OTP token when trying to register your device and you should be good to go.

@theboiledice
Copy link

I too am having this issue, unfortunately @nebriv's fix is not working.

This is the xmlText: <error><customer_not_found>No customer found for this e-mail address and password.</customer_not_found></error>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants