PyChatGPT icon indicating copy to clipboard operation
PyChatGPT copied to clipboard

[OpenAI][4] IndexError: list index out of range

Open cced3000 opened this issue 2 years ago • 27 comments

openai.py", line 211, in _part_four state = re.findall(r"state=(.*)", response.text)[0] IndexError: list index out of range

I've tried many times retry the request 。

I have tried to use proxy or not, the same error.

cced3000 avatar Dec 07 '22 14:12 cced3000

You may be rate limited by Auth0. Could you try using a different account?

rawandahmad698 avatar Dec 07 '22 14:12 rawandahmad698

@rawandahmad698 It seems to be a common error. There are a lot of people experiencing this on my side as well, myself included

acheong08 avatar Dec 07 '22 15:12 acheong08

The response is blank

acheong08 avatar Dec 07 '22 15:12 acheong08

Interesting. I will go over the process.

rawandahmad698 avatar Dec 07 '22 15:12 rawandahmad698

It seems to be an issue on their side. The response code is correct but nothing is returned. I think their service is temporarily down (auth)

acheong08 avatar Dec 07 '22 15:12 acheong08

It seems to be an issue on their side. The response code is correct but nothing is returned. I think their service is temporarily down (auth)

I agree, I've used a proxy or created a different account, but I can't log in normally either.

KohnoseLami avatar Dec 07 '22 15:12 KohnoseLami

After changing accounts and proxy and waiting a while, can sometimes goto Phase 8.

openai.py", line 359, in _part_eight
    raise Exceptions.Auth0Exception("[OpenAI][8] While most of the process was successful, "
pychatgpt.classes.exceptions.Auth0Exception: [OpenAI][8] While most of the process was successful, Auth0 didn't issue an access token, Use proxies or retry.

MirrorCY avatar Dec 07 '22 15:12 MirrorCY

Valid auth tokens are also not getting a response. They are down

acheong08 avatar Dec 07 '22 15:12 acheong08

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta content='text/html; charset=utf-8' http-equiv='content-type'/><style type='text/css'>body {font-family:Arial; margin-left:40px; }img  { border:0 none; }#content { margin-left: auto; margin-right: auto }#message h2 { font-size: 20px; font-weight: normal; color: #000000; margin: 34px 0px 0px 0px }#message p  { font-size: 13px; color: #000000; margin: 7px 0px 0px0px}#errorref { font-size: 11px; color: #737373; margin-top: 41px }</style><title>Service unavailable</title></head><body><div id='content'><div id='message'><h2>Our services aren't available right now</h2><p>We're working to restore all services as soon as possible. Please check back soon.</p></div><div id='errorref'><span>0m66QYwAAAACPkK4lk1D/TKtD2BBYPextU0pDRURHRTA1MTUAZTY2YjhiMDMtMDc5My00NDA5LTk3NzMtMmU2MTJlNzFhMWUz</span></div></div></body></html>

acheong08 avatar Dec 07 '22 15:12 acheong08

Confirmed, I'm having this issue too

rawandahmad698 avatar Dec 07 '22 15:12 rawandahmad698

yes,i have

olyble avatar Dec 07 '22 15:12 olyble

Getting the same error too

cesarhuret avatar Dec 07 '22 15:12 cesarhuret

Fortunately, I have encountered this problem.

But I tried it again and it worked again. Perhaps this is a probabilistic problem?

2659170494 avatar Dec 07 '22 15:12 2659170494

After I tried again, it failed again

I tried to log in on the website, but then I found that I could not log in and I was stuck in the link: https://chat.openai.com/auth/login?callbackUrl=https%3A%2F%2Fchat.openai.com%2F&error=OAuthSignin

This may be a problem with the server

2659170494 avatar Dec 07 '22 15:12 2659170494

Update

looks like this is an issue with their servers, I constantly get 5xx errors. Sometimes I can't even login using a browser.

rawandahmad698 avatar Dec 07 '22 16:12 rawandahmad698

It has been fixed up to part seven. AccessToken authentication already back up

acheong08 avatar Dec 07 '22 16:12 acheong08

It's back down

acheong08 avatar Dec 07 '22 16:12 acheong08

It's back up again. Very unreliable

acheong08 avatar Dec 07 '22 16:12 acheong08

That's Azure for you, So much for the "best IaaS" out there. This would have never happened if they chose AWS lol, On a side note: they grew from a thousand to a Million in a day, and that was 3-4 days ago.

rawandahmad698 avatar Dec 07 '22 16:12 rawandahmad698

😂😂😂

2659170494 avatar Dec 07 '22 16:12 2659170494

I've used Azure as well. It sucks.

I still prefer Microsoft to Amazon any day though. AWS risky. Sometimes the buckets just somehow scale up and cost you a ton

acheong08 avatar Dec 07 '22 16:12 acheong08

@acheong08 happens only if you're inexperienced, and go around enabling/creating tons of resources, with all due respect. I manage two AWS accounts and I never had billing issue

To outline, I'm 2X certified, and currently a Community Builder for AWS

rawandahmad698 avatar Dec 07 '22 16:12 rawandahmad698

True. I am still a student/intern and have no experience

acheong08 avatar Dec 07 '22 16:12 acheong08

I've been able to get it working with accessToken reliably. Logging in via email/password still down though

Edit: Doesn't work anymore but can authenticate with email/password now...

acheong08 avatar Dec 07 '22 16:12 acheong08

​It works now :rocket:

MirrorCY avatar Dec 07 '22 17:12 MirrorCY

Getting a lot of 503 errors, must be OpenAI servers. A sample in readme to refresh token might be helpful

dylanbud avatar Dec 07 '22 17:12 dylanbud

Update 2:

As per https://discord.gg/openai -- the servers are currently down

image

rawandahmad698 avatar Dec 07 '22 17:12 rawandahmad698

Update 3:

Looks like everything is back on, Including token regeneration.

[OpenAI][9] Saving access token...
[OpenAI][8] Saved access token
Hello there! It's nice to meet you. Is there something on your mind that you would like to talk about? I'm here to help answer any questions you might have.

As for the issue, I'll update the package and include better errors and a few new things

rawandahmad698 avatar Dec 07 '22 20:12 rawandahmad698