I am getting an error reported in my ResponseContent:
{"timestamp":"2025 12-06T04:34:15.926+00.00,
"status":415,
"error":"Unsupported Media Type",
"path":"/updateSchedule"}
On the server side (I am sending the Request to a Java service), the following is reported:
WARN 1735 --- [starttimeschedule] [nio-8090-exec-9] .w.s.m.s..DefaultHandlerExceptionresolver : Resolved [org.springframework.web.HttpMediaTypeNotSupportedEception: Content-Type 'application/x-www-form-urlencoded;charset=UTF-8' is not supported]
One suggestion that I received is to check that the content type in the request is “application/json” with no mention of UTF-8.
Is there a way to check the Request being sent for this? Is there a way to specify the type? I assume I'll be adding it to the RequestHeader block as an item (see below) but I don't know the syntax to use.
Here is the block that I currently have for the creation of the Request.
Note: the following block works fine. This one merely fetches data, does not upload anything.
I should/will test the json string I'm sending in Postman as soon as I can. I didn't prioritize this in the debugging process because the dictionary being sent worked before, and I am assuming that the request generated by Postman will not be identical to the request generated by AI2 in all its particulars, especially since Postman has a place to specify the type.
I suppose it could be that there is a problem in a field not matching in the JSON'd class that I am sending, but it seems to me that the rejection is happening before the JSON is even decoded.
What changed (I said this "worked before")? I was revising the program and mistakenly overwrote my backup, and am in the process of trying to reconstruct the working backup. So it is difficult to say exactly "what changed" due to this goof up.


