sydney.py icon indicating copy to clipboard operation
sydney.py copied to clipboard

"Solve CAPTCHA to continue" Issue.

Open sonugit0607 opened this issue 9 months ago • 21 comments

I have been using Sydney since a while, and recently in the past week all of a sudden I'm facing "Solve CAPTCHA to continue" issue continuously, whether I clear my cookies and cache. Also tried adding the Copilot cookies in the code itself as mentioned in the Pypi Documentation still didn't work for me. Please help me with this issue, Thanks in advance.

Screenshot 2024-05-09 144346

sonugit0607 avatar May 09 '24 09:05 sonugit0607

@vsakkas have a look into it!, it would solve me a big problem if I get any solution. due to this one of my project is on hold🥲.

sonugit0607 avatar May 09 '24 09:05 sonugit0607

Hi @sonugit0607

Sorry, I have been inactive for quite some time now (been busy moving to another country!), but this seems quite important. I will try to take a look at all the open issues on the repo, including this one, in the next few days :)

vsakkas avatar May 09 '24 09:05 vsakkas

thanks!

sonugit0607 avatar May 09 '24 09:05 sonugit0607

easy question. You need to manually go to copilot website and start one conversation. and then microsoft bing will verify your identity, after verification, you can use the python copilot.

usun1997 avatar May 10 '24 08:05 usun1997

tried multiple times, didn't work.

sonugit0607 avatar May 10 '24 08:05 sonugit0607

tried multiple times, didn't work.

It can’t be possible! First, ensure that the cookie you are using corresponds exactly to the Copilot account you are currently logged into. Sometimes, you might log into account A but use a cookie for account B, and your web browser has not yet updated to show that you are logged into account A. It can fool you. Secondly, the only reason the ‘Solve CAPTCHA to continue’ message appears is that Microsoft Bing sometimes activates a system check to confirm if you are a ‘human.’ This can interrupt the Python Bing chat. I simply go to the website, send a question to Bing AI, and a box appears stating that it is verifying something. After this process, I am good to go.

usun1997 avatar May 10 '24 09:05 usun1997

it's not happening in my case, I'm using the same accounts cookies to which I have logged in. and also I don't see any box appears saying "Verifying".

sonugit0607 avatar May 10 '24 09:05 sonugit0607

so you are able to manually chat with copilot in many rounds on the web, and there is no box comming out to let you click "confirmed" something like that? theoretically, if you can chat on the web then your python copilot is supposed to work. If you still encounter this issue, I think it is because you account is banned by microsoft for some reason (but I don't believe it). You can test it by creating a new account and see whether python copilot works again.

usun1997 avatar May 10 '24 09:05 usun1997

Actually it's my work profile, not personal.

sonugit0607 avatar May 10 '24 11:05 sonugit0607

Hi @sonugit0607 I haven't been able to reproduce this issue unfortunately. I've released a couple minor updates to the sydney package, so please update to the latest version (although I don't think that will change anything)

Besides that, it is possible that your account or IP address has been blocked. Can you reproduce this issue with a different account or with a different IP or on a different machine?

vsakkas avatar May 11 '24 11:05 vsakkas

Hi @vsakkas In the same device I have tried with multiple accounts as well, getting same issue. Not sure what's causing this.

sonugit0607 avatar May 13 '24 04:05 sonugit0607

yup, can confirm this, i got this weird solve captcha to continue even if i already try to change the cookies and everything

RexsyBima avatar May 14 '24 10:05 RexsyBima

Similar issue faced by my team too

ammar-n-abbas avatar May 14 '24 13:05 ammar-n-abbas

Hey an update here, i manage to get it to working again by changing to other microsoft account, it seems they block my account for interacting with sydney py too many times, i hope the blocking is temporary

RexsyBima avatar May 16 '24 15:05 RexsyBima

To summarize what I've read so far, here's a few things to try:

  • Get new cookies
  • Use a different account
  • Use a different machine
  • Use a different account and machine

It is possible that either the IP or the machine have gotten blocked from high usage of the API.

Also, if you're using a proxy, keep in mind that currently proxy support is.. not the best. I will if I can do something about it during this weekend.

vsakkas avatar May 18 '24 10:05 vsakkas

I also encountered the same situation. But after updating the cookie value, it works again (without CAPTCHA)!

mizrits avatar Jun 11 '24 08:06 mizrits

I'm getting the same issue and I have tried changing the cookies and tried a different machine.

mrkami1 avatar Jul 01 '24 05:07 mrkami1

To summarize what I've read so far, here's a few things to try:

* Get new cookies

* Use a different account

* Use a different machine

* Use a different account **and** machine

It is possible that either the IP or the machine have gotten blocked from high usage of the API.

Also, if you're using a proxy, keep in mind that currently proxy support is.. not the best. I will if I can do something about it during this weekend.

Another thing that I didn't mention is that you need to send a message to Copilot on the website itself so that you can verify that you're a human. Usually this shows up on the first message, but after testing, it seems that lately it can also show up on the second message.

vsakkas avatar Jul 01 '24 19:07 vsakkas

I'm getting the same issue and I have tried changing the cookies and tried a different machine.

I've now gotten it to work. I was previously using the cookies from Firefox and now tried cookies from Edge and it works fine.

mrkami1 avatar Jul 01 '24 19:07 mrkami1

Maybe the retrieved cookies from Firefox aren't working due to the user headers emulation in the constants.py file (the CREATE_HEADERS constant). I believe that if you replace the CREATE_HEADERS constant with the same headers you used in the request to retrieve your cookies on Firefox, it may work!

Luneye avatar Jul 06 '24 15:07 Luneye

Actually, it's documented. You just need to open bing copilot, click new conversation, and send a simple hi, when the verification is ok, you can go to command line. The verification process is short, may difficult to do a screenshot.

[!IMPORTANT] For regions where a cookie is required, it is recommended to manually write messages to Copilot until a box containing a Verifying message appears, which should then switch to a Success! message. Without this step, it is possible that Sydney.py will fail with a CaptchaChallenge error.

guhuajun avatar Sep 10 '24 07:09 guhuajun

Hi all,

I've released version 0.23.0! Take a look and see if it fixes the issue. It still relies on the old API, which is also used here: https://edgeservices.bing.com/edgesvc/chat

vsakkas avatar Jan 17 '25 16:01 vsakkas