Skip to content

RPC daemon is unable to handle messages that exceed accepted frame size #2719

Closed
@swtrse

Description

System information

Erigon version: 2021.09.3-alpha

OS: Linux

Expected behavior

Rpc daemon serves request or at least there should be a way to configure the maximum accepted frame size.

Actual behavior

Rpc daemon throws error that is only visible if verbosity is set to debug level.

Steps to reproduce the behavior

  1. Run rpc daemon and erigon configured for ropsten
  2. Use bitcore-node configured to use erigon and rpc daemon as client.

Backtrace

Sep 22 14:19:25 Testlab.locallan rpcdaemon[86274]: [DBUG] [09-22|14:19:25.378] RPC connection read error                err="websocket: close 1009 (message too big): Frame size of 1684603 bytes exceeds maximum accepted frame size"
Sep 22 14:19:27 Testlab.locallan rpcdaemon[86274]: [DBUG] [09-22|14:19:27.392] Served                                   t=257.984µs method=eth_blockNumber reqid=214 params=[]
Sep 22 14:19:27 Testlab.locallan rpcdaemon[86274]: [DBUG] [09-22|14:19:27.427] Served                                   t=32.955311ms method=eth_getBlockByNumber reqid=215 params="[\"0x906d5\",true]"
Sep 22 14:19:27 Testlab.locallan rpcdaemon[86274]: [DBUG] [09-22|14:19:27.484] RPC connection read error                err="websocket: close 1009 (message too big): Frame size of 1684603 bytes exceeds maximum accepted frame size"
Sep 22 14:19:29 Testlab.locallan rpcdaemon[86274]: [DBUG] [09-22|14:19:29.501] Served                                   t=427.106µs method=eth_blockNumber reqid=218 params=[]
Sep 22 14:19:29 Testlab.locallan rpcdaemon[86274]: [DBUG] [09-22|14:19:29.551] Served                                   t=41.586673ms method=eth_getBlockByNumber reqid=219 params="[\"0x906d5\",true]"
Sep 22 14:19:29 Testlab.locallan rpcdaemon[86274]: [DBUG] [09-22|14:19:29.616] RPC connection read error                err="websocket: close 1009 (message too big): Frame size of 1684603 bytes exceeds maximum accepted frame size"
Sep 22 14:19:31 Testlab.locallan rpcdaemon[86274]: [DBUG] [09-22|14:19:31.625] Served                                   t=287.309µs method=eth_blockNumber reqid=222 params=[]
Sep 22 14:19:31 Testlab.locallan rpcdaemon[86274]: [DBUG] [09-22|14:19:31.669] Served                                   t=41.221775ms method=eth_getBlockByNumber reqid=223 params="[\"0x906d5\",true]"
Sep 22 14:19:31 Testlab.locallan rpcdaemon[86274]: [DBUG] [09-22|14:19:31.762] RPC connection read error                err="websocket: close 1009 (message too big): Frame size of 1684603 bytes exceeds maximum accepted frame size"
Sep 22 14:19:33 Testlab.locallan rpcdaemon[86274]: [DBUG] [09-22|14:19:33.770] Served                                   t=220.783µs method=eth_blockNumber reqid=226 params=[]
Sep 22 14:19:33 Testlab.locallan rpcdaemon[86274]: [DBUG] [09-22|14:19:33.818] Served                                   t=46.503206ms method=eth_getBlockByNumber reqid=227 params="[\"0x906d5\",true]"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions