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

{"_action":"_ask","error":"an error occurred HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001F52CF32190>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')))","success":false} #79

Open
xinoxme opened this issue May 1, 2023 · 23 comments

Comments

@xinoxme
Copy link

xinoxme commented May 1, 2023

No description provided.

@xinoxme
Copy link
Author

xinoxme commented May 1, 2023

Screenshot (1145)

@maxens-git
Copy link

I have the same message error

@neildmd
Copy link

neildmd commented May 1, 2023

I have almost the identical error.

{"_action":"_ask","error":"an error occurred HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f943d6ae970>: Failed to establish a new connection: [Errno 111] Connection refused')))","success":false}

The default config.json contains this section:

"openai_api_base": "https://api.openai.com", "proxy": { "enable": true, "http": "127.0.0.1:7890", "https": "127.0.0.1:7890" }

It looks like it's expecting a proxy to be running locally on port 7890. I tried setting the enable option to false but I still get the error above.

@metadreamx
Copy link

Getting the same error, have not seen any feed back on this error so far.

@jp7189
Copy link

jp7189 commented May 1, 2023

Same here.

{"_action":"_ask","error":"an error occurred HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000020E2C832C50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')))","success":false}

@chekamarue
Copy link

edit config.json and enter api key !
set False for proxy

@jp7189
Copy link

jp7189 commented May 1, 2023

api key was already in there.
I set proxy to false, but that gets me:
"I apologize, but it seems that I am having difficulty connecting to the OpenAI server. Please check your internet connection and try again later."

..and in the console:
"
list index out of range
None
- - [01/May/2023 15:13:59] "POST /backend-api/v2/conversation HTTP/1.1" 200 -
list index out of range
None
list index out of range
None
list index out of range
None
list index out of range
None
Expecting value: line 1 column 2 (char 1)
<traceback object at 0x000002077DD0D040>
list index out of range
None
"

@jp7189
Copy link

jp7189 commented May 1, 2023

Following up... I cleared all conversations in the web gui and it's working properly now.
Thanks for the help.
The fix: set the proxy false in config.json
"proxy": {
"enable": false,

@MortiMer0101
Copy link

When I ask something, it never answers me. Any help?

@xinoxme
Copy link
Author

xinoxme commented May 2, 2023

edit config.json and enter api key ! set False for proxy

it did not work

@metadreamx
Copy link

Yeah same, I think I was under the impression there was some kind of reversed engendered api that I. Wouldn't need to use my own. This you need an api key.

@jp7189
Copy link

jp7189 commented May 2, 2023

Check out the author's other project - gpt4free - that's the reverse engineered API. This isn't that.

@jp7189
Copy link

jp7189 commented May 2, 2023

edit config.json and enter api key ! set False for proxy

it did not work

I had to restart the script, restart the browser, and clear all conversations to get it working after the changes.

@xinoxme
Copy link
Author

xinoxme commented May 4, 2023

edit config.json and enter api key ! set False for proxy

it did not work

I had to restart the script, restart the browser, and clear all conversations to get it working after the changes.

did it work?

@luisf371
Copy link

luisf371 commented May 4, 2023

Because of the way docker works, the config.json is burned INTO the image when you first build it, you can create a hard link between your local config.json and the one inside the docker image, or you can re-build the image with the update config.json with the steps below.

1) docker-compose down
2) make changes to config.json (nano config.json)
3) docker-compose up -d --build

-d starts it in daemon mode (background) and --build forces to rebuild the image with any updated files.

@jp7189
Copy link

jp7189 commented May 4, 2023

edit config.json and enter api key ! set False for proxy

it did not work

I had to restart the script, restart the browser, and clear all conversations to get it working after the changes.

did it work?

Yes. It worked fine... two days ago. When I tried it today (with no changes) I don't get any response at all. No errors, it just sticks on generating forever.

@duringleaves
Copy link

See the same problem. config.json looks fine, API key is good. cleared conversations, restarted script. no change.

@duringleaves
Copy link

set proxy: false and it works a little better now except the console shows a lot of "list index out of range" errors now. gpt-35-turbo works, but gpt-4 fails

@BarysevichDaminik
Copy link

after i changed true to false all modes stopped working

@Mario-119
Copy link

after i changed true to false all modes stopped working

Likewise in my case, I just get no response no matter if I use gpt-3.5 or gpt-4

@SidJnsn66
Copy link

Luisf371's comment on May 4 corrected the problem for me, after changing the proxy term to false in config.json. Thank you, I would have never figured that out!

xtekky added a commit that referenced this issue Sep 12, 2023
@fsantamaria1
Copy link
Contributor

If you have set the proxy to false and added the API key and it still doesn't work, then it could be an issue related to your OpenAI account since they only let you use the API for free for the first three months after account creation. Unfortunately, the only solution to that issue is adding a payment method here. Keep in mind that you can set usage limits here.

@GuoWei96
Copy link

Thank you for your open-source project. I have identified a bug
When the input content is too much, it will exceed the range of the input box

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