Skip to content

Commit

Permalink
Merge branch 'improve-api-errors' into release-v2.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed Jan 13, 2025
2 parents d571f98 + 3879baa commit bdf560f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/RestClient.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const RestClient = async (chainId, restUrls, opts) => {
}, opts)
const restUrl = await findAvailableUrl(restUrls, { timeout: 10000 })
const client = axios.create({ baseURL: restUrl, timeout: config.timeout });
axiosRetry(client, { retries: config.retries, shouldResetTimeout: true });
axiosRetry(client, { retries: config.retries, shouldResetTimeout: true, retryCondition: () => true });

function getAllValidators(pageSize, opts, pageCallback) {
return getAllPages((nextKey) => {
Expand Down Expand Up @@ -285,7 +285,7 @@ const RestClient = async (chainId, restUrls, opts) => {
}

function broadcast(params){
return client.post(apiPath('tx', `txs`), params, { timeout: 30000 })
return client.post(apiPath('tx', `txs`), params, { timeout: 30000, 'axios-retry': { retries: 0 } })
.then((res) => parseTxResult(res.data.tx_response))
}

Expand Down

0 comments on commit bdf560f

Please sign in to comment.