Skip to content

Fatal Error - Unmarshalling Billboard Threshold (v0.103.x) #1747

@mtsharp

Description

@mtsharp

Description

Fatal Error occurs when trying to perform the utils function that creates a dashboard converting JSON code into HCL for terraform using the newrelic cli on version 0.103.3. The error is related to the billboardThreshold for a widget.

Current behavior

I am experiencing a FATAL Error when trying to perform a utils script.

Expected behavior

I am expecting the cli to be able to parse a JSON file and produce a HCL terraform file.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Create a dashboard in NewRelic
  2. Create a widget in this dashboard using a chart
  3. Copy the JSON to clipboard
  4. Paste the JSON to a file in a directory
  5. Save the new file as a JSON file
  6. Open a CLI where the new file has been saved
  7. Run the command newrelic utils terraform dashboard -f {{the JSON file just made}}.json -o {{some file name}}.tf

Debug Output (if applicable)

FATAL Error unmarshalling billboardThreshold:unexpected end of JSON input

Additional Context

This has been tested against v0.93.x and it runs fine, but when running on v0.103.3 it does not work.
Terraform version: v1.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions