-
Notifications
You must be signed in to change notification settings - Fork 3
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
Hello World Offchain Contract IO Blocking #103
Labels
bug
Something isn't working
Comments
This was referenced May 10, 2022
Here's a description of that error term:
|
Reproduced in Uniswap: IntersectMBO/plutus-apps#451 |
AFAICT this pertains to PAB which we no longer use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
Currently, our
initialize
endpoint logic inHelloWorld.Contract
looks like this:The key line is
_ <- waitNSlots 1
. This line was added to make the unit tests pass. Unfortunately, when we run the local-cluster for real, it blocks infinitely. This was discovered when implementing #67, as this obviously impacts the e2e tests. The reason it wasn't initially discovered is that we don't know the contract gets "stuck" unless we check the observable state. Thus the tests should be updated to actually check this state, but we cannot do that until we first fix this issue.If we remove the
_ <- waitNSlots 1
line, we receive this error:So right now we have a choice between two errors:
Reproducing
First error (infinite blocking)
Run:
Once that is up, from a second terminal:
Had the
initialize
step completed, theobservableState
in the final json output should not benull
. Alternatively, you can edit theinitializeHandler
to callerror "die"
after the_ <- waitNSlots 1
line, which would crash the server (and show up in the console logs) if we were not getting blocked.Second error (lookup)
Reproducing the 2nd error is the same as above, except you must comment out the
_ <- waitNSlots 1
line, and there is no need to run the final status curl. Instead, check the cluster logs after the 2nd curl command withinitialize
. You should see the error message in the terminal.CC @CSVdB, @marijanp, @locallycompact
The text was updated successfully, but these errors were encountered: