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

Instagram QueryError #17

Closed
butterflyx opened this issue Feb 24, 2020 · 12 comments
Closed

Instagram QueryError #17

butterflyx opened this issue Feb 24, 2020 · 12 comments
Labels
bug Something isn't working

Comments

@butterflyx
Copy link

Using socialscan I get repeatedly the error:
Instagram: QueryError - Could not retrieve token. You might be sending too many requests. Use a proxy or wait before trying again.

Using a proxy, doesn't solve the issue, as only http proxies supported at the moment:
Instagram: ClientConnectorCertificateError - Cannot connect to host www.instagram.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')]
Proxy used:
http://80.187.140.26:8080

@iojw
Copy link
Owner

iojw commented Mar 4, 2020

@butterflyx Are you still facing this issue? Normally it is caused by too many requests sent in a short period of time. Is that the case or does it occur even with a single query?

As for the proxy, yes I'm afraid only http proxies are supported at the comment. This is a limitation of aiohttp, the library I'm using for executing requests

@herecomesharis
Copy link

@butterflyx Are you still facing this issue? Normally it is caused by too many requests sent in a short period of time. Is that the case or does it occur even with a single query?

As for the proxy, yes I'm afraid only http proxies are supported at the comment. This is a limitation of aiohttp, the library I'm using for executing requests

This still happens, even with a single query and even if sending only one request. Could this be something to do with changes on Instagram side?

@iojw
Copy link
Owner

iojw commented Mar 23, 2020

@herecomesharis Instagram is still working well on my own computer and on Travis so it is difficult for me to troubleshoot this error. What region are you from? Maybe you are being served a different version of Instagram.

@herecomesharis
Copy link

@herecomesharis Instagram is still working well on my own computer and on Travis so it is difficult for me to troubleshoot this error. What region are you from? Maybe you are being served a different version of Instagram.

Hi! Sorry for my late reply, hope you will see this.
I'm from EU. To highlight the issue I pasted everything from my console so you can check it out - https://pastebin.com/1bi1Q9RY
Maybe I did something wrong?

Br

@butterflyx
Copy link
Author

@iojw : missed this notification as well, sorry!

Yes, this seems an error due to local restrictions of Instagram.
I'm in the EU as well and still get the same error.
Using a VPN to get an IP within the US solves this issue for me.

Maybe worth noticing.

@iojw
Copy link
Owner

iojw commented May 6, 2020

@butterflyx Oh I see, thanks for checking it out. I’d like to keep this issue open to fix this when I get time. In the meantime, you’ll might have to use to use a VPN to get around this @herecomesharis.

@iojw iojw reopened this May 6, 2020
@herecomesharis
Copy link

@butterflyx @iojw
Thank you both for your assistance. Will try it out and hope it works.

@iojw iojw added the bug Something isn't working label May 18, 2020
@manawenuz
Copy link

I'm facing the same issue, tried it on my few servers, (all in europe, and i'm also in caucuses), but it worked on one of my servers, which is in middle east.
thanks

@iojw
Copy link
Owner

iojw commented Oct 30, 2020

If one of you could run the latest version of socialscan (1.4.0) with the --debug flag and provide the output, it would make it easier to debug this problem.

@manawenuz
Copy link

i installed it using pip, so i was on 1.3.0, upgraded it from github to 1.4.1, and it works here now.

@iojw
Copy link
Owner

iojw commented Oct 31, 2020

@manawenuz I didn't change anything about the code so look like something changed on Instagram's end that fixed it.

@iojw
Copy link
Owner

iojw commented Nov 2, 2020

Going to close this for now as it appears to be fixed, do let me know if this issue still occurs for Instagram by providing debug output.

@iojw iojw closed this as completed Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants