Skip to content

Terraform Cloudflare provider returns error unmarshalling the JSON response error body: invalid character '<' looking for beginning of value when new custom rule #6422

@achinoamoren

Description

@achinoamoren

Confirmation

  • This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
  • I have searched the issue tracker and my issue isn't already found.
  • I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version

v4.32.0

Affected resource(s)

cloudflare_ruleset

Terraform configuration files

.

Link to debug output

https://gist.github.com/achinoamoren/f0dc460b5617be9bc526e3051a89918c

Panic output

error unmarshalling the JSON response error body: invalid character '<' looking for beginning of value

Expected output

That the rule will be added to our custom ruleset in Cloudflare

Actual output

No rule has been added in Cloudflare

Steps to reproduce

Adding new custom rule

Additional factoids

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.version/5Categorizes issue or PR as related to version 5 of the provider.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions