Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

[Bug]: api.openai.com is blocked in China #987

Closed
1 task done
hongyi-zhao opened this issue Mar 2, 2023 · 43 comments
Closed
1 task done

[Bug]: api.openai.com is blocked in China #987

hongyi-zhao opened this issue Mar 2, 2023 · 43 comments

Comments

@hongyi-zhao
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

$ git log -1
commit cf7369bf6ac26a3d1207e1994cf4bb96206892da (HEAD -> main, origin/main, origin/HEAD)
Author: Antonio Cheong <acheong@student.dalat.org>
Date:   Thu Mar 2 20:30:48 2023 +0800

    remove donation

$ python3 -m revChatGPT.V3 --api_key <sk-xxx>

    ChatGPT - Official ChatGPT API
    Repo: github.com/acheong08/ChatGPT
    
Type '!help' to show a full list of commands
Press Esc followed by Enter or Alt+Enter to send a message.


User: 
Hello.

ChatGPT: 
Traceback (most recent call last):
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connection.py", line 414, in connect
    self.sock = ssl_wrap_socket(
                ^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/3.11.1/lib/python3.11/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/3.11.1/lib/python3.11/ssl.py", line 1075, in _create
    self.do_handshake()
  File "/home/werner/.pyenv/versions/3.11.1/lib/python3.11/ssl.py", line 1346, in do_handshake
    self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/util/retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connection.py", line 414, in connect
    self.sock = ssl_wrap_socket(
                ^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/3.11.1/lib/python3.11/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/3.11.1/lib/python3.11/ssl.py", line 1075, in _create
    self.do_handshake()
  File "/home/werner/.pyenv/versions/3.11.1/lib/python3.11/ssl.py", line 1346, in do_handshake
    self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/werner/Public/repo/github.com/acheong08/ChatGPT.git/src/revChatGPT/V3.py", line 233, in <module>
    main()
  File "/home/werner/Public/repo/github.com/acheong08/ChatGPT.git/src/revChatGPT/V3.py", line 226, in main
    for response in chatbot.ask_stream(prompt, temperature=args.temperature):
  File "/home/werner/Public/repo/github.com/acheong08/ChatGPT.git/src/revChatGPT/V3.py", line 81, in ask_stream
    response = self.session.post(
               ^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/requests/sessions.py", line 635, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/requests/adapters.py", line 547, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

It should work normally.

Version where the problem happens

$ python3 -m pip show revChatGPT
Name: revChatGPT
Version: 3.0.5
Summary: ChatGPT is a reverse engineering of OpenAI's ChatGPT API
Home-page: https://github.com/acheong08/ChatGPT
Author: Antonio Cheong
Author-email: [email protected]
License: GNU General Public License v2.0
Location: /home/werner/Public/repo/github.com/acheong08/ChatGPT.git/src
Editable project location: /home/werner/Public/repo/github.com/acheong08/ChatGPT.git/src
Requires: asyncio, httpx, OpenAIAuth, prompt-toolkit, requests, tiktoken
Required-by: 

What Python version are you running this with?

No response

What is your operating system ?

No response

Command Line Arguments

See above.

Console logs

See above.

Additional information

No response

@acheong08
Copy link
Owner

OpenAI is now blocked in China. Use VPN or proxy.

@acheong08 acheong08 changed the title [Bug]: python3 -m revChatGPT.V3 --api_key <api-key> failed to work. [Bug]: api.openai.com is blocked in China Mar 2, 2023
@acheong08
Copy link
Owner

Screenshot from 2023-03-02 21-12-13
Screenshot from 2023-03-02 21-07-22
Screenshot from 2023-03-02 21-07-17

@acheong08
Copy link
Owner

I cannot fix this

@acheong08 acheong08 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 2, 2023
@acheong08 acheong08 pinned this issue Mar 2, 2023
@hongyi-zhao
Copy link
Author

hongyi-zhao commented Mar 2, 2023

The following method works:

$ proxychains-ng-socks5-country-control python3 -m revChatGPT.V3 --api_key sk-xxx

But there is no --proxy argument supported now:

$ python3 -m revChatGPT.V3 --api_key sk-xxx --proxy socks5h://127.0.0.1:18890

Why not add the --proxy parameter to it?

@Martinzz
Copy link

Martinzz commented Mar 2, 2023

Fuck!!!!

@acheong08
Copy link
Owner

export all_proxy=socks5://127.0.0.1:18890

@acheong08
Copy link
Owner

Just use environment variable

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Mar 2, 2023

Yes. I tried and found that only the following forms worked:

$ cmd="python3 -m revChatGPT.V3 --api_key sk-xxx"
$ https_proxy=http://127.0.0.1:8080 $cmd
$ all_proxy=http://127.0.0.1:8080 $cmd
$ all_proxy=socks5://127.0.0.1:18889 $cmd
$ all_proxy=socks5h://127.0.0.1:18889 $cmd

All other forms failed to work.

Basically, there are two categories of environment variable setting methods on terminal:

$ export var=val 
$ cmd_comes_here

or 

$ var=val cmd_comes_here

However, if python libraries are used, the options can be very rich, such as using the related packages below:

https://github.com/romis2012/python-socks
https://github.com/romis2012/aiohttp-socks
https://github.com/romis2012/httpx-socks
https://github.com/Anorov/PySocks

@m0ver
Copy link

m0ver commented Mar 3, 2023

I hope it's a temporary block.

@hongyi-zhao
Copy link
Author

The block will exist forever. It is better to seek a reasonable and efficient solution than to have such hope.

@freebr
Copy link

freebr commented Mar 3, 2023

I turned to use VPN and managed to overcome it.

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Mar 3, 2023

VPN or proxy is equivalent in solving this problem, but which is more appropriate may vary from person to person.

@FrederickChen
Copy link

FrederickChen commented Mar 4, 2023

On Windows 10 PowerShell:

1)$env:all_proxy="http://127.0.0.1:1080"  
2)$env:https_proxy="http://127.0.0.1:1080"   
  $env:https_proxy="http://127.0.0.1:1080"
3)$env:all_proxy="socks5://127.0.0.1:1080"  

Both of 1) and 2) works,but 3) fails,I can't fix out,it's tricky.

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Mar 4, 2023

For 3, your proxy must be a socks5 proxy in itself.

As I've commented here, all of my following uses succeeded:

$ cmd="python3 -m revChatGPT.V3 --api_key sk-xxx"
$ https_proxy=http://127.0.0.1:8080 $cmd
$ all_proxy=http://127.0.0.1:8080 $cmd
$ all_proxy=socks5://127.0.0.1:18889 $cmd
$ all_proxy=socks5h://127.0.0.1:18889 $cmd

@FrederickChen
Copy link

For 3, your proxy must be a socks5 proxy in itself.

As I've commented here, all of my following uses succeeded:

$ cmd="python3 -m revChatGPT.V3 --api_key sk-xxx"
$ https_proxy=http://127.0.0.1:8080 $cmd
$ all_proxy=http://127.0.0.1:8080 $cmd
$ all_proxy=socks5://127.0.0.1:18889 $cmd
$ all_proxy=socks5h://127.0.0.1:18889 $cmd

Of course it's socks5 proxy, actually it's on another port, doesn't work:
3)$env:all_proxy="socks5://127.0.0.1:1081"

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Mar 4, 2023

In my case, it works fine, as shown below:

werner@X10DAi:~$ curl -Ivx socks5h://127.0.0.1:18888 www.baidu.com
*   Trying 127.0.0.1:18888...
* SOCKS5 connect to www.baidu.com:80 (remotely resolved)
* SOCKS5 request granted.
* Connected to (nil) (127.0.0.1) port 18888 (#0)
> HEAD / HTTP/1.1
> Host: www.baidu.com
> User-Agent: curl/7.85.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Accept-Ranges: bytes
Accept-Ranges: bytes
< Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
< Connection: keep-alive
Connection: keep-alive
< Content-Length: 277
Content-Length: 277
< Content-Type: text/html
Content-Type: text/html
< Date: Sat, 04 Mar 2023 13:18:08 GMT
Date: Sat, 04 Mar 2023 13:18:08 GMT
< Etag: "575e1f6f-115"
Etag: "575e1f6f-115"
< Last-Modified: Mon, 13 Jun 2016 02:50:23 GMT
Last-Modified: Mon, 13 Jun 2016 02:50:23 GMT
< Pragma: no-cache
Pragma: no-cache
< Server: bfe/1.0.8.18
Server: bfe/1.0.8.18

< 
* Connection #0 to host (nil) left intact

# Use your own api key below:
(datasci) werner@X10DAi:~$ cmd="python3 -m revChatGPT.V3 --api_key sk-xxx"
(datasci) werner@X10DAi:~$ all_proxy=socks5://127.0.0.1:18888 $cmd

    ChatGPT - Official ChatGPT API
    Repo: github.com/acheong08/ChatGPT
    
Type '!help' to show a full list of commands
Press Esc followed by Enter or Alt+Enter to send a message.


User: 
Hello.

ChatGPT: 
Hello there! How can I assist you today?

User: 
                                                                                                             

Exiting...
(datasci) werner@X10DAi:~$ all_proxy=socks5h://127.0.0.1:18888 $cmd

    ChatGPT - Official ChatGPT API
    Repo: github.com/acheong08/ChatGPT
    
Type '!help' to show a full list of commands
Press Esc followed by Enter or Alt+Enter to send a message.


User: 
Hello.

ChatGPT: 
Hi there! How can I assist you today?

User: 

@ojdev
Copy link
Contributor

ojdev commented Mar 6, 2023

image

哪都不行了吗…………

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Mar 6, 2023

Some of my experiences:

  1. Don't use proxies whose regions are HK, JP, SG, etc.
  2. I can still access it smoothly:

image

@codeacme17
Copy link

Some of my experiences:

  1. Don't proxies whose countries are HK, JP, SG, etc.
  2. I can still access it smoothly:

image

so you use VPN to proxy the APIS ?

@hongyi-zhao
Copy link
Author

VPN or ordinary proxy, there is no difference here.

@codeacme17
Copy link

我用了 VPN 但是还是连接超时,请问这是怎么回事。。。

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Mar 6, 2023

So, the culprit is your VPN server. The reasons may be various. It is difficult to draw a conclusion intuitively from the phenomenon unless it is carefully analyzed or even checked from the data package level with a packet analyzer such as tcpdump.

@XiaoPeng4j
Copy link

i use session_token login and proxy,but somehting error occurred,is session_token wrong?

error from callback <function on_open at 0x0000023CEB502160>: 'accessToken'
File "C:\Users\51343\AppData\Roaming\Python\Python38\site-packages\websocket_app.py", line 393, in _callback
callback(self, *args)
File "C:\Program Files\tools\ChatGPT-weBot-0.99-dev\client\wxclient.py", line 175, in on_open
chatbot = Chatbot(
File "C:\Program Files\tools\ChatGPT-weBot-0.99-dev\revChat\revChatGPT.py", line 68, in init
self.__check_credentials()
File "C:\Program Files\tools\ChatGPT-weBot-0.99-dev\revChat\revChatGPT.py", line 81, in __check_credentials
self.login()
File "C:\Program Files\tools\ChatGPT-weBot-0.99-dev\revChat\revChatGPT.py", line 111, in login
auth.get_access_token()
File "C:\Users\51343\AppData\Roaming\Python\Python38\site-packages\OpenAIAuth.py", line 318, in get_access_token
self.access_token = response.json()["accessToken"]

@qinjinghub2
Copy link

Some of my experiences: 我的一些经历:

  1. Don't use proxies whose countries are HK, JP, SG, etc.不要使用代理人的国家是香港,日本,新加坡等.
  2. I can still access it smoothly:我仍然可以顺利访问它:

image

Thank you, this method is useful to me, I am in China, the Japanese node, the web page can be visited, but the reverse api can't, change the node to solve the problem perfectly, and you can play happily

@codeacme17
Copy link

Can you tell me which VPN you use and which node. it's not work with my VPN.

@acheong08
Copy link
Owner

Can you tell me which VPN you use and which node. it's not work with my VPN.

Self hosted via Wireguard protocol

@CoolPlayLin
Copy link
Contributor

OpenAI支持的国家:
阿尔巴尼亚
阿尔及利亚
安道尔
安哥拉
安提瓜和巴布达
阿根廷
亚美尼亚
澳大利亚
奥地利
阿塞拜疆
巴哈马
孟加拉国
巴巴多斯
比利时
伯利兹
贝宁
不丹
玻利维亚
波斯尼亚和黑塞哥维那
博茨瓦纳
巴西
文莱
保加利亚
布基纳法索
佛得角
加拿大
智利
哥伦比亚
科摩罗
刚果(刚果-布拉柴维尔)
哥斯达黎加
象牙海岸
克罗地亚
塞浦路斯
Czechia(捷克共和国)
丹麦
吉布提
多米尼克
多明尼加共和国
厄瓜多尔
萨尔瓦多
爱沙尼亚
斐济
芬兰
法国
加蓬
冈比亚
乔治亚州
德国
加纳
希腊
格林纳达
危地马拉
几内亚
几内亚比绍
圭亚那
海地
罗马教廷(梵蒂冈城)
洪都拉斯
匈牙利
冰岛
印度
印度尼西亚
伊拉克
爱尔兰
以色列
意大利
牙买加
日本
约旦
哈萨克斯坦
肯尼亚
基里巴斯
科威特
吉尔吉斯斯坦
拉脱维亚
黎巴嫩
莱索托
利比里亚
列支敦士登
立陶宛
卢森堡
马达加斯加
马拉维
马来西亚
马尔代夫
他们有
马耳他
马绍尔群岛
毛里塔尼亚
毛里求斯
墨西哥
密克罗尼西亚
摩尔达维亚
摩纳哥
蒙古
黑山
摩洛哥
莫桑比克
缅甸
纳米比亚
瑙鲁
尼泊尔
荷兰
新西兰
尼加拉瓜
尼日尔
尼日利亚
北马其顿
挪威
我自己的
巴基斯坦
帕劳
巴勒斯坦
巴拿马
巴布亚新几内亚
秘鲁
菲律宾
波兰
葡萄牙
卡塔尔
罗马尼亚
卢旺达
圣基茨和尼维斯
圣卢西亚
圣文森特和格林纳丁斯
萨摩亚
圣马力诺
圣多美和普林西比
塞内加尔
塞尔维亚
塞舌尔
塞拉利昂
新加坡
斯洛伐克
斯洛文尼亚
所罗门群岛
南非
韩国
西班牙
斯里兰卡
苏里南
瑞典
瑞士
台湾
坦桑尼亚
泰国
东帝汶(东帝汶)
多哥
到达的
特立尼达和多巴哥
突尼斯
土耳其
图瓦卢
乌干达
阿拉伯联合酋长国
英国
美国
乌拉圭
瓦努阿图
赞比亚

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Mar 18, 2023

No, this is not exactly the case. The countries restriction only happens in the login authentication step. Once you've successfully authenticated, the access token based authentication will take effect, which will be valid for some time. During this period of time, there were no national restrictions as strict as those listed above.

@Zq3166815
Copy link

Is it accessible now?

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Mar 27, 2023

Yes. But the V3 is still very slow to log in.

@yayxs
Copy link

yayxs commented Mar 30, 2023

Edited by maintainer: Let's not bring politics into code.

Repository owner deleted a comment from yayxs Mar 30, 2023
@Zq3166815
Copy link

If you use vpn to open chatgpt, you need to give your firewall tool full control rights, and then use different nodes to test, some nodes can be opened, and it is not difficult to use these nodes.

@Kukuair
Copy link

Kukuair commented Apr 1, 2023

I can use this repo to conduct Q&A with chatGPT without using a proxy, not sure if it is because I chose the paid plan of ChatGPT

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Apr 1, 2023

What's your source IP location when using it?

@Kukuair
Copy link

Kukuair commented Apr 1, 2023

What's your source IP location when using it?

This is the only web request that is sent when I ask
2023/04/01 22:24:53 127.0.0.1:10612 accepted //bypass.churchless.tech:443 [http -> direct]

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Apr 1, 2023

I don't mean the loopback address, instead, I mean the physical location which you are accessing the Internet from. Also, you can use packet analysis tool such as tcpdump to observe the called proxy under the hood.

@Kukuair
Copy link

Kukuair commented Apr 1, 2023

I have tried to use Fiddler to capture network packets, but there will be a certificate problem
This problem seems to be caused by Fiddler's certificate, but if I close Fiddler, I can indeed do not use any proxy, just a normal network for Q&A
I'm sorry that I can't provide the specific province where my home IP is located( If this is the source IP location you are referring to) because of privacy issues.

ask when close Fiddler and without using proxy

PS C:\Users\xxx\Desktop> python -m revChatGPT.V1

ChatGPT - A command-line interface to OpenAI's ChatGPT (https://chat.openai.com/chat)
Repo: github.com/acheong08/ChatGPT

Type '!help' to show a full list of commands
Press Esc followed by Enter or Alt+Enter to send a message.

You:
what is the capital of China

Chatbot:
The capital of China is Beijing.

You:
hello

Chatbot:
Hello! How can I assist you today?

You:

ask when open Fiddler and without using proxy

PS C:\Users\xxx> python -m revChatGPT.V1

ChatGPT - A command-line interface to OpenAI's ChatGPT (https://chat.openai.com/chat)
Repo: github.com/acheong08/ChatGPT

Type '!help' to show a full list of commands
Press Esc followed by Enter or Alt+Enter to send a message.

You:
hello

Chatbot:
Traceback (most recent call last):
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3-1.26.14-py3.11.egg\urllib3\connectionpool.py", line 700, in urlopen
self._prepare_proxy(conn)
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3-1.26.14-py3.11.egg\urllib3\connectionpool.py", line 996, in prepare_proxy
conn.connect()
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3-1.26.14-py3.11.egg\urllib3\connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3-1.26.14-py3.11.egg\urllib3\util\ssl
.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3-1.26.14-py3.11.egg\urllib3\util\ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 517, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1075, in _create
self.do_handshake()
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1346, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\adapters.py", line 489, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3-1.26.14-py3.11.egg\urllib3\connectionpool.py", line 787, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3-1.26.14-py3.11.egg\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='bypass.churchless.tech', port=443): Max retries exceeded with url: /api/conversation (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 969, in main
for data in chatbot.ask(prompt):
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 450, in ask
response = self.session.post(
^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\adapters.py", line 563, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='bypass.churchless.tech', port=443): Max retries exceeded with url: /api/conversation (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3-1.26.14-py3.11.egg\urllib3\connectionpool.py", line 700, in urlopen
self._prepare_proxy(conn)
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3-1.26.14-py3.11.egg\urllib3\connectionpool.py", line 996, in prepare_proxy
conn.connect()
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3-1.26.14-py3.11.egg\urllib3\connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3-1.26.14-py3.11.egg\urllib3\util\ssl
.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3-1.26.14-py3.11.egg\urllib3\util\ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 517, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1075, in _create
self.do_handshake()
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1346, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\adapters.py", line 489, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3-1.26.14-py3.11.egg\urllib3\connectionpool.py", line 787, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\urllib3-1.26.14-py3.11.egg\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='bypass.churchless.tech', port=443): Max retries exceeded with url: /api/conversation/None (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 976, in main
chatbot.delete_conversation(chatbot.conversation_id)
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 58, in wrapper
out = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 632, in delete_conversation
response = self.session.patch(url, data='{"is_visible": false}')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\sessions.py", line 659, in patch
return self.request("PATCH", url, data=data, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\adapters.py", line 563, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='bypass.churchless.tech', port=443): Max retries exceeded with url: /api/conversation/None (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 996, in
main(configure())
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 58, in wrapper
out = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\revChatGPT\V1.py", line 982, in main
raise error from e
revChatGPT.typings.CLIError: command line program unknown error
Please check that the input is correct, or you can resolve this issue by filing an issue
Project URL: https://github.com/acheong08/ChatGPT

------------------------------------------------------------------------------------------------------------------------------------

**Edit : This( bypass.churchless.tech) is the only web request that is sent when I ask , Connectivity doesn't seem to be a problem, no matter what ISP you're using , and consistent with the address of the reverse proxy provided by the author now **

image

image

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Apr 1, 2023

For V1, when using a local proxy, which is socks5h://localhost:18890 in my case, tcpdump will capture the packages as follows:

werner@X10DAi:~$ sudo tcpdump -i lo port 18890
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on lo, link-type EN10MB (Ethernet), snapshot length 262144 bytes
07:30:59.114186 IP localhost.42086 > localhost.18890: Flags [S], seq 568750027, win 65495, options [mss 65495,sackOK,TS val 1051227000 ecr 0,nop,wscale 7], length 0
07:30:59.114207 IP localhost.18890 > localhost.42086: Flags [S.], seq 3118057969, ack 568750028, win 65483, options [mss 65495,sackOK,TS val 1051227000 ecr 1051227000,nop,wscale 7], length 0
07:30:59.114224 IP localhost.42086 > localhost.18890: Flags [.], ack 1, win 512, options [nop,nop,TS val 1051227000 ecr 1051227000], length 0
07:30:59.114523 IP localhost.42086 > localhost.18890: Flags [P.], seq 1:4, ack 1, win 512, options [nop,nop,TS val 1051227000 ecr 1051227000], length 3
07:30:59.114538 IP localhost.18890 > localhost.42086: Flags [.], ack 4, win 512, options [nop,nop,TS val 1051227000 ecr 1051227000], length 0
07:30:59.115003 IP localhost.18890 > localhost.42086: Flags [P.], seq 1:3, ack 4, win 512, options [nop,nop,TS val 1051227001 ecr 1051227000], length 2
07:30:59.115012 IP localhost.42086 > localhost.18890: Flags [.], ack 3, win 512, options [nop,nop,TS val 1051227001 ecr 1051227001], length 0
07:30:59.115164 IP localhost.42086 > localhost.18890: Flags [P.], seq 4:33, ack 3, win 512, options [nop,nop,TS val 1051227001 ecr 1051227001], length 29
07:30:59.115282 IP localhost.18890 > localhost.42086: Flags [P.], seq 3:13, ack 33, win 512, options [nop,nop,TS val 1051227001 ecr 1051227001], length 10
07:30:59.157002 IP localhost.42086 > localhost.18890: Flags [P.], seq 33:550, ack 13, win 512, options [nop,nop,TS val 1051227043 ecr 1051227001], length 517
07:30:59.198815 IP localhost.18890 > localhost.42086: Flags [.], ack 550, win 512, options [nop,nop,TS val 1051227085 ecr 1051227043], length 0
07:30:59.392753 IP localhost.18890 > localhost.42086: Flags [P.], seq 13:2813, ack 550, win 512, options [nop,nop,TS val 1051227279 ecr 1051227043], length 2800
07:30:59.392869 IP localhost.18890 > localhost.42086: Flags [P.], seq 2813:4213, ack 550, win 512, options [nop,nop,TS val 1051227279 ecr 1051227043], length 1400
07:30:59.392894 IP localhost.42086 > localhost.18890: Flags [.], ack 4213, win 486, options [nop,nop,TS val 1051227279 ecr 1051227279], length 0
07:30:59.393034 IP localhost.18890 > localhost.42086: Flags [P.], seq 4213:4742, ack 550, win 512, options [nop,nop,TS val 1051227279 ecr 1051227279], length 529
07:30:59.394838 IP localhost.42086 > localhost.18890: Flags [P.], seq 550:630, ack 4742, win 512, options [nop,nop,TS val 1051227281 ecr 1051227279], length 80
07:30:59.394852 IP localhost.18890 > localhost.42086: Flags [.], ack 630, win 512, options [nop,nop,TS val 1051227281 ecr 1051227281], length 0
07:30:59.395547 IP localhost.42086 > localhost.18890: Flags [P.], seq 630:2147, ack 4742, win 512, options [nop,nop,TS val 1051227281 ecr 1051227281], length 1517
07:30:59.395556 IP localhost.18890 > localhost.42086: Flags [.], ack 2147, win 502, options [nop,nop,TS val 1051227281 ecr 1051227281], length 0
07:30:59.395592 IP localhost.42086 > localhost.18890: Flags [P.], seq 2147:2477, ack 4742, win 512, options [nop,nop,TS val 1051227281 ecr 1051227281], length 330
07:30:59.395598 IP localhost.18890 > localhost.42086: Flags [.], ack 2477, win 506, options [nop,nop,TS val 1051227281 ecr 1051227281], length 0
07:31:00.755293 IP localhost.18890 > localhost.42086: Flags [P.], seq 4742:7542, ack 2477, win 512, options [nop,nop,TS val 1051228641 ecr 1051227281], length 2800
07:31:00.755403 IP localhost.18890 > localhost.42086: Flags [P.], seq 7542:9929, ack 2477, win 512, options [nop,nop,TS val 1051228641 ecr 1051227281], length 2387
07:31:00.755512 IP localhost.42086 > localhost.18890: Flags [.], ack 9929, win 482, options [nop,nop,TS val 1051228641 ecr 1051228641], length 0
07:31:00.880346 IP localhost.18890 > localhost.42086: Flags [P.], seq 9929:12010, ack 2477, win 512, options [nop,nop,TS val 1051228766 ecr 1051228641], length 2081
07:31:00.880390 IP localhost.18890 > localhost.42086: Flags [F.], seq 12010, ack 2477, win 512, options [nop,nop,TS val 1051228766 ecr 1051228641], length 0
07:31:00.880913 IP localhost.42086 > localhost.18890: Flags [R.], seq 2477, ack 12011, win 512, options [nop,nop,TS val 1051228767 ecr 1051228766], length 0

On the other hand, I also confirmed your above observation. In short, when the reverse-proxy based method is used, which is how V1 of this project works, the local proxy is not needed.

For V3 of this project, if you don't use a local proxy, the following error will be triggered:

(datasci) werner@X10DAi:~$ python3 -m revChatGPT.V3 --api_key sk-xxx

    ChatGPT - Official ChatGPT API
    Repo: github.com/acheong08/ChatGPT
    
Type '!help' to show a full list of commands
Press Esc followed by Enter or Alt+Enter to send a message.


User: 
Hello.

ChatGPT: 
Traceback (most recent call last):
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connection.py", line 414, in connect
    self.sock = ssl_wrap_socket(
                ^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/3.11.1/lib/python3.11/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/3.11.1/lib/python3.11/ssl.py", line 1075, in _create
    self.do_handshake()
  File "/home/werner/.pyenv/versions/3.11.1/lib/python3.11/ssl.py", line 1346, in do_handshake
    self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/util/retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/connection.py", line 414, in connect
    self.sock = ssl_wrap_socket(
                ^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/3.11.1/lib/python3.11/ssl.py", line 517, in wrap_socket
    return self.sslsocket_class._create(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/3.11.1/lib/python3.11/ssl.py", line 1075, in _create
    self.do_handshake()
  File "/home/werner/.pyenv/versions/3.11.1/lib/python3.11/ssl.py", line 1346, in do_handshake
    self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/werner/Public/repo/github.com/acheong08/ChatGPT.git/src/revChatGPT/V3.py", line 688, in <module>
    main()
  File "/home/werner/Public/repo/github.com/acheong08/ChatGPT.git/src/revChatGPT/V3.py", line 681, in main
    for query in chatbot.ask_stream(prompt):
  File "/home/werner/Public/repo/github.com/acheong08/ChatGPT.git/src/revChatGPT/V3.py", line 171, in ask_stream
    response = self.session.post(
               ^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/requests/sessions.py", line 635, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/werner/.pyenv/versions/datasci/lib/python3.11/site-packages/requests/adapters.py", line 547, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/werner/Public/repo/github.com/acheong08/ChatGPT.git/src/revChatGPT/V3.py", line 691, in <module>
    raise error from e
revChatGPT.typings.CLIError: Command line program unknown error
Please check that the input is correct, or you can resolve this issue by filing an issue
Project URL: https://github.com/acheong08/ChatGPT

@Kukuair
Copy link

Kukuair commented Apr 2, 2023

For V3 of this project, if you don't use a local proxy, the following error will be triggered:

Yes, you are right. V3 does have to use a proxy, I haven't used v3 before so didn't notice this

@txorav
Copy link

txorav commented Apr 10, 2023

What's the quickest solution

@jahentao
Copy link

https_proxy=http://127.0.0.1:8080 $cmd
works, but all_proxy not works

@txorav
Copy link

txorav commented Apr 17, 2023

How this proxy works give me more explanation

@txorav
Copy link

txorav commented Apr 17, 2023

@jahentao

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests