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

Error code 9 #5

Open
LohithArcot opened this issue Apr 2, 2019 · 3 comments
Open

Error code 9 #5

LohithArcot opened this issue Apr 2, 2019 · 3 comments

Comments

@LohithArcot
Copy link

What does the error code 9 mean?
get request URL : https://api.qwant.com/api/search/images?q=stackoverflow
response: {"status":"success","data":{"result":{"items":[]},"error_code":9}}
What does the error_code 9 mean ?

@floweb
Copy link
Contributor

floweb commented Jun 26, 2019

@lohithpro I think this is related to this issue. I guess you need to pass some more params to your query.

@kokmok
Copy link

kokmok commented Sep 13, 2019

got rid of the error by adding a Mozilla user-agent to the request. You also have to add some parameters to the request. I Don't kwow what they all do.
https://api.qwant.com/api/search/images?count=10&offset=0&q=test&t=images&uiv=1
exemple for my python script :

headers = {
		'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0',
	}

with a home made user-agent i was stuck with error 9

@pekempy
Copy link

pekempy commented Nov 11, 2019

@kokmok My god, &uiv=1 stops error 9 ! Definitely need a lil rewrite of my program now. THANK YOU

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