databricks / click

The "Command Line Interactive Controller for Kubernetes"
Apache License 2.0
1.49k stars 84 forks source link

Serde json error: expected value at line 1 column 1 #62

Closed agemooij closed 2 years ago

agemooij commented 6 years ago

After setting up and connecting to a remote K8s cluster from my kubectl config, I'm getting deser errors for all commands like pods, deployments, etc.

Serde json error: expected value at line 1 column 1

What does this mean?

azazel75 commented 5 years ago

Doing the same thing I got instead this one:

Serde json error: trailing characters at line 1 column 5 is:closed

kubectl work flawlessly the cluster has version 1.12.2

xbaran commented 5 years ago

Same problem here with namespaces. K8S 1.14.1

xbaran commented 5 years ago

Well, there is a problem with kubernetes API running on subcontext.

Lets say Rancher k8s distribution runs kubernetes API at https://rancher.company.co/k8s/clusters/local. To access namespaces enpoint click will join /api/namespaces with API endpoint but that will produce https://rancher.company.co/api/namespaces instead of https://rancher.company.co/k8s/clusters/local/api/namespaces and eventually it will produce 404 -page not found. At last Click will interpret this as error - Serde json error: trailing characters at line 1 column 5 is:closed

nicklan commented 2 years ago

This should be fixed by now (long time after report I know). Please re-open if you see anything like this.