yaptide / ui

Yet Another Particle Transport IDE - frontend
https://yaptide.github.io/web_dev/
GNU General Public License v3.0
9 stars 4 forks source link

Present meaningful message to user when backend is unreachable #1785

Open grzanka opened 1 month ago

grzanka commented 1 month ago

I've tried to check what happens if frontend it working, but backend is dead and users tries to login via plgrid on yap-dev. The message to the user is meaningless in that case. See movie below

Screencast from 2024-10-17 15-42-12.webm

grzanka commented 1 day ago

Backend can be unreachable for couple of reasons: it can be dead or connection can be blocked by firewall. We saw today second reason. User could reach https://yaptide.c3.plgrid.pl/ and use the UI, when logging via plgrid user got redirected to keycloak. Unfortunately later got a following error: Zrzut ekranu 2024-11-15 181748

After some inspection we realized that user was using "Guest WiFi" network in IFJ PAN. In this network also an attempt to connect to https://yaptide.c3.plgrid.pl:8443/ (this endpoint returns hello world and doesn't require authentication) failed.

I suggest to add much clearer indication whether backend is reachable or not. If backend is not reachable it doesn't make sense to let the user through logging process.