Skip to content

The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined #5

@petersalomonsen

Description

@petersalomonsen

While this works fine with regular RPC, it does not when using fastrpc.

http post https://fastrpc.mainnet.near.org jsonrpc=2.0 id=dontcare method=query \
  params:='{
    "request_type": "call_function",
    "block_id": 55759972,
    "method_name": "web4_get",
    "account_id": "psalomo.near",
    "args_base64": "eyJyZXF1ZXN0IjogeyJwYXRoIjogIi9uZnRpbWFnZS8xLnN2ZyJ9fQ=="
    }'

returns:

HTTP/1.1 400 Bad Request
Content-Length: 140
Date: Thu, 23 Dec 2021 14:02:49 GMT
Server: Google Frontend
X-Cloud-Trace-Context: f5e95c019083877c5ecafe93fa8847ca;o=1
content-type: text/plain; charset=utf-8

Error: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions