Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Clio returns invalidParam when Rippled returns malformedRequest #1731

Open
PeterChen13579 opened this issue Nov 12, 2024 · 0 comments
Open
Labels
bug Something isn't working
Milestone

Comments

@PeterChen13579
Copy link
Collaborator

PeterChen13579 commented Nov 12, 2024

Because authorized uses AccountBase58Validator and a lot of RPC fields calls this validator, it is not easy to change.
Request:

{
    "method": "ledger_entry",
    "params": [
        {
            "deposit_preauth" : {
                "owner": "rJ7ywemHxbCkGNskVXs8oWciSL77Nnn7d",
                "authorized": 123
                
            }
        }
    ]
}

rippled response:
{ "result": { "error": "malformedRequest", "ledger_current_index": 3, "request": { "command": "ledger_entry", "deposit_preauth": { "authorized": 123, "owner": "rJ7ywemHxbCkGNskVXs8oWciSL77Nnn7d" } }, "status": "error", "validated": false } }

Clio response:
{ "result": { "error": "invalidParams", "error_code": 31, "error_message": "authorizedNotString", "status": "error", "type": "response", "request": { "method": "ledger_entry", "params": [ { "deposit_preauth": { "owner": "rJ7ywemHxbCkGNskVXs8oWciSL77Nnn7d", "authorized": 123 } } ] } }, "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" }, { "id": 2002, "message": "This server may be out of date" } ] }

@PeterChen13579 PeterChen13579 added the bug Something isn't working label Nov 12, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Clio Nov 12, 2024
@PeterChen13579 PeterChen13579 added this to the Future milestone Nov 12, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant