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

Account gets locked after API login #22

Open
muleyo opened this issue Apr 11, 2022 · 6 comments
Open

Account gets locked after API login #22

muleyo opened this issue Apr 11, 2022 · 6 comments

Comments

@muleyo
Copy link

muleyo commented Apr 11, 2022

Anyone knows how to prevent that? I get forced to reset my password everytime I login via API.

Using it on my local machine, so IP-address is the same.

@2konrad
Copy link

2konrad commented May 3, 2022

I had the same issue - account blocked after one successful run of example.py. What could be the reason?
https://github.com/exislow/kleinanzeigen-magic ist running fine.

I compared the headers and the only difference seems to be the 'Content-Type': 'application/xml'.
I need to check this after my account in unblocked.
Any other thoughts?

@muleyo
Copy link
Author

muleyo commented May 3, 2022

Yup can confirm, with that additional sent header, my account is not getting blocked anymore!

@2konrad
Copy link

2konrad commented May 3, 2022

Great news - i will try it soon as well.

@2konrad
Copy link

2konrad commented May 5, 2022

I tried it but didn’t work. Just adding the content type header was not enough. Next I will try to have just the headers that https://github.com/exislow/kleinanzeigen-magic is using. Which headers did you use?

@cloudmaker97
Copy link

I've removed a header after encountering this issue. It seems so that this header is deprecated: X-EBAYK-WENKSE-SESSION-ID and triggers the risk management for chaning the password. The header was introduced in this commit: 62ba68d. Maybe the author @felixb can tell us something about it.

My working code looks like this:

header = {
    'X-EBAYK-APP': self.H_EBAYK_CLIENT_APP,
    'X-ECG-USER-VERSION': self.H_EBAYK_CLIENT_VERSION,
    'X-ECG-USER-AGENT': self.H_EBAYK_CLIENT_TYPE,
    'Authorization': 'Basic {}'.format(app_auth),
    'X-ECG-Authorization-User': user_auth,
    'User-Agent': self.H_EBAYK_CLIENT_UA,
}

@felixb
Copy link
Contributor

felixb commented Jul 25, 2022

@cloudmaker97 I've just adapted the js code referenced here: #14.

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