equest error
Opened this issue · 6 comments
chenchen333-dev commented
request error: ('Connection aborted.', OSError(0, 'Error'))
chenchen333-dev commented
LiangYang666 commented
您好,请问程序报错了吗
chenchen333-dev commented
web页面输入提问后,回复的是请求错误的消息。
…---Original---
From: "Leo ***@***.***>
Date: Sun, Jul 2, 2023 08:54 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [LiangYang666/ChatGPT-Web] equest error (Issue #39)
您好,请问程序报错了吗
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
LiangYang666 commented
感觉是系统包报错,麻烦看下程序报错情况,看看具体在哪个位置报错
chenchen333-dev commented
运行main后出现Running on http://0.0.0.0:5000,算没有报错。但网页里输入提问后回复的却是报错信息。(挂了梯子,没挂梯子web出现另一个错)
…---Original---
From: "Leo ***@***.***>
Date: Sun, Jul 2, 2023 09:48 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [LiangYang666/ChatGPT-Web] equest error (Issue #39)
感觉是系统包报错,麻烦看下程序报错情况,看看具体在哪个位置报错
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
TTTTTOMGQ commented
其实是request没有设置代理,需要自己添加proxies参数,代码中有两处都要添加。
response = requests.request("POST", url, headers=header, json=data, stream=True, proxies=proxies)