-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
I have an email on nvimp.com domain. With this, the app will attempt fetching rules from https://fes.nvimp.com/api/ and fail, because there is no FES running there.
Most customers will not run our server software on their domain, therefore this is an expected / normal scenario and the app should continue working.
Follow this logic when calling FES first time to determine if it's running or not in getActiveFesUrl:
call `https://fes.<domain>/api/`, process the response:
-> did I receive a response and it's status 200, it's a JSON and has the right service value? -> use FES
-> did I receive a response and it's status 404? -> don't use FES
-> did I receive a response and it's other status 4xx or 5xx? -> show error to user
-> did I NOT receive a response (server down or timeout) and the internet is otherwise working? -> don't use FES
-> did I NOT receive a response (server down or timeout) and the internet is not working? -> show error to user
That means if I call https://fes.nvimp.com/api/ and the server is down, but internet is working, then this user does not use FES.
Reactions are currently unavailable