MCPcopy Create free account
hub / github.com/datalust/seq-logging / _httpOrNetworkError

Method _httpOrNetworkError

seq_logger.js:235–238  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

233 }
234
235 _httpOrNetworkError(res) {
236 const networkErrors = ['ECONNRESET', 'ENOTFOUND', 'ESOCKETTIMEDOUT', 'ETIMEDOUT', 'ECONNREFUSED', 'EHOSTUNREACH', 'EPIPE', 'EAI_AGAIN', 'EBUSY'];
237 return networkErrors.includes(res) || 500 <= res.status && res.status < 600;
238 }
239
240 _post(batch, bytes) {
241 let attempts = 0;

Callers 1

sendRequestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected