kube icon indicating copy to clipboard operation
kube copied to clipboard

Unhelpful 404 error for missing API resources

Open nightkr opened this issue 2 years ago • 2 comments

Discussed in https://github.com/kube-rs/kube-rs/discussions/948

Originally posted by jesperpedersen July 6, 2022 Hi,

I'm currently looking at

2022-07-06T08:48:38.812069629-04:00 WARN kube_client::client - Unsuccessful data error parse: 404 page not found
2022-07-06T08:48:38.812085204-04:00 TRACE want - signal: Want
2022-07-06T08:48:38.812127318-04:00 DEBUG kube_client::client - Unsuccessful: ErrorResponse { status: "404 Not Found", message: "\"404 page not found\\n\"", reason: "Failed to parse error data", code: 404 } (reconstruct)

which is from the /apiserver - but is there a way to get more information on this ? Like is it a missing endpoint (resource) or are credentials to blame.

Getting the full URL plus user info into the DEBUG message would be great.

Thanks for any help in advance !

nightkr avatar Jul 06 '22 13:07 nightkr

2022-07-06T09:35:35.550561233-04:00 DEBUG kube_client::client - Unsuccessful: ErrorResponse { status: "Failure", message: "the server could not find the requested resource", reason: "NotFound", code: 404 }

jesperpedersen avatar Jul 06 '22 13:07 jesperpedersen