8000 Clio doesn't accept canonical names for type in account_objects · Issue #2275 · XRPLF/clio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Clio doesn't accept canonical names for type in account_objects #2275
Open
@mounikakun

Description

@mounikakun

Issue Description

For a value of type in account_objects, Clio accepts only Short Name but not Canonical Name listed in the document, whereas rippled does both.

Steps to Reproduce

Sample Request:

{
    "method": "account_objects",
    "params": [
        {
            "account": "rrhHkGLpow1GxEVJhi1LKzBRqzifJEaka5",
            "deletion_blockers_only": false,
            "limit": 20,
            "validated": true,
            "type": "Escrow"
        }
    ]
}

Expected Result

Rippled response:

{
    "result": {
        "account": "rrhHkGLpow1GxEVJhi1LKzBRqzifJEaka5",
        "account_objects": [
            {
                "Account": "rPuijb9MYVFLdv4YjRc4gzUDDrHWNAWrb6",
                "Amount": {
                    "currency": "USD",
                    "issuer": "rhtTyZXorjvoz1JCMSYNLcY7x6LL7mwC2d",
                    "value": "10000"
                },
                "CancelAfter": 804783958,
                "Destination": "rrhHkGLpow1GxEVJhi1LKzBRqzifJEaka5",
                "DestinationNode": "0",
                "FinishAfter": 804783932,
                "Flags": 0,
                "IssuerNode": "0",
                "LedgerEntryType": "Escrow",
                "OwnerNode": "0",
                "PreviousTxnID": "FF857C63ECCBCF8D27B625497A064AE7BA2E22022BE4DAF9DBDB143600A5E7A4",
                "PreviousTxnLgrSeq": 166853,
                "index": "1E89B5CEC00DED60972861C31CA13FE2BD2EFCF414C6DB06ABB35A333895AFBA"
            }
        ],
        "ledger_current_index": 172498,
        "status": "success",
        "validated": false
    }
}

Actual Result

Clio response:

{
    "result": {
        "error": "invalidParams",
        "error_code": 31,
        "error_message": "Invalid field 'type'.",
        "status": "error",
        "type": "response",
        "request": {
            "method": "account_objects",
            "params": [
                {
                    "account": "rrhHkGLpow1GxEVJhi1LKzBRqzifJEaka5",
                    "deletion_blockers_only": false,
                    "limit": 20,
                    "validated": true,
                    "type": "Escrow"
                }
            ]
        }
    },
    "warnings": [
        {
            "id": 2001,
            "message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"
        }
    ]
}

Environment

Supporting Files

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0