From 750d957fbca3cc23db02861c2a3dbb10dc51f514 Mon Sep 17 00:00:00 2001 From: Arie Trouw Date: Sat, 4 Nov 2023 12:08:30 -0700 Subject: [PATCH] axios timeout increased --- .../packages/collection/witness/src/lib/getNftCollectionNfts.ts | 2 +- .../nft/packages/nft/packages/witness/src/lib/getNftFields.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/packages/payloadset/packages/crypto/packages/nft/packages/collection/witness/src/lib/getNftCollectionNfts.ts b/packages/plugins/packages/payloadset/packages/crypto/packages/nft/packages/collection/witness/src/lib/getNftCollectionNfts.ts index b607c4a8136..ba0ed79ce4c 100644 --- a/packages/plugins/packages/payloadset/packages/crypto/packages/nft/packages/collection/witness/src/lib/getNftCollectionNfts.ts +++ b/packages/plugins/packages/payloadset/packages/crypto/packages/nft/packages/collection/witness/src/lib/getNftCollectionNfts.ts @@ -50,7 +50,7 @@ export const getNftCollectionNfts = async ( if (nonEvaluableContractAddresses.includes(contractAddress.toUpperCase())) { throw new Error(`Unable to evaluate collection with contractAddress: ${contractAddress}`) } - const axios = new AxiosJson({ timeout: 500 }) + const axios = new AxiosJson({ timeout: 2000 }) const provider = getProviderFromEnv(chainId) const enumerable = ERC721Enumerable__factory.connect(contractAddress, provider) const storage = ERC721URIStorage__factory.connect(contractAddress, provider) diff --git a/packages/plugins/packages/payloadset/packages/crypto/packages/nft/packages/nft/packages/witness/src/lib/getNftFields.ts b/packages/plugins/packages/payloadset/packages/crypto/packages/nft/packages/nft/packages/witness/src/lib/getNftFields.ts index d9068d72901..bb6fd12440e 100644 --- a/packages/plugins/packages/payloadset/packages/crypto/packages/nft/packages/nft/packages/witness/src/lib/getNftFields.ts +++ b/packages/plugins/packages/payloadset/packages/crypto/packages/nft/packages/nft/packages/witness/src/lib/getNftFields.ts @@ -46,7 +46,7 @@ export const getNftFields = async ( */ tokenId: string, ): Promise => { - const axios = new AxiosJson({ timeout: 500 }) + const axios = new AxiosJson({ timeout: 2000 }) const storage = ERC721URIStorage__factory.connect(contractAddress, provider) const supply1155 = ERC1155Supply__factory.connect(contractAddress, provider) const { type: nftType } = await getNftCollectionMetadata(contractAddress, provider)