Skip to content

ArgoCD CLI 3.1.0 throws unexpected error when trying to access notifications #24196

@LoniasGR

Description

@LoniasGR

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

When trying to run any notifications-related command in the argoCD CLI, we keep getting the following error:

{"level":"error","msg":"error getting api from namespace: argocd error: argocdService is not initialized","time":"2025-08-19T14:49:45+03:00"}
failed to get api: errors getting apis: [argocdService is not initialized]

Tried with the 3.0.12 and earlier CLIs and it works. I also tried to trace the error in the code, but could not exactly find the change that created it.

To Reproduce

  • Install the latest argocd CLI.
  • Install the notifications gallery as described in the docs.
  • Try to access the templates by running argocd admin notifications templates get -n argocd.
  • It should fail.

Expected behavior

The command should return success and the templates.

Screenshots

Version

argocd: v3.1.0+03c4ad8
  BuildDate: 2025-08-13T21:03:54Z
  GitCommit: 03c4ad854c1e6d922a121cd40f505d9bc6e402da
  GitTreeState: clean
  GoVersion: go1.24.6
  Compiler: gc
  Platform: linux/amd64
{"level":"warning","msg":"Failed to invoke grpc call. Use flag --grpc-web in grpc calls. To avoid this warning message, use flag --grpc-web.","time":"2025-08-19T14:54:08+03:00"}
argocd-server: v3.1.0+03c4ad8
  BuildDate: 2025-08-13T20:38:38Z
  GitCommit: 03c4ad854c1e6d922a121cd40f505d9bc6e402da
  GitTreeState: clean
  GoVersion: go1.24.6
  Compiler: gc
  Platform: linux/amd64
  Kustomize Version: v5.7.0 2025-06-28T07:00:07Z
  Helm Version: v3.18.4+gd80839c
  Kubectl Version: v0.33.1
  Jsonnet Version: v0.21.0

Logs

Paste any relevant application logs here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomponent:cliIssue related to the Argo CD CLIcomponent:notificationsIssue related to the notifications subsystem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions