Pluralith / pluralith-cli

A tool for Terraform state visualisation and automated generation of infrastructure documentation
https://www.pluralith.com
Mozilla Public License 2.0
772 stars 54 forks source link

Pluralith CLI, `graph` failed. #113

Open flavono123 opened 1 year ago

flavono123 commented 1 year ago

Env

❯ sw_vers
ProductName:        macOS
ProductVersion:     13.2.1
BuildVersion:       22D68

❯ pluralith version
 _
|_)|    _ _ |._|_|_
|  ||_|| (_||| | | |

→ CLI Version: 0.2.2
→ Graph Module Version: 0.2.1

Error

# pluralith graph
TypeError: Cannot read properties of undefined (reading 'summary')
    at /snapshot/pluralith-cli-graphing/dist/build/commands/Graph.js
    at Generator.next (<anonymous>)
    at fulfilled (/snapshot/pluralith-cli-graphing/dist/build/commands/Graph.js)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Within my private terraform workspace repo, the above error occurred. every terraform commands(init, plan, apply, ...) works well. is the problem about envs?

flavono123 commented 1 year ago

do i need to share the results of strip?

flavono123 commented 1 year ago

i see, arm arch macos not supported yet. https://github.com/Pluralith/pluralith-cli/releases

j3hempsey commented 1 year ago

I'm seeing this too on Linux x86

$ pluralith graph 
⠿ Exporting Diagram

→ Authentication
  ✔ API key is valid, you are authenticated!

→ Plan
  ✔ Execution Plan Generated
  ✔ Plan Cache Created
  ✔ Secrets Stripped
  - Cost Calculation Skipped

→ Graph
  ✘ Diagram Generation Failed
pluralith-cli-graphing graph

Render graph and export PDF

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

TypeError: Cannot read properties of undefined (reading 'summary')
    at /snapshot/pluralith-cli-graphing/dist/build/commands/Graph.js
    at Generator.next (<anonymous>)
    at fulfilled (/snapshot/pluralith-cli-graphing/dist/build/commands/Graph.js)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

generating diagram failed -> GenerateGraph: running CLI command failed -> GenerateDiagram: exit status 1

I've tried rolling back versions (at least to v1.22) and keep seeing the same error. Running with node v18.16.0

meerco commented 1 year ago

`⠿ Initiating Graph ⇢ Posting Diagram To Pluralith Dashboard → Authentication ✔ API key is valid, you are authenticated! → Plan ✔ Local Execution Plan Generated ✔ Local Plan Cache Created ✔ Secrets Stripped

I still have the same problem. Any help?