MCPcopy Create free account
hub / github.com/EvoMap/evolver / makeVertexGatewayError

Function makeVertexGatewayError

src/proxy/index.js:91–98  ·  view source on GitHub ↗
(err, fallbackStatus = 502)

Source from the content-addressed store, hash-verified

89}
90
91function makeVertexGatewayError(err, fallbackStatus = 502) {
92 const name = err && err.name ? String(err.name) : '';
93 const isTimeout = name === 'TimeoutError' || name === 'AbortError';
94 const out = new Error(isTimeout ? 'vertex upstream timed out' : 'vertex upstream request failed');
95 out.statusCode = isTimeout ? 504 : fallbackStatus;
96 out.cause = err;
97 return out;
98}
99
100// The hub serves asset signal-search as `GET /a2a/assets/search` with query
101// params (signals, status, limit, fields, domain); `signals`/`fields` are

Callers 2

_proxyVertexMethod · 0.85
readTextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected