bee
bee copied to clipboard
Not much information why postage stamp buying fails
Context
Bee 1.8.1
Summary
I was trying to buy a postage stamp and it failed. I tried to find out what is the problem and neither the error messages neither the logs are helpful.
The error I get from the endpoint is: Error: Internal Server Error: cannot create batch, status 500.
In the logs I only found this logline (with INFO verbosity):
"time"="2022-09-21 16:42:36.763231" "level"="error" "logger"="node/api" "msg"="create batch: create failed"
With DEBUG verbosity an additional line is printed:
"time"="2022-09-21 16:42:36.763211" "level"="debug" "logger"="node/api" "msg"="create batch: create failed" "error"="create batch: depth 17 bucketDepth 16 immutable false: transaction reverted"
The problem seems to be that the gas limit is too low for the transaction, but that can be deduced only by looking at the transactions (in blockscout).
Expected behavior
It would be good if either the error message or at least the logs would give some information to why there was an error.
Related #3240