cloud.51degrees.com is unreachable (simulated by specifying 127.0.0.1 cloud.51degrees.com in /etc/hosts file. We get these weird json-parsing errors for json endpoint throws exceptions:
cloud.51degrees.com is reachable but returns an error (f.e. a 500 status, achieved by the response rewrite via Charles Proxy) - we get an error that javascript fails to load and thus fod object is undefined:
Sometimes we get a combination of the two (it might depend on the state of the lazy properties of the CloudRequestEngine - whether they are loaded or not):
Objective
Please analyze and fix these failures - so that in either case javascript and/or json is returned gracefully, fod object is defined, the errors should be logged via console.log, but we should not get javascript crashes. The scenarios are produced by a pairwise product of WebPipeline state (lazy properties were loaded or not) and failure type (no connection, or an error of the cloud.51degrees.com resource).
Background
There are several situations:
127.0.0.1 cloud.51degrees.com
in /etc/hosts file. We get these weird json-parsing errors for json endpoint throws exceptions:Objective
Please analyze and fix these failures - so that in either case javascript and/or json is returned gracefully, fod object is defined, the errors should be logged via console.log, but we should not get javascript crashes. The scenarios are produced by a pairwise product of WebPipeline state (lazy properties were loaded or not) and failure type (no connection, or an error of the cloud.51degrees.com resource).