Skip to content

Incorrect error message when batch request size is beyond node's limit #742

@Hanssen0

Description

@Hanssen0

Describe the bug
Methods related to createBatchRequest (e.g. refreshScriptConfigs throws Uncaught (in promise) TypeError: A.map is not a function if the batch size is beyond node's limit. Expected to have something like batch size is too large, expect it less than: 1.

To Reproduce
Invoke methods related to createBatchRequest on a node with batch size limit.

Expected behavior
A clear reminder for developers to know when they should switch nodes

Screenshots

Image

Image

Additional context

CKB Node's Batch Size Limit

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions