chesshacker / terraform-provider-confluence

Terraform Provider for Confluence
https://chesshacker.github.io/terraform-provider-confluence/
Mozilla Public License 2.0
10 stars 30 forks source link

com.atlassian.confluence.api.service.exceptions.BadRequestException: Error parsing xhtml: Unexpected close tag </xml>; expected </p>. #7

Open justinTM opened 3 years ago

justinTM commented 3 years ago

Thank you for opening an issue. Please provide as much of the following information as relevant to help understand the problem.

Terraform Version

1.0

Affected Resource(s)

Terraform Configuration Files

// connect to Confluence API
provider "confluence" {
  site  = var.confluence_site
  user  = var.confluence_user
  token = var.confluence_token
}

// make a new wiki page
resource confluence_content "default" {
  body   = "<p>This page was built with Terraform<p>"
  parent = var.confluence_parent_id
  space  = var.confluence_space
  title  = "Example Page"
}

Debug Output

Error: 400 Bad Request

 POST /wiki/rest/api/content

com.atlassian.confluence.api.service.exceptions.BadRequestException: Error parsing xhtml: Unexpected close tag </xml>; expected </p>.
 at [row,col {unknown-source}]: [1,405]
 Authorized: false
 Valid: true
 Successful: false