pluralith-cli icon indicating copy to clipboard operation
pluralith-cli copied to clipboard

Pluralith CLI, `graph` failed.

Open flavono123 opened this issue 2 years ago • 4 comments

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 avatar Apr 10 '23 06:04 flavono123

do i need to share the results of strip?

flavono123 avatar Apr 10 '23 06:04 flavono123

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

flavono123 avatar Apr 10 '23 06:04 flavono123

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

j3hempsey avatar Jun 20 '23 16:06 j3hempsey

`⠿ 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

  • Cost Calculation Skipped → Graph ✘ Local 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 () 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 still have the same problem. Any help?

meerco avatar Sep 08 '23 08:09 meerco