-
Notifications
You must be signed in to change notification settings - Fork 180
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
[Access] Invalid GRCP status code returned for transaction with cadence runtime error #4494
Comments
hey @bartolomej , this is probably an emulator bug, I will check and make a PR. |
@bluesign Awesome, thanks! Right, wasn't really sure where this belongs. I just assumed this emulator consumes the flow-go directly, but now I see there is actually an adapter that calls into emulator-specific code, so that does sound more likely indeed! |
There's a bit of confusion here. flow-go/engine/execution/rpc/engine.go Line 306 in 37ece4c
That section of the FCL docs was just talking generally about GRPC status codes, not specifically about this field. Which is confusing since it's immediately after the status field.
Line 66 in 37ece4c
|
@peterargue Interesting.
In that case, I think there may be a mistake in the FCL-JS documentation then because the docs literally links to the GRCP status section for that |
PR to update the docs: onflow/docs#149 |
Closing this issue since I think it was addressed already by a doc update. Feel free to reopen if there's still an issue |
🐞 Bug Report
FCL-JS documentation mentions that
statusCode
(on transaction status message) is a standard GRCP core status code: https://grpc.github.io/grpc/core/md_doc_statuscodes.htmlBut I've seen a transaction result endpoint returning a status code that doesn't match any of the standard status codes (1101):
What is the severity of this bug?
Could have: It really doesn't matter if we do this (product functions without this, impact to user is minimal).
Reproduction steps
Steps to reproduce the behavior:
/v1/transaction_results/<tx_id>
status_code = 1101
.Expected behavior
Returned GRCP status codes should have a range of 0-16 and follow the GRCP standard.
Specifications
Additional context
I noticed this while doing maintenance work for Flowser tool in the scope of: onflow/developer-grants#150.
For context, this is impacting just our transaction status UI, which doesn't know how to handle such status (notice the question mark icon):
The text was updated successfully, but these errors were encountered: