qwant-api icon indicating copy to clipboard operation
qwant-api copied to clipboard

qwant-api error: The API returned the error code '7'

Open forgeFitnessUgym opened this issue 5 years ago • 3 comments

Hello,

Thank you for the great package. I use the api to search for images. It has been working for a couple of months, until recently. Now it always gets "qwant-api error: The API returned the error code '7'".

Could you please help to look into it? Thank you.

forgeFitnessUgym avatar Apr 11 '20 12:04 forgeFitnessUgym

Unfortunately those error codes are returned by qwant itself and are not documented. I currently do not have time to look into this due to military service

NullDev avatar Apr 11 '20 13:04 NullDev

Thank you for your reply. Good luck in the military service.

forgeFitnessUgym avatar Apr 12 '20 02:04 forgeFitnessUgym

This is an old issue but just in case someone encounters the same error, this error means that the locale parameter in the request is incorrect, so either remove it or use a correct locale (for instance "en_us")

OlivierFreyssinet-old avatar Apr 22 '21 20:04 OlivierFreyssinet-old