If a server returns a request with no body, the call to response.json() will cause an uncaught exception: "Uncaught SyntaxError: Unexpected end of JSON input".
The line const json = await response.json() as T; in method performRequest() of rest-client.ts causes the exception.
If a server returns a request with no body, the call to response.json() will cause an uncaught exception: "Uncaught SyntaxError: Unexpected end of JSON input".
The line
const json = await response.json() as T;
in methodperformRequest()
of rest-client.ts causes the exception.