You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observe that the call to SendRequestAndWaitForReceiptAsync does not return and hangs indefinitely.
Expected Behavior:
The SendRequestAndWaitForReceiptAsync method should return a transactionReceipt after the transaction is processed.
Actual Behavior:
The SendRequestAndWaitForReceiptAsync method hangs indefinitely and does not return a transactionReceipt.
Environment:
.NET version: net6.0
Nethereum version: 4.20.0
Possible Cause:
This issue might be related to network connectivity, incorrect contract address, or issues with the blockchain node. Further investigation is required to pinpoint the exact cause.
Suggested Solutions:
Verify the network connectivity and ensure that the blockchain node is reachable.
Check the contract address and other parameters passed to the mintFunction.
Consider adding a timeout to the SendRequestAndWaitForReceiptAsync method call to avoid indefinite hanging.
Enable logging to capture more details about the transaction process.
Additional Information:
Any additional information or logs that can help in diagnosing the issue.
The text was updated successfully, but these errors were encountered:
according to your MintWithCustomerIdAndTransactionIdFunction it's a FunctionMessage which derives from ContractMessageBase. If You don't set required properties such Nonce it will never receive receipt.
In your request var transactionReceipt = await contractHandler.SendRequestAndWaitForReceiptAsync(mintFunction); you didn't set cancellation token with any timeout wich is an optional parameter when calling this (Task<TransactionReceipt> SendRequestAndWaitForReceiptAsync(string contractAddress, TContractMessage functionMessage, CancellationToken cancellationToken);)
Description:
The
SendRequestAndWaitForReceiptAsync
method in the following code is hanging indefinitely and does not return thetransactionReceipt
.Code Snippet:
Steps to Reproduce:
SendRequestAndWaitForReceiptAsync
does not return and hangs indefinitely.Expected Behavior:
The
SendRequestAndWaitForReceiptAsync
method should return atransactionReceipt
after the transaction is processed.Actual Behavior:
The
SendRequestAndWaitForReceiptAsync
method hangs indefinitely and does not return atransactionReceipt
.Environment:
Possible Cause:
This issue might be related to network connectivity, incorrect contract address, or issues with the blockchain node. Further investigation is required to pinpoint the exact cause.
Suggested Solutions:
mintFunction
.SendRequestAndWaitForReceiptAsync
method call to avoid indefinite hanging.Additional Information:
Any additional information or logs that can help in diagnosing the issue.
The text was updated successfully, but these errors were encountered: