I encountered a comment on this Staging Ground post which is not about improving the question, but rather, potentially helpful in solving the problem:
400 means Bad Request, and the request is bad. You're trying to set the content type header both in the content and HttpClient. I have no idea what that will produce. You don't need to manually serialize to JSON the bytes either, use
JsonContent
with an actual object, not strings, and let that serialize the object and generate the correct headers
When the post graduated out of Staging Ground, the comment is no longer there, which makes sense because the expectation is for Staging Ground comments to be about improving the question, not answering it (at least, I think it is?).
Is there a way to handle this scenario by either educating the person who left the comment so they understand it will not be retained, or migrating answer-related comments to the graduated question?