The ‘Content-Type’ header is already part of your request. You cannot change it

Another bug:

“The ‘Content-Type’ header is already part of your request. You cannot change it”.

At 1st I had this activity without any Headers (0 items in the dictionary). Then after running it, I got a

"{\"error\":{\"code\":\"BadRequest\",\"message\":\"Unable to read JSON request payload. Please ensure Content-Type header is set and payload is of valid JSON format.\",\"innerError\":{\"date\":\"2024-10-24T12:05:42\",\"request-id\":\"abb5b8b5-78cf-411f-88fa-5b9310d66d76\",\"client-request-id\":\"abb5b8b5-78cf-411f-88fa-5b9310d66d76\"}}}"

So I tried adding them manually. Then I got the error; deleted the headers and can’t get rid of the error. Tried everything; restarted Studio. But the error is still there no matter if there are no headers set up by me in the activity.

take a look at the workflow xaml, more exact the tags related to this activity.
Sometimes there’s hidden tags and values over there that you can simple erase.

“Content-Type” is a header but in the screenshot you’re editing query parameters.

I don’t understand any of the last two comments.

BTW, after a while of trying and retrying what I already commented here and closing and reopening the project, eventually the problem “decided” to get rid of itself.

1 Like