-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
返回的错误无法直观表达真实错误 #806
Comments
建议直接把resp.Status返回到错误中,避免还要调试代码定位问题 |
还有个问题,该文件上传接口文档显示batch类型请求文件大小限制为100m,但是只上传了几百kb就提示超过了限制大小,不确定这是openai的文档描述有问题,还是调用请求的问题 |
能提供一段示例代码吗 |
发一下具体的错误代码呢,你可以参考一下这个例子 #808 ,有可能是你的文件格式不对 |
问题解决了,这个错误是因为我们的代理服务器导致的,代理服务器限制了请求大小 |
我遇到一样的问题,http请求获取到了 html 的报错页面,但调用层只能拿到 |
在某些场景下,比如api达到速率限制或者上传文件达到大小限制,接口返回的真实结果并不是一个有效的json格式,此时真实的错误在status中,但是这里返回的却是一个json解析失败的错误
The text was updated successfully, but these errors were encountered: