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

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

Closed
cced3000 opened this issue Dec 7, 2022 · 28 comments
Closed

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

cced3000 opened this issue Dec 7, 2022 · 28 comments

Comments

@cced3000
Copy link

cced3000 commented Dec 7, 2022

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.

@rawandahmad698
Copy link
Owner

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

@acheong08
Copy link

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

@acheong08
Copy link

The response is blank

@rawandahmad698
Copy link
Owner

Interesting. I will go over the process.

@acheong08
Copy link

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)

@KohnoseLami
Copy link

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.

@MirrorCY
Copy link

MirrorCY commented Dec 7, 2022

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.

@acheong08
Copy link

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

@acheong08
Copy link

<!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>

@rawandahmad698 rawandahmad698 pinned this issue Dec 7, 2022
@rawandahmad698 rawandahmad698 changed the title openai.py", line 211, in _part_four state = re.findall(r"state=(.*)", response.text)[0] IndexError: list index out of range [OpenAI][4] IndexError: list index out of range Dec 7, 2022
@rawandahmad698
Copy link
Owner

Confirmed, I'm having this issue too

@olyble
Copy link

olyble commented Dec 7, 2022

yes,i have

@cesarhuret
Copy link

Getting the same error too

@2659170494
Copy link

Fortunately, I have encountered this problem.

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

@2659170494
Copy link

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

@rawandahmad698
Copy link
Owner

Update

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

@acheong08
Copy link

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

@acheong08
Copy link

It's back down

@acheong08
Copy link

It's back up again. Very unreliable

@rawandahmad698
Copy link
Owner

rawandahmad698 commented Dec 7, 2022

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.

@2659170494
Copy link

😂😂😂

@acheong08
Copy link

acheong08 commented Dec 7, 2022

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

@rawandahmad698
Copy link
Owner

rawandahmad698 commented Dec 7, 2022

@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

@acheong08
Copy link

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

@acheong08
Copy link

acheong08 commented Dec 7, 2022

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...

@MirrorCY
Copy link

MirrorCY commented Dec 7, 2022

​It works now 🚀

@dylanbud
Copy link

dylanbud commented Dec 7, 2022

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

@rawandahmad698
Copy link
Owner

rawandahmad698 commented Dec 7, 2022

Update 2:

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

image

@rawandahmad698
Copy link
Owner

rawandahmad698 commented Dec 7, 2022

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 rawandahmad698 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2022
@rawandahmad698 rawandahmad698 reopened this Dec 8, 2022
@rawandahmad698 rawandahmad698 unpinned this issue Dec 8, 2022
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

9 participants