I wrote this specifically for the most likely reason Zza isn’t showing data; I often forget to start MongoDb. It’s pretty rare to run the app and not have node running; how would the page have been served in the first place?

 

From: Thomas Burleson [mailto:notifications@github.com] 
Sent: Thursday, April 10, 2014 5:15 AM
To: Breeze/breeze.js.samples
Cc: Ward Bell
Subject: Re: [breeze.js.samples] Development/zza cosmetics and file shuffling (#8)

 

In node/zza-node-mongo/client/app/services/util.js:

> @@ -79,6 +80,17 @@
>              };
>          }
>  
> +        // filter some http errors
> +        function filterHttpError(error){
> +            var message = error.message;
> +            var response = error.httpResponse;
> +            var status = error.status;
> +            if (status === 0 && !message ){
> +                error.message = 'It appears the request timed-out. Is the MongoDb server running?';

From a client's perspective, should the error not say: "... Is the NodeJS server running ?"
The app-server - if needed - can report an error message [ sent to the client] that "... the MongoDb server does not appear to be running".

—
Reply to this email directly or view it on GitHub <https://github.com/Breeze/breeze.js.samples/pull/8/files#r11481440> .