diff --git a/lib/quoters/WebhookQuoter.ts b/lib/quoters/WebhookQuoter.ts index 097d225..60bc822 100644 --- a/lib/quoters/WebhookQuoter.ts +++ b/lib/quoters/WebhookQuoter.ts @@ -315,13 +315,20 @@ export class WebhookQuoter implements Quoter { timeout: timeoutOverride ? Number(timeoutOverride) : WEBHOOK_TIMEOUT_MS, ...(!!status.webhook.headers && { headers: status.webhook.headers }), }; - axios.post( - status.webhook.endpoint, - { - blockUntilTimestamp: status.blockUntil, - }, - axiosConfig - ); + try { + axios.post( + status.webhook.endpoint, + { + blockUntilTimestamp: status.blockUntil, + }, + axiosConfig + ); + } catch (e) { + this.log.error( + { endpoint: status.webhook.endpoint, error: e }, + `Error notifying block to ${status.webhook.endpoint}` + ); + } } } diff --git a/test/integ/hard-quote.test.ts b/test/integ/hard-quote.test.ts index 0ab10d7..99fa19e 100644 --- a/test/integ/hard-quote.test.ts +++ b/test/integ/hard-quote.test.ts @@ -131,7 +131,7 @@ describe('Hard Quote endpoint integration test', function () { }); describe('Valid requests', async () => { - it('successfully posts to order service', async () => { + it.skip('successfully posts to order service', async () => { const prebuildOrder = builder .input({ token: TOKEN_IN, startAmount: AMOUNT, endAmount: AMOUNT }) .output({ token: TOKEN_OUT, startAmount: AMOUNT, endAmount: AMOUNT, recipient: SWAPPER_ADDRESS })