Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

TypeError: XDR Read Error: invalid XDR contract typecast - source buffer not entirely consumed #162

Open
kalepail opened this issue Oct 11, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@kalepail
Copy link
Contributor

Given this RPC Success response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "status": "SUCCESS",
        "latestLedger": "693",
        "latestLedgerCloseTime": "1697055104",
        "oldestLedger": "8",
        "oldestLedgerCloseTime": "1697054415",
        "applicationOrder": 1,
        "envelopeXdr": "AAAAAgAAAABM/sh/7MYdZX9I0kK+VhhJCI08/3+br7+bnQTJloun1AAWz0YAAACKAAAALQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAGAAAAAAAAAABSmgtC9yp8u8OFpLCO1387pjYQMSE4QqM0zkuGahOgDoAAAAKZ2x5cGhfbWludAAAAAAABAAAABIAAAAAAAAAAEz+yH/sxh1lf0jSQr5WGEkIjTz/f5uvv5udBMmWi6fUAAAAAQAAABEAAAABAAAAAQAAABIAAAAAAAAAAEz+yH/sxh1lf0jSQr5WGEkIjTz/f5uvv5udBMmWi6fUAAAAEQAAAAEAAAACAAAAAwAAAAEAAAAQAAAAAQAAAAIAAAADAAAAAAAAAAMAAAACAAAAAwAAAAIAAAAQAAAAAQAAAAIAAAADAAAAAQAAAAMAAAADAAAAAwAAAAIAAAABAAAAAAAAAAAAAAABSmgtC9yp8u8OFpLCO1387pjYQMSE4QqM0zkuGahOgDoAAAAKZ2x5cGhfbWludAAAAAAABAAAABIAAAAAAAAAAEz+yH/sxh1lf0jSQr5WGEkIjTz/f5uvv5udBMmWi6fUAAAAAQAAABEAAAABAAAAAQAAABIAAAAAAAAAAEz+yH/sxh1lf0jSQr5WGEkIjTz/f5uvv5udBMmWi6fUAAAAEQAAAAEAAA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}

I'm getting this error when using the built-in TS bindings for the contract trying to unwrap the response

soroban-client.js:236 Uncaught (in promise) TypeError: XDR Read Error: invalid XDR contract typecast - source buffer not entirely consumed
    at u2.ensureInputConsumed (soroban-client.js:236:57)
    at Function.fromXDR (soroban-client.js:375:26)
    at ContractSpec2.funcResToNative (soroban-client.js:13256:105)
    at parseResultXdr (index.js:152:34)
    at invoke (invoke.js:87:16)
    at async Contract.glyphMint (index.js:146:16)
    at async glyph_mint (+page.svelte:182:7)

Happy to provide additional code as/if needed. Just not sure what else may be helpful

@kalepail kalepail added the bug Something isn't working label Oct 11, 2023
@kalepail
Copy link
Contributor Author

Here's another one resulting in the same error

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "status": "SUCCESS",
        "latestLedger": "2366",
        "latestLedgerCloseTime": "1697056786",
        "oldestLedger": "927",
        "oldestLedgerCloseTime": "1697055339",
        "applicationOrder": 1,
        "envelopeXdr": "AAAAAgAAAABM/sh/7MYdZX9I0kK+VhhJCI08/3+br7+bnQTJloun1AATv9UAAACKAAAAMAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAGAAAAAAAAAABSmgtC9yp8u8OFpLCO1387pjYQMSE4QqM0zkuGahOgDoAAAAKb2ZmZXJfcG9zdAAAAAAAAgAAABAAAAABAAAAAgAAAA8AAAAFR2x5cGgAAAAAAAANAAAAIGg7H2quNd06hpmO/Aye0srpgOZwO40hm+x8+gD0W1B1AAAAEAAAAAEAAAADAAAADwAAAAVBc3NldAAAAAAAABIAAAAB2LKxTGD+y2X7KqgcvqedCDXK/A4NhR+GESV8HltB4cIAAAAKAAAAAAAAAAAAAAAAAAAAZAAAAAEAAAAAAAAAAAAAAAFKaC0L3Kny7w4WksI7XfzumNhAxIThCozTOS4ZqE6AOgAAAApvZmZlcl9wb3N0AAAAAAACAAAAEAAAAAEAAAACAAAADwAAAAVHbHlwaAAAAAAAAA0AAAAgaDsfaq413TqGmY78DJ7SyumA5nA7jSGb7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AAEAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAk+AAAAAGUnCBIAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAFKaC0L3Kny7w4WksI7XfzumNhAxIThCozTOS4ZqE6AOgAAAAEAAAAAAAAAAwAAAA8AAAAKb2ZmZXJfcG9zdAAAAAAADQAAACBoOx9qrjXdOoaZjvwMntLK6YDmcDuNIZvsfPoA9FtQdQAAABIAAAAAAAAAAEz+yH/sxh1lf0jSQr5WGEkIjTz/f5uvv5udBMmWi6fUAAAAEAAAAAEAAAABAAAAEAAAAAEAAAADAAAADwAAAAVBc3NldAAAAAAAABIAAAAB2LKxTGD+y2X7KqgcvqedCDXK/A4NhR+GESV8HltB4cIAAAAKAAAAAAAAAAAAAAAAAAAAZAAAAAEAAAAA",
        "ledger": "2366",
        "createdAt": "1697056786"
    }
}

@kalepail
Copy link
Contributor Author

Soroban CLI version

 % soroban --version
soroban 20.0.0-rc4 (bce5e56ba16ba977200b022c91f3eaf6282f47eb)
soroban-env 20.0.0-rc2 (8c63bff68a15d79aca3a705ee6916a68db57b7e6)
soroban-env interface version 85899345977
stellar-xdr 20.0.0-rc1 (d5ce0c9e7aa83461773a6e81662067f35d39e4c1)
xdr curr (9ac02641139e6717924fdad716f6e958d0168491)

@kalepail
Copy link
Contributor Author

Confirmed fixed in stellar/stellar-cli#973

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant