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
my code is like
@Post(value = "/", consumes = {MediaType.IMAGE_PNG, MediaType.TEXT_XML, MediaType.MULTIPART_FORM_DATA}) public HttpResponse<ConfirmMessage> createFile(@Body byte[] dataFile, @Header("documentId") String documentId, @Header("Content-Type") String contentType, HttpRequest<?> request) { // }
I have recently migrate to micronaut 4 and jdk17. Earlier the same code was working fine but it is giving the below error now.
{ "message": "Bad Request", "_embedded": { "errors": [
{ "message": "Required Body [dataFile] not specified", "path": "/dataFile" } ] }, "_links": { "self": { "href": "/xyx", "templated": false } } }
Need help here
{ "message": "Required Body [dataFile] not specified", "path": "/dataFile" } ] }, "_links": { "self": { "href": "/xyz", "templated": false } } }
No response
micronaut -4 jdk 17
micronaut 4, jdk 17
The text was updated successfully, but these errors were encountered:
is the body empty in the request youre testing?
Sorry, something went wrong.
I am uploading an Encrypt.xml file with some record.
No branches or pull requests
Expected Behavior
my code is like
I have recently migrate to micronaut 4 and jdk17. Earlier the same code was working fine but it is giving the below error now.
{
"message": "Bad Request",
"_embedded": {
"errors": [
{ "message": "Required Body [dataFile] not specified", "path": "/dataFile" }
]
},
"_links": {
"self":
{ "href": "/xyx", "templated": false }
}
}
Need help here
Actual Behaviour
{
"message": "Bad Request",
"_embedded": {
"errors": [
{ "message": "Required Body [dataFile] not specified", "path": "/dataFile" }
]
},
"_links": {
"self":
{ "href": "/xyz", "templated": false }
}
}
Steps To Reproduce
No response
Environment Information
micronaut -4
jdk 17
Example Application
No response
Version
micronaut 4, jdk 17
The text was updated successfully, but these errors were encountered: