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

error when requesting multiple blocks with get_blocks API #1629

Closed
loon3 opened this issue Apr 10, 2024 · 1 comment
Closed

error when requesting multiple blocks with get_blocks API #1629

loon3 opened this issue Apr 10, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@loon3
Copy link

loon3 commented Apr 10, 2024

The following method...

{
	"method": "get_blocks",
	"jsonrpc": "2.0",
	"params": {
        "block_indexes" : [800000, 800001]
	},
	"id": 0
}

returns the following error...

{
    "error": {
        "code": -32000,
        "message": "Server error",
        "data": {
            "type": "SQLError",
            "args": [
                "SQLError: row value misused"
            ],
            "message": "SQLError: row value misused"
        }
    },
    "id": 0,
    "jsonrpc": "2.0"
}

Calling the same method with a single block specified "block_indexes" : [800000] appears to return the correct block and message information.

@ouziel-slama
Copy link
Contributor

Should be fixed with #1630

@adamkrellenstein adamkrellenstein added this to the v10.1.0 milestone Apr 12, 2024
This was referenced Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants