DSpace / dspace-angular

DSpace User Interface built on Angular.io
https://wiki.lyrasis.org/display/DSDOC8x/
BSD 3-Clause "New" or "Revised" License
126 stars 417 forks source link

When backend service is down, Node's behavior is unhelpful #543

Open mwoodiupui opened 4 years ago

mwoodiupui commented 4 years ago

When the back-end is unavailable (for example: Tomcat has crashed) the front-end's behavior is rather unhelpful: the browser displays an empty page, while Node spews reams of unrevealing stuff on the console.

[13:31:46 GMT-0500 (Eastern Standard Time)] Listening at http://localhost:3000/ Environment: %cProduction color: red; font-weight: bold; Error: HttpErrorResponse { headers: HttpHeaders { normalizedNames: Map {}, lazyUpdate: null, headers: Map {} }, status: 0, statusText: 'Unknown Error', url: null, ok: false, name: 'HttpErrorResponse', message: 'Http failure response for (unknown url): 0 Unknown Error',

mwoodiupui commented 4 years ago

There's probably quite a few of these. I note that DSpace just sits there running its marching-dots busy indicator forever if Solr is unavailable or if some misconfiguration causes the front-end to request a nonexistent URL.