Closed raduciobanu22 closed 1 year ago
Could you please provide the full HTTP request/response and queries? maybe curl log?
curl -X POST https://api.chainweb.com/chainweb/0.0/mainnet01/chain/0/pact/api/v1/poll -H "Content-Type: application/json" -d '@data.log' > api.chainweb.com.txt
data.log
Outputs result for only 21 of the 41 requests.
Just adding this because I validated the test he send on discord.
The API doc for /poll
mentions the response will contain "The command results for some of the requested request keys." (source: https://api.chainweb.com/openapi/pact.html#tag/endpoint-poll/paths/~1poll/post) but this is kinda strange and raised questions if this is really intended by design or something unexpected/ some change.
curl -X POST https://api.chainweb.com/chainweb/0.0/mainnet01/chain/0/pact/api/v1/poll -H "Content-Type: application/json" -d '@data.log' > api.chainweb.com.txt
data.log Outputs result for only 21 of the 41 requests. Just adding this because I validated the test he send on discord. The API doc for/poll
mentions the response will contain "The command results for some of the requested request keys." (source: https://api.chainweb.com/openapi/pact.html#tag/endpoint-poll/paths/~1poll/post) but this is kinda strange and raised questions if this is really intended by design or something unexpected/ some change.
Thanks George!
Do we have any update on this? Are any other examples needed?
We're looking into this for the next release. Thanks for the repro @trendzetter !
When fetching multiple tx results at once using the
/poll
endpoint some of the request keys are ignored even though they are valid. I am able to retrieve the result for those missing if I use the same endpoint and pass a single request key instead of a list of them. For example here's a list of request keys from chain 0:I'm getting results only for these:
I suspect this is a regression. Tested on 2.19, 2.20, same issue on both versions.