-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
httpx.parse error when the field's type in request is []byte #4215
Comments
都base64了,为何不搞成string呢? ApplyRequest {
Task string `json:"task"`
} |
It’s all base64, why not make it a string? ApplyRequest {
Task string `json:"task"`
} |
We use |
Go-zero will not help you with type conversion, so your data type must be consistent with the input parameters. |
Describe the bug
httpx.parse error when the field's type in request is []byte
and I post the data body after json Marshal like '{"task":"base64 encoded data"}'.
To Reproduce
Steps to reproduce the behavior, if applicable:
The error is
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environments (please complete the following information):
More description
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: