Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash while deleting application ("Cannot read properties of undefined (reading 'chart')") #15545

Closed
3 tasks done
nickv2002 opened this issue Sep 19, 2023 · 0 comments · Fixed by #20381
Closed
3 tasks done
Labels
bug Something isn't working component:ui User interfaces bugs and enhancements

Comments

@nickv2002
Copy link

nickv2002 commented Sep 19, 2023

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

I was trying to delete an application by removing its YAML from my app of apps and I ended up with the stacktrace below and a suggestion I report it here being the only thing returned whenever I try to load the webUI

TypeError: Cannot read properties of undefined (reading 'chart')
    at https://argo.gainbridge-dev.com/main.dacc55dcbd944c5e45d8.js:2:2015113
    at Array.map (<anonymous>)
    at Object.children (https://argo.gainbridge-dev.com/main.dacc55dcbd944c5e45d8.js:2:2014299)
    at Fr.render (https://argo.gainbridge-dev.com/main.dacc55dcbd944c5e45d8.js:2:1565823)
    at zi (https://argo.gainbridge-dev.com/main.dacc55dcbd944c5e45d8.js:2:820282)
    at Hi (https://argo.gainbridge-dev.com/main.dacc55dcbd944c5e45d8.js:2:820077)
    at Es (https://argo.gainbridge-dev.com/main.dacc55dcbd944c5e45d8.js:2:855701)
    at Sl (https://argo.gainbridge-dev.com/main.dacc55dcbd944c5e45d8.js:2:847160)
    at xl (https://argo.gainbridge-dev.com/main.dacc55dcbd944c5e45d8.js:2:847085)
    at hl (https://argo.gainbridge-dev.com/main.dacc55dcbd944c5e45d8.js:2:844108)

Restarting Argo doesn't fix this.

To Reproduce

Delete 1 app YAML from app-of-apps templates.

To Fix

Delete the targeted application via kubectl eg kubectl delete application opentelemetry
Now I am able to load webUI with normal behavior again.

Expected behavior

Some kind of UI or more actionable error message.

Version

v2.8.4+c279299

@nickv2002 nickv2002 added the bug Something isn't working label Sep 19, 2023
KouWakai added a commit to KouWakai/argocd-example-apps that referenced this issue Sep 23, 2023
KouWakai added a commit to KouWakai/argocd-example-apps that referenced this issue Sep 23, 2023
@jgwest jgwest added the component:ui User interfaces bugs and enhancements label Mar 29, 2024
@jgwest jgwest changed the title Crash while deleting application Crash while deleting application ("Cannot read properties of undefined (reading 'chart')") Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:ui User interfaces bugs and enhancements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants