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

[BUG] Error in pass_verification, the service not load... #34

Closed
isMMa opened this issue Sep 24, 2023 · 11 comments
Closed

[BUG] Error in pass_verification, the service not load... #34

isMMa opened this issue Sep 24, 2023 · 11 comments

Comments

@isMMa
Copy link

isMMa commented Sep 24, 2023

Traceback (most recent call last):
File "code.py", line 18, in
chatgpt = ChatGPT_Client(OPENAI_EMAIL, OPENAI_PASSWORD)
File "/usr/local/lib/python3.8/site-packages/chatgpt_automation/chatgpt_client.py", line 105, in init
self.pass_verification()
File "/usr/local/lib/python3.8/site-packages/chatgpt_automation/chatgpt_client.py", line 146, in pass_verification
verify_button[0].click()
File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 93, in click
self._execute(Command.CLICK_ELEMENT)
File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webelement.py", line 394, in _execute
return self._parent.execute(command, params)
File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 344, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: stale element not found
(Session info: chrome=117.0.5938.92); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#stale-element-reference-exception
Stacktrace:
#0 0x56149368c6b3
#1 0x5614933621e7
#2 0x56149336ff09
#3 0x561493367644
#4 0x56149336625b
#5 0x5614933689c0
#6 0x561493368a7c
#7 0x5614933aae19
#8 0x56149339f451
#9 0x5614933cb0c2
#10 0x56149339ef16
#11 0x5614933cb28e
#12 0x5614933e4322
#13 0x5614933cae93
#14 0x56149339d934
#15 0x56149339e71e
#16 0x561493651cb8
#17 0x561493655bf0
#18 0x56149366019c
#19 0x561493656808
#20 0x56149362327f
#21 0x56149367ae88
#22 0x56149367b059
#23 0x56149368b843
#24 0x7ff5b955c044

@StolenGalaxy
Copy link

Was this a temporary issue or does it still happen?

@isMMa
Copy link
Author

isMMa commented Sep 24, 2023

Now its still happen, not work since 1 day ago... and now its not working.

@StolenGalaxy
Copy link

Maybe try adding a catch: except Exceptions.StaleElementReferenceException: logging.info('Verification button went stale') to pass_verification and see if it persists

@isMMa
Copy link
Author

isMMa commented Sep 25, 2023

Client is trying to connect for 30 minutes and no progress in ChatGPT_Client(EMAIL,PASS)

It never connects

I haven't been able to use it for 2 days. On different computers, with different accounts and in a Docker environment.

@isMMa
Copy link
Author

isMMa commented Sep 25, 2023

Error:

File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element

is not clickable at point (150, 32). Other element would receive the click:
...

(Session info: chrome=117.0.5938.92)

@isMMa
Copy link
Author

isMMa commented Sep 28, 2023

Using verbose:

2023/09/28 21:46:06 INFO Verbose mode active
2023/09/28 21:46:06 INFO Loading undetected Chrome
2023/09/28 21:46:07 INFO patching driver executable /root/.local/share/undetected_chromedriver/undetected_chromedriver
2023/09/28 21:46:08 INFO Loaded Undetected chrome
2023/09/28 21:46:08 INFO Opening chatgpt
2023/09/28 21:46:09 INFO Verification button is not present or clickable
2023/09/28 21:46:10 INFO Clicked verification button
2023/09/28 21:46:11 INFO Clicked verification button
2023/09/28 21:46:12 INFO Clicked verification button
2023/09/28 21:46:13 INFO Clicked verification button
2023/09/28 21:46:15 INFO Clicked verification button
2023/09/28 21:46:16 INFO Clicked verification button
2023/09/28 21:46:17 INFO Clicked verification button
2023/09/28 21:46:18 INFO Clicked verification button
2023/09/28 21:46:19 INFO Clicked verification button
2023/09/28 21:46:20 INFO Clicked verification button
2023/09/28 21:46:21 INFO Clicked verification button
2023/09/28 21:46:22 INFO Clicked verification button

And infinite...

@isMMa isMMa changed the title Error in pass_verification, the service not load... [BUG] Error in pass_verification, the service not load... Sep 28, 2023
@isMMa
Copy link
Author

isMMa commented Oct 1, 2023

Any idea? please need help!

@ugorsahin
Copy link
Owner

Yes, it seems Cloudflare won't let you pass the verification. It is probably IP-based detection. There is no easy solution for this problem and it is not related to the this repository.

@isMMa
Copy link
Author

isMMa commented Oct 4, 2023

It is strange since the same thing happens to me with another IP and also if I log in with the browser it works perfectly.

@isMMa
Copy link
Author

isMMa commented Oct 5, 2023

Ok, I'm done seeing the problem. It is not a Cloudflare block. It is an incompatibility between the latest version of chrome 117 and chrome undetected:

My last code (install chrome 117):

RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN apt install ./google-chrome-stable_current_amd64.deb -y

And my new code:

COPY chrome/chrome_114_amd64.deb /tmp/
RUN ls 
#Instalar
RUN apt install /tmp/chrome_114_amd64.deb -y

Now its works using chrome 114!!

@ugorsahin
Copy link
Owner

2023/09/28 21:46:10 INFO Clicked verification button
2023/09/28 21:46:11 INFO Clicked verification button
2023/09/28 21:46:12 INFO Clicked verification button
2023/09/28 21:46:13 INFO Clicked verification button
2023/09/28 21:46:15 INFO Clicked verification button
2023/09/28 21:46:16 INFO Clicked verification button
2023/09/28 21:46:17 INFO Clicked verification button
2023/09/28 21:46:18 INFO Clicked verification button
2023/09/28 21:46:19 INFO Clicked verification button
2023/09/28 21:46:20 INFO Clicked verification button
2023/09/28 21:46:21 INFO Clicked verification button
2023/09/28 21:46:22 INFO Clicked verification button

This input shows that the undetected-chrome has already hooked the client, although current version of undetected-chrome may not be compatible with the chrome-117. I'm happy that you solved the problem.

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

3 participants