nasa / openmct-tutorial

A tutorial for OpenMCT that guides you through integrating historical and realtime telemetry.
Other
245 stars 104 forks source link

http.js does not handle error response codes gracefully #27

Open akhenry opened 6 years ago

akhenry commented 6 years ago

In brief, it assumes the presence of a response header which will not be there in the event of an error response. This causes an exception to be thrown for many valid http response codes, rather than a promise rejection which is the desired behavior.

See https://github.com/nasa/openmct/issues/1882#issuecomment-360226348 for steps to recreate.