dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

No proper error being raised if API_SERVER is unreachable

Open Faakhir30 opened this issue 1 year ago • 2 comments

What happened?

I was setting up this repo locally in dev envoirement to contribute to KubeEdge Dashboard Enhancement Project for the upcoming LFX term.

On dev envoirement startup, if the api server isnt correct it should raise appropriate error instead if Invalid Token with a status code 500.

Image

What did you expect to happen?

More suitable error would be Api server is unreachable .

How can we reproduce it (as minimally and precisely as possible)?

NODE_TLS_REJECT_UNAUTHORIZED=0 API_SERVER=invalid_server_ip:port npm run dev

Anything else we need to know?

No response

What browsers are you seeing the problem on?

Chrome

KubeEdge Dashboard version

latest main branch

KubeEdge version

1.20.0

Dev environment

No response

Faakhir30 avatar Jan 23 '25 16:01 Faakhir30

@Faakhir30 , I also face the same issue, if your issue is resolved can you help me to resolve this issue?

eyeaadil avatar Feb 06 '25 18:02 eyeaadil

Hello,

The invalid token is a temporary placeholder here, and we show the server response in the toast.

Do you have any better ideas or suggestions?

ghosind avatar Feb 19 '25 06:02 ghosind