Skip to content

Error posting comment #1423

@ErnieZapata

Description

@ErnieZapata

Describe the bug

My Atlassian plug-in just updated to 4.12 this morning, previous version was 4.11. I opened a Jira ticket and entered a comment by copying from text and pasting into Comment text box. On submitting, I am getting an error:

Error posting comment
Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: org.apache.catalina.connector.CoyoteInputStream@4d5f6f21; line: 1, column: 2] (through reference chain: com.atlassian.jira.issue.fields.rest.json.beans.CommentJsonBean["body"])

Reverted to 4.11 and was able to post the same comment as expected, copying and pasting the same text.

Same thing happens with 4.12 if entering simple comment like "Test Comment"

To Reproduce
Steps to reproduce the behavior:

  1. Hover Jira reference in document and select Open Issue View
  2. Click in the Comment text box and enter comment
  3. Click Save
  4. See error

Expected behavior
Expect comment to be saved

Screenshots

Environment and Version (please complete the following information):

  • Atlassian Plugin Version (4.12)
  • Visual Studio Code Version (1.107.0)
  • Is this a local or cloud environment? (Local)
  • If Local, OS (windows,

Additional context

Atlassian Log Output submitting the simple comment to same Jira ticket

4.11

[2025-12-12 14:28:37:896] ----------------------------------------------------------------------
[2025-12-12 14:28:37:896] curl -X POST "https://{HOSTNAME}/rest/api/2/issue/{JIRA-TICKET}/comment?expand=renderedBody" -H "Accept:application/json, text/plain, /" -H "Content-Type:application/json" -H "User-Agent:atlascode/2.x axios/0.19.2" -H "X-Atlassian-Token:no-check" -H "Authorization:Bearer ********************************" --data '{"body":"Test comment with 4.11"}'
[2025-12-12 14:28:37:896] ----------------------------------------------------------------------

4.12

[2025-12-12 14:26:53:127] ----------------------------------------------------------------------
[2025-12-12 14:26:53:127] curl -X POST "https://{HOSTNAME}/rest/api/2/issue/{JIRA-TICKET}/comment?expand=renderedBody" -H "Accept:application/json, text/plain, /" -H "Content-Type:application/json" -H "User-Agent:atlascode/2.x axios/0.19.2" -H "X-Atlassian-Token:no-check" -H "Authorization:Bearer ********************************" --data '{"body":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Test comment"}]}],"version":1}}'
[2025-12-12 14:26:53:127] ----------------------------------------------------------------------
[2025-12-12 14:26:53:204] Error posting comment AxiosError: Request failed with status code 400

Metadata

Metadata

Assignees

No one assigned

    Labels

    JIRAThis is related to JIRA

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions