On calling the smart contract (which have been deployed to rpc server) I am getting the error : getaddrinfo EAI_AGAIN ... The smart contract is working fine when I use test blockchain(gnache) but shows above error when I deploy it to my private ethereum blockchain(PoA). smart contract is doing some heavy read write operation as i am sending array of information
caller function
async function addBulkDocument(nonceArray, userWallet, ipfsHashArray, creatorPasswordArray, ownerPasswordArray, ownerAddressArray, sourcePasswordArray, sourceAddressArray, publicKeyArray, descriptionArray,notaryDataArray) {
try {
console.log("---------------------->",notaryDataArray);
let contractWithSigner = DOCUMENT_CONTRACT.connect(userWallet);
const txn = await contractWithSigner["addBulkDocument(string[],string[],string[],address[],string[],address[],string[],string[],string[])"](ipfsHashArray, creatorPasswordArray, ownerPasswordArray, ownerAddressArray, sourcePasswordArray, sourceAddressArray, publicKeyArray, descriptionArray,notaryDataArray, {
nonce: nonceArray[0],
gasLimit: 6721975,
gasPrice: ether.utils.parseUnits('200000000000', 'wei')
})
const minedTxn = await txn.wait()
console.log('mined transaction------------------------->', minedTxn)
return { value: minedTxn }
// if (minedTxn.status === 1) {
// return { value: minedTxn }
// }
// else {
// return { error: minedTxn }
// }
}
catch (err) {
logger.logError(err)
console.log('transaction', err)
return { error: new CustomError(err, "error") }
}
}
genesis file
{
"config": {
"chainId": 2222,
"homesteadBlock": 0,
"eip150Block": 0,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"clique": {
"period": 5,
"epoch": 30000
}
},
"nonce": "0x0",
"timestamp": "0x615edaad",
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000c348016c306cac0d1f86eefbbdff2bbcbb3667e50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0x38D7EA4C67FFFFF",
"difficulty": "0x1",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
"alloc": {
"0000000000000000000000000000000000000000": {
"balance": "0x1"
},
"91a7df8b1820ab79d3a5b3c4fd35d4ef38b105f8": {
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
},
"c348016c306cac0d1f86eefbbdff2bbcbb3667e5": {
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
}
},
"number": "0x0",
"gasUsed": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"baseFeePerGas": null
}