-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[BUG] Can't login | Cloudflare protection #261
Comments
I'm also seeing the same error - getting a 403 back |
I am seeing the same error as well. |
It will be difficult to bypass this, TBH. |
same here |
Same issue here. |
same here |
Probably not super helpful but same here |
Seeing the same issue. Is this something that could be bypassed using FlareSolverr? |
I am working on this |
This is the response: <html lang="en-US">
<head>
<title>Just a moment...</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="robots" content="noindex,nofollow">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="/cdn-cgi/styles/challenges.css" rel="stylesheet">
</head>
<body class="no-js">
<div class="main-wrapper" role="main">
<div class="main-content">
<h1 class="zone-name-title h1">
<img class="heading-favicon" src="/favicon.ico"
onerror="this.onerror=null;this.parentNode.removeChild(this)">
chat.openai.com
</h1>
<h2 class="h2" id="challenge-running">
Checking if the site connection is secure
</h2>
<noscript>
<div id="challenge-error-title">
<div class="h2">
<span class="icon-wrapper">
<div class="heading-icon warning-icon"></div>
</span>
<span id="challenge-error-text">
Enable JavaScript and cookies to continue
</span>
</div>
</div>
</noscript>
<div id="trk_jschal_js" style="display:none;background-image:url('/cdn-cgi/images/trace/managed/nojs/transparent.gif?ray=77823f748f39c5a0')"></div>
<div id="challenge-body-text" class="core-msg spacer">
chat.openai.com needs to review the security of your connection before proceeding.
</div>
<form id="challenge-form" action="/auth/login?__cf_chl_f_tk=YcrSC6GxLdFJV3nDQnB94iOY874kZRHn7xo.qxkz0ik-1670803940-0-gaNycGzNB2U" method="POST" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="md" value="neq8DhZscgOk9ZqTwAD01JFh9zb97x2wAxRY.AXXQZA-1670803940-0-ARsRYvxWGameB3Ago3KgmFO6sj1qc8uTru2TF6WetlBz22SNZXPxN1ww_9-tpkuzLjKUrYnZYELy7IK3lVMZVfyOoXUJdGnpR6bSjqPQXhpDdDzASo-ZuLx13VmjwGm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ySy4tZ/UAYT4UFAvY/9u0wlvgvPsbk6Nn7lBi97UH6sjsNtQErJ/Dr9nYzEgXkcZ5/zTUVrH[370](https://github.com/acheong08/ChatGPT/actions/runs/3671477743/jobs/6206722710#step:6:371)57Jsqw4JfxOQSCrKMUdIRvMrUpuU9RL7/iIL9Ueq5biuqN6scDRyfpkHiiYKo5jBLO7qMNtZ0LraijOdccc6StyzlT5njjAxIKeDeuN9p8ni1MvTvcCe8kVGk/oB71IThCeaqNaKLCV8rMuEMqldEEujykA3KREeZVA+AOp2A5o5nkuTTfMluaFzu34TspGeIKeCKi5DxNo2Gu2xxlAgtlyECZLR7iV8c9uij64tSui6iFL6Mu">
</form>
</div>
</div>
<script>
(function(){
window._cf_chl_opt={
cvId: '2',
cType: 'managed',
cNounce: '44898',
cRay: '77823f748f39c5a0',
cHash: '8065dd636c78e94',
cUPMDTk: "\/auth\/login?__cf_chl_tk=YcrSC6GxLdFJV3nDQnB94iOY874kZRHn7xo.qxkz0ik-1670803940-0-gaNycGzNB2U",
cFPWv: 'b',
cTTimeMs: '1000',
cTplV: 4,
cTplB: 'cf',
cRq: {
ru: 'aHR0cHM6Ly9jaGF0Lm9wZW5haS5jb20vY2hhdC9mcm9udGVuZC8vYXV0aC9sb2dpbg==',
ra: 'TW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTVfNykgQXBwbGVXZWJLaXQvNjA1LjEuMTUgKEtIVE1MLCBsaWtlIEdlY2tvKSBWZXJzaW9uLzE2LjEgU2FmYXJpLzYwNS4xLjE1',
rm: 'R0VU',
d: 'dsUV9dwI9ro5QyqrDDJx/y8V40XDndYGV9bLeu9FXdka0oXjwlIjPJeTAb62GWVUaZBIb8zuMXsl2aQUl9nim/RvwcAjF2GRfcbjTblZQk+kdCNJ9LVXCaxT7P0UK7t4wD1CXQTKPkUIuNpAjkQcVYovpTbJeRCLx/2SgDEUE/jKwD5ywFgMv2XMEh6L+Jty5ZZoGQ+vKXwtq2IgXmnyfq95ZyDWzApjUD9lvrXqwA+SUtgBJ8NmE/CwmblMW8bsFHEN0L78Sl9IBkxjlHqgHUFlOxbKwI+4slnjZ7poRcwfBFQ0WRVG+sLUVxNphh6s9pZBD3UWEyj5wuSu86UX6CXQKjtsl6fVFAyF25a/HQINNZppzxCyk2pje06P1fD66wfE5mlKT72aWbAvkfzCOn/X41k6/yNio5YxxI3bCnGnM0aYgwY/4x8R8SDRZRQt8JmnPSZO+O1Zr24PzPkBfvCyYvHnNiA21KtTnATDdx8zi4WRnkz5HoF2x9RwVUj6Q0/xC3V31lzkgdTw3lW+daORJDtsl1W3QLV8JSmnEfg9ZQ7ai5ofIHPyA19jcMsy9rQ64bTpn31Y7tIno2kCn5S9ER8EJr64kL4XEKEbQUCDv+P5ImupUQBNyAaceO9e',
t: 'MTY3MDgwMzk0MC41NzQwMDA=',
m: '7Lx9YJ/uJ/1Rg0ZT5arYdwR4kn/s/tT0mBDT+sn5T4Y=',
i1: 'MUxuc2VFZXTkaQ6kBzJ0Lw==',
i2: 'pU5AjHJ1/ZnqMxuNQUy35g==',
zh: 'iuyN59AGNgeBFFEOPj72EN+xtBfXXvoCyd1dJnIVFAc=',
uh: 'cm2wjUr6M+ZSWJGGpQRwl8TWzcHP0274MxfQYzAQXGE=',
hh: 'foaWmAUHGGlVCZaNUJIHhxzxFNzSPNnVe6rJjiQw728=',
}
};
var trkjs = document.createElement('img');
trkjs.setAttribute('src', '/cdn-cgi/images/trace/managed/js/transparent.gif?ray=77823f748f39c5a0');
trkjs.setAttribute('style', 'display: none');
document.body.appendChild(trkjs);
var cpo = document.createElement('script');
cpo.src = '/cdn-cgi/challenge-platform/h/b/orchestrate/managed/v1?ray=77823f748f39c5a0';
window._cf_chl_opt.cOgUHash = location.hash === '' && location.href.indexOf('#') !== -1 ? '#' : location.hash;
window._cf_chl_opt.cOgUQuery = location.search === '' && location.href.slice(0, -window._cf_chl_opt.cOgUHash.length).indexOf('?') !== -1 ? '?' : location.search;
if (window.history && window.history.replaceState) {
var ogU = location.pathname + window._cf_chl_opt.cOgUQuery + window._cf_chl_opt.cOgUHash;
history.replaceState(null, null, "\/auth\/login?__cf_chl_rt_tk=YcrSC6GxLdFJV3nDQnB94iOY874kZRHn7xo.qxkz0ik-1670803940-0-gaNycGzNB2U" + window._cf_chl_opt.cOgUHash);
cpo.onload = function() {
history.replaceState(null, null, ogU);
};
}
document.getElementsByTagName('head')[0].appendChild(cpo);
}());
</script>
<div class="footer" role="contentinfo">
<div class="footer-inner">
<div class="clearfix diagnostic-wrapper">
<div class="ray-id">Ray ID: <code>77823f748f39c5a0</code></div>
</div>
<div class="text-center">Performance & security by <a rel="noopener noreferrer" href="https://www.cloudflare.com?utm_source=challenge&utm_campaign=m" target="_blank">Cloudflare</a></div>
</div>
</div>
</body>
</html> I will check if there is a way to solve it |
same error |
does this have to do with chatGPT using cloudflare now? |
see title. yes |
Looks like the underlying openAI auth is not working with sync_playwright() as p:
browser = p.chromium.launch(headless=False)
page = browser.new_page()
sync_stealth(page, pure=True)
page.goto('https://chat.openai.com/auth/login')
res = sync_cf_retry(page)
if res:
cookies = page.context.cookies()
for cookie in cookies:
if cookie.get('name') == 'cf_clearance':
cf_clearance_value = cookie.get('value')
print(cf_clearance_value)
ua = page.evaluate('() => {return navigator.userAgent}')
print(ua)
else:
print("cf challenge fail")
browser.close() try to bypass it, but have some other issues too. |
it was broken by cloudflare....... |
I am fixing. please wait |
It doesn't matter, you can always launch a browser and then simulate the traffic to the openAI, there is no way to block it. |
The point here is to use their API. A browser is too heavy |
As you think, selenium is disgusting to use |
For reference, the |
You could maybe try using cloudscraper. I'm not sure if it works atm https://pypi.org/project/cloudscraper/ |
Sharing some of my WIP attempts at resolving the issue: transitive-bullshit/agentic#99 - attempting to more closely match the official HTTP requests |
I do have an account to test it if the maintainer wants to try, |
In Centos Server, follow the wiki : https://github.com/acheong08/ChatGPT/wiki/Setup what's wrong ? Or I should pip install a specific version ? |
I use 0.0.42.2 and playwright,the browser page still appears repeatedly and the program cannot be used |
Make sure you have Chrome installed. |
This could be an environment issue. Try running outside of a virtual environment. |
Try https://github.com/acheong08/ChatGPT/releases/tag/0.0.43 |
I am using the latest version of macOS and have the same problem |
Seems like a bug with playwright. Ask around in https://github.com/microsoft/playwright/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc |
In Ubuntu(desktop),there is the error :”expected str, bytes or os.PathLike object, not NoneType “ ,why,thanks。 |
Update to the latest version and delete |
Debugger enabled on OpenAIAuth Unlimited restart in chrome,please ,thanks |
This is probably a proxy issue. Ask around the #中文 community on our discord |
yesterday, I was able to take the cf_clearance cookie and use it without a browser |
same, can login in chrome with empty config, but once login, it will restart chrome all again |
Does anyone know when this will be able to work? https://gpt.chatapi.art/ |
might be off topic tho, I am kinda new here |
It will most likely never work again due to Cloudflare protections unless it becomes a paid service (it is expensive to bypass cloudflare) |
is there would be anything, that is similar to that? |
*if there won't be, then is there any way to get virtual phone number, that will work for open ai, to sign in? |
Not yet. I heard that @rawandahmad698 is working on something similar though. |
我去了马来西亚买电话然后在会了中国。。。 There is no easy way. There are many options online but they're not exactly trustworthy. |
I'm not sure if this is causation or just correlation, but I was asking ChatGPT to summarize book excerpts from Brené Brown, and I got multiple |
Describe the bug
I'm not able to login.
To Reproduce
Steps to reproduce the behavior:
API Error
at startException: Wrong response code
at startExpected behavior
Be able to access the website as normal.
Output
Using session token:
Using email/password:
Environment (please complete the following information):
Please update your packages before reporting!
pip3 install --upgrade OpenAIAuth revChatGPT
Additional context
I saw that they applied Cloudflare on the website, and there are more cookies than before:
If I delete the cookie
cf_clearance
, the next time I reload the website I will get theCloudflare is verifying your connection
page, otherwise, it will not show.The text was updated successfully, but these errors were encountered: