-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Failure to query tx by hash or txs by events via legacy API #7281
Comments
This appears related to marshaling a public key with amino when that isn't supported. This will be address in #7276. |
Tested with #7276
on the legacy 1317 interface |
Is this still an issue now that #7276 has been merged? |
I'm seeing this bug again on http://34.66.55.131:1317/txs?transfer.recipient=cosmos1q9wtnlwdjrhwtcjmt2uq77jrgx7z3usrq2yz7z |
I added (thorough) tests in #7992, however, I am still failing to reproduce the issue on simapp. @zmanian Do you have by any chance the txHash of this tx? I'll query it via gRPC, see its content, reproduce the same tx on simapp, and try querying it again. @clevinson I see you re-opened, did you manage to reproduce? |
I couldn't reproduce this either. |
This isn't happening for every tx. For instance this works. http://34.66.55.131:1317/txs?transfer.recipient=cosmos13qhqwhzx74703avazhuf5hfxkwdx6wvsea4vgt |
This also produces the error. |
Could you provide the details of a failing tx? A txHash should suffice. |
There is evidence that is related to the existence of an IBC transaction in the response path. |
For instance, http://34.66.55.131:1317/txs?transfer.recipient=cosmos1h2gacd88hkvlmz5g04md87r54kjf0klnwt25n9 has received an ibc transfer. http://34.66.55.131:1317/txs?transfer.recipient=cosmos13qhqwhzx74703avazhuf5hfxkwdx6wvsea4vgt has not received an IBC transfer. |
Printing a pretty error message on IBC txs has been solved in #7856, which I believe isn't included in rc3. However, looking at that PR, i'm not 100% sure it handles all potential errors, so I added this: #7992 (comment) |
What is the grpc query path to get transactions by tag? |
|
How do you use the grpc endpoint with query parameters? http://34.66.55.131:1317/cosmos/tx/v1beta1/txs?transfer.recipient=cosmos1q9wtnlwdjrhwtcjmt2uq77jrgx7z3usrq2yz7z doesn't work |
@faboweb Unfortunately we only added the Here's basic reference docs for using query parameters w/ grpc gateway |
Also, looks like the URL is slightly different. It takes event query params with |
Any ETA on the next release version? |
Can someone please post an example URL with the query params? Ideally @faboweb's initial query |
The new endpoint for querying txs by event: However, as Cory said, there's no live public node running SDK master. This test on simapp might also help. |
does the second |
@faboweb @aaronc I've just ran locally and verified that querying for single event attributes does work without URL encoding the value of Example: The correct request URL should look like: @faboweb as for a next release version, we're currently coordinating with @zmanian to figure out the best timing for a next RC. Most likely sometime next week is my guess. |
@clevinson did you try with multiple event queryParam entries, something like below
|
@clevinson #8029 makes the event query params to be url escaped. The following request should work now:
|
Addressed in #8039 .
|
FYI, the latest params of querying txs looks like this: |
Summary of Bug
An attempt to query for a tx by hash or a set of tx(s) by event(s) via the legacy API yields the following error:
Version
master -- d4b0e5b
Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: