Describe the bug
When the Celsius server is down, we receive the error The "signature" argument must be one of type string, Buffer, TypedArray, or DataView. Received type undefined -- because JSON parsing failed.
Stack Trace
The "signature" argument must be one of type string, Buffer, TypedArray, or DataView. Received type undefined
To Reproduce
Steps to reproduce the behavior:
Your nginx shows an error html instead of JSON
Connect with JS client SDK
Get cryptic error
Expected behavior
An error message mentioning that the remote server is unavailable. Maybe a 500 type error.
Additional context
A good error message helps to find and debug errors a lot easier and increases therefore adoption of the software.
Describe the bug When the Celsius server is down, we receive the error
The "signature" argument must be one of type string, Buffer, TypedArray, or DataView. Received type undefined
-- because JSON parsing failed.Stack Trace
To Reproduce Steps to reproduce the behavior:
Expected behavior An error message mentioning that the remote server is unavailable. Maybe a 500 type error.
Additional context A good error message helps to find and debug errors a lot easier and increases therefore adoption of the software.