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

An error occurred while sending the request. #24

Open
Caulm opened this issue Apr 7, 2023 · 1 comment
Open

An error occurred while sending the request. #24

Caulm opened this issue Apr 7, 2023 · 1 comment

Comments

@Caulm
Copy link
Contributor

Caulm commented Apr 7, 2023

I found that sometimes the unofficial API cannot respond when the reply message is too long.
For example, I asked "Perceptual hash algorithm", using ChatGptUnofficial.Ask. Then an exception was thrown.
Message:
An error occurred while sending the request.
Stack trace:

在 System.Net.Http.HttpConnection.<SendAsyncCore>d__62.MoveNext()
在 System.Net.Http.HttpConnectionPool.<SendWithVersionDetectionAndRetryAsync>d__83.MoveNext()
在 System.Threading.Tasks.ValueTask`1.get_Result()
在 System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.GetResult()
在 System.Net.Http.RedirectHandler.<SendAsync>d__4.MoveNext()
在 System.Net.Http.HttpClient.<<SendAsync>g__Core|83_0>d.MoveNext()
在 ChatGPT.Net.ChatGptUnofficial.<SendMessage>d__33.MoveNext() 在 E:\Mirai-console\livebot\source\ChatGPT.Net\ChatGPTUnofficial.cs 中: 第 261 行
在 ChatGPT.Net.ChatGptUnofficial.<Ask>d__30.MoveNext() 在 E:\Mirai-console\livebot\source\ChatGPT.Net\ChatGPTUnofficial.cs 中: 第 147 行

On the webpage, it can be seen that the message was successfully sent and ChatGPT replied a lot.
image
Is there any way to get such a long reply?

@PawanOsman
Copy link
Owner

Maybe it will timeout, our focus is on the official API that's why we didn't update the unofficial one

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

2 participants