rancher: JSON syntax error when entering cloud credentials for azure -- SyntaxError: Unexpected token S in JSON at position 204

Rancher Server Setup

  • Rancher version: v2.6.2
  • Installation option (Docker install/Helm Chart):
    • If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): k8s: 1.20.9 on AKS
  • Proxy/Cert Details: self signed

Information about the Cluster

  • Kubernetes version: 1.20.9
  • Cluster Type (Local/Downstream): local
    • If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider):

User Information

  • What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom) Admin
    • If custom, define the set of permissions:

Describe the bug

Getting an JSON syntax error after entering azure cloud credentail

SyntaxError: Unexpected token S in JSON at position 204

Seems to happen randomly. Sometimes happens, sometime not.

Seems to occur more often when there are no cloud credentials stored.

To Reproduce

. Add AKS Cluster . Add Cloud credential

Result . UI displaying error message after entering an azure cloud credential.

SyntaxError: Unexpected token S in JSON at position 204

Expected Result

No errors after entering cloud credential

Screenshots

image

Additional context

Cloud credential seems to work afterwards, so perhaps just an erroneous message.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

I can confirm that I also am having trouble with trying to create an aks cluster and experiencing a json error