MCPcopy Create free account
hub / github.com/api3dao/airnode / errorMsgFromAxiosError

Function errorMsgFromAxiosError

packages/airnode-node/src/api/index.ts:177–185  ·  view source on GitHub ↗
(e: AxiosError)

Source from the content-addressed store, hash-verified

175}
176
177export function errorMsgFromAxiosError(e: AxiosError): string {
178 if (e.response) {
179 return `with status code ${e.response.status}`;
180 } else if (e.request) {
181 return 'with no response';
182 } else {
183 return 'in building the HTTP request';
184 }
185}
186
187export async function performApiCall(
188 payload: ApiCallPayload

Callers 1

performApiCallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected