Skip to content

"Invalid string length" error when querying states #6122

@jshufro

Description

@jshufro

Describe the bug

curl -Ssv "http://consensus:5052/eth/v2/debug/beacon/states/finalized"
*   Trying 172.21.0.12:5052...
* Connected to consensus (172.21.0.12) port 5052
> GET /eth/v2/debug/beacon/states/finalized HTTP/1.1
> Host: consensus:5052
> User-Agent: curl/8.4.0
> Accept: */*
> 
< HTTP/1.1 500 Internal Server Error
< vary: Origin
< access-control-allow-origin: *
< content-type: application/json; charset=utf-8
< content-length: 84
< Date: Thu, 23 Nov 2023 04:16:45 GMT
< Connection: keep-alive
< Keep-Alive: timeout=72
< 
{ [84 bytes data]
* Connection #0 to host consensus left intact
{"statusCode":500,"error":"Internal Server Error","message":"Invalid string length"}

Expected behavior

State json or an error that is more descriptive

Steps to reproduce

(see above curl)

Additional context

No response

Operating system

Linux

Lodestar version or commit hash

v1.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    meta-bugIssues that identify a bug and require a fix.prio-lowThis is nice to have.scope-devexIssues for improving developer experience.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions