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

Exception with a large number of requests #50

Closed
igorank opened this issue Sep 29, 2022 · 1 comment
Closed

Exception with a large number of requests #50

igorank opened this issue Sep 29, 2022 · 1 comment
Labels
waiting for response Waiting for response from reporting user

Comments

@igorank
Copy link

igorank commented Sep 29, 2022

When I send many login requests in a row, I get the following error:

KijijiApiException: Unable to parse text: mismatched tag

No matter which method of the KijijiApi class is called many times in a row (login(), get_profile() or get_ad()), the following exception pops up:

raise KijijiApiException(f"Unable to parse text: {errors.messages[e.code]}")

@jackm
Copy link
Owner

jackm commented Oct 3, 2022

It is likely that you are being rate limited by Kijiji for many login attempts.

How frequently are you attempting to login with your user credentials? The Kijiji API that this app uses is intended to do infrequent logins since once logged in, it returns a user token. This token is valid for a long time (approx. 30 days) and should be used when making all future API calls.

@jackm jackm added the waiting for response Waiting for response from reporting user label Oct 3, 2022
@igorank igorank closed this as completed Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for response Waiting for response from reporting user
Projects
None yet
Development

No branches or pull requests

2 participants