Thrown when a request did not get a clean answer from the server: TCP
connect timeout, socket reset, DNS failure, headers/body timeout,
malformed response, TLS proxy failure, etc. Distinct from
InvalidAuth (server answered with 401) and from generic
server errors (server answered with 4xx/5xx HTTP, see
YaleApiError).
Consumers can check err.code for the underlying transport code
(e.g. ECONNRESET, UND_ERR_CONNECT_TIMEOUT). The original error
is preserved on err.cause and err.originalError.
Network / transport-level failure.
Thrown when a request did not get a clean answer from the server: TCP connect timeout, socket reset, DNS failure, headers/body timeout, malformed response, TLS proxy failure, etc. Distinct from InvalidAuth (server answered with 401) and from generic server errors (server answered with 4xx/5xx HTTP, see YaleApiError).
Consumers can check
err.codefor the underlying transport code (e.g.ECONNRESET,UND_ERR_CONNECT_TIMEOUT). The original error is preserved onerr.causeanderr.originalError.