No proper error being raised if API_SERVER is unreachable
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.
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 , I also face the same issue, if your issue is resolved can you help me to resolve this issue?
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?