eclipse-cdt-cloud/tsp-typescript-client

Responses with no body cause uncaught exception

bhufmann opened this issue · 1 comments

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.

Fixed with #15