Skip to content
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

Substreams RPC should return InvalidArgument error gRPC code when cursor is after stop block num #556

Open
maoueh opened this issue Oct 23, 2024 · 0 comments

Comments

@maoueh
Copy link
Contributor

maoueh commented Oct 23, 2024

If you have a cursor misconfigured and you try to start a request with it but with less blocks, you receive such error:

2024-10-23T10:20:28.010-0400 ERRO (substreams-sink-files) substreams encountered a retryable error {"error": "rpc error: code = Internal desc = build request details: invalid_argument: StartCursor \"c1:17:20999999:215f1fa046ff46999f1a91973d7cc39c6d4e7aa64d3de3a40d31591f543c3386:20999999:215f1fa046ff46999f1a91973d7cc39c6d4e7aa64d3de3a40d31591f543c3386\" is after StopBlockNum 12426741"}

However, the rpc error code returned is Internal, this indicates potential retry. The code here should have been InvalidArgument, the substreams-sink library does not retry in InvalidArgument error as it indicates operator error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant