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

Issue with the kubeconfig Error: superfluous response.WriteHeader call from github.com/unrolled/render.Head.Write #47

Open
rajatgupta24 opened this issue Jul 22, 2022 · 1 comment

Comments

@rajatgupta24
Copy link
Member

rajatgupta24 commented Jul 22, 2022

Description

Hello, I installed jx-ui, and followed the instructions to set up the dev env (in README).

On running ./bin/ui, I got a 404 error in the browser and the following logs in the terminal

http: superfluous response.WriteHeader call from github.com/unrolled/render.Head.Write (engine.go:66)

I have a working Jenkins X with k3s
image

Kubernetes version: v1.23.8
Jenkins X version: 3.3.3

Workaround

This will allow you to use different configs, by default the handler only reads ./kube/config.

./bin/ui --kubeconfig /home/rajatgupta/.kube/k3s-config
@rajatgupta24 rajatgupta24 changed the title Error: superfluous response.WriteHeader call from github.com/unrolled/render.Head.Write Issue with the kubeconfig Error: superfluous response.WriteHeader call from github.com/unrolled/render.Head.Write Jul 22, 2022
@ankitm123
Copy link
Member

I think this is an acceptable workaround. Something more we can do is look at the KUBECONFIG environment variable and loop over the files defined there. Not sure if that is worth it tbh since we already have a --kubeconfig flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants