-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.on("error") fires even in the absence of errors #2831
Comments
Thanks for opening this issue. Did you configure the transactionConfirmationWorkflow as described in the documentation and mentioned in the release notes here on GitHub? The default value is 24 this means it has to wait 24 blocks until the receipt event gets triggered. |
I haven't! I'll take a look at that. Regardless, 24 blocks is about 6 minutes, right? Over the course of several hours, I see results from the "transactionHash" and "error" triggers, but nothing for "receipt". My assumption was that the immediate (seemingly spurious) call to "error" might be stopping any further processing. |
Thanks for the quick answer. I will test it too asap. |
I updated with:
The behavior is unchanged; "transactionHash" followed immediately by "error" with no "receipt". The transaction is then successfully mined.
|
Thanks for the test! Will test that asap. |
As a test, I changed things around to use just ".then" instead of the multiple ".on" calls:
That resulted in these errors:
Based on the error messages I thought I might need to specify the "defaultBlock" in the options, so I went ahead and did that like this:
Unfortunately that didn't change anything and the system generates those same errors even with the |
Thanks for the additional information! Could you reference a GitHub repository for having a deeper insight in your code? |
Sure. I just added the TypeScript source files here (I'm not sure that the history is clean on my main repository and haven't opened it up): https://github.com/justindthomas/issue-2831/blob/master/processor.ts#L177 A lot of that code hasn't been touched in quite a while (a year or so) and I do know some of it is ineffective right now (e.g., the pattern matching on the error messages). My plan is to fix that once I get this issue sorted out. |
Could this be related to #2847? The reference to Parity and the getBlock call generating errors seem relevant. |
@justindthomas @nivida Yes your error from your logs seems to be the invalid Your error is exactly the error which would be thrown by the nodes if this happened:
#2847 should resolve this yes. |
Closed because #2487 did resolve this issue. |
Description
Using: 1.0.0-beta.55
Calling sendSignedTransaction, only the "transactionHash" and "error" handlers are firing, "receipt" is never triggered. The "error" handler is firing immediately even when there are no errors and the transaction is ultimately (and timely) mined.
Expected behavior
. . . should result in the "transactionHash" function being fired upon submission, followed by the "receipt" when the transaction is mined.
Actual behavior
The "transactionHash" is sent immediately, followed quickly by an "error" with an object that looks like:
The "receipt" handler is never triggered. The transaction is subsequently successfully mined.
Steps to reproduce the behavior
See above.
Error Logs
This is what it looks like in my logs. "dissolve" is just a standard contract call that flips a bit to indicate that the contract is no longer valid.
Versions
The text was updated successfully, but these errors were encountered: