kovetskiy / mark

Sync your markdown files with Confluence pages.
https://samizdat.dev
Other
988 stars 147 forks source link

Mark returns "400 Bad Request: com.atlassian.confluence.api.service.exceptions.BadRequestException: Content body cannot be converted to new editor format" #358

Open AX-LLaidley opened 11 months ago

AX-LLaidley commented 11 months ago

What happened? I have several files that fail to sync to Confluence, returning the following error:

{"statusCode":400,"data":{"authorized":true,"valid":true,"errors":[],"successful":true},"message":"com.atlassian.confluence.api.service.exceptions.BadRequestException: Content body cannot be converted to new editor format"}
2023-09-12 16:14:15.283 FATAL Confluence API returned unexpected status: 400 Bad Request, output: "{\"statusCode\":400,\"data\":{\"authorized\":true,\"valid\":true,\"errors\":[],\"successful\":true},\"message\":\"com.atlassian.confluence.api.service.exceptions.BadRequestException: Content body cannot be converted to new editor format\"}"

What did you expect to happen? I expected all the files in the GHA job to be properly synced to Confluence, in their specified locations.

Information (please complete the following information):

Logs or other output Example log files with the bearer token stripped out: Device-Details-Errorlog.txt RC-Caveats-ErrorLog.txt RC-FAQ-ErrorLog.txt

Additional context Add any other context about the problem here.

jimmcslim commented 8 months ago

I am also experiencing this issue, I wonder if it is related to #364 ?

AX-LLaidley commented 5 months ago

Entirely possible. This error is a bane to my sanity. Not sure what the cause is though. I have several docs that cannot be synced to Confluence due to this issue.