We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
auth 1.18
当前版本的auth,鉴权失败之后会返回空的请求体,以及401 错误码 但是 jsonrpc client 接收到 response 之后 会直接 解码空的请求体,然后报解码出错,这会导致错误信息不明确
建议 返回错误状态码的同时,也返回一个非空 的http body
2022-11-04T03:06:58.238Z ERROR chain-ro cmd/main.go:76 CLI error: (error code -32700) unmarshaling response: EOF: error code -32700
No response
The text was updated successfully, but these errors were encountered:
jsonrpc中非200类型的返回值不应当进行unmarshal操作,不能保证非200类型返回值是个标准jsonrpc返回
Sorry, something went wrong.
错误信息增加了 http status
simlecode
No branches or pull requests
链服务模块 / Chain Service Components
订单服务模块 / Deal Service Components
算力服务模块 / Storage Power Service Components
版本 / Version
描述 / Describe the Bug
当前版本的auth,鉴权失败之后会返回空的请求体,以及401 错误码
但是 jsonrpc client 接收到 response 之后 会直接 解码空的请求体,然后报解码出错,这会导致错误信息不明确
建议 返回错误状态码的同时,也返回一个非空 的http body
日志 / Logging Information
重现步骤 / Repo Steps
No response
The text was updated successfully, but these errors were encountered: