You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My backend is Spring Boot.
An API accepts a multipart request containing JSON parts.
I set a request in Kreya like this:
But the backend throws an exception: org.springframework.util.InvalidMimeTypeException: Invalid mime type "text/plain; charset=utf-8, application/json": utf-8, application/json
I tested the same API with Insomnia, and there was no problem.
The key differences between Kreya and Insomnia are these:
The mineType of a JSON part in a multipart request
Insomnia: application/json
Kreya: text/plain; charset=utf-8, application/json
The boundary text of Kreya contains quotation marks like this:
My backend is Spring Boot.
An API accepts a multipart request containing JSON parts.
I set a request in Kreya like this:
But the backend throws an exception:
org.springframework.util.InvalidMimeTypeException: Invalid mime type "text/plain; charset=utf-8, application/json": utf-8, application/json
I tested the same API with Insomnia, and there was no problem.
The key differences between Kreya and Insomnia are these:
Insomnia: application/json
Kreya: text/plain; charset=utf-8, application/json
{
"kreyaVersion": "1.16.0",
"releaseChannel": "stable",
"osDescription": "Ubuntu Core 22",
"osVersion": "Unix 6.11.0.9",
"osArch": "X64",
"processArch": "X64",
"runtimeIdentifier": "linux-x64",
"userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15"
}
The text was updated successfully, but these errors were encountered: