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

[BUG] - cardano-submit-api can't handle transactions #4829

Closed
gitmachtl opened this issue Jan 23, 2023 · 9 comments
Closed

[BUG] - cardano-submit-api can't handle transactions #4829

gitmachtl opened this issue Jan 23, 2023 · 9 comments
Labels
type: bug Something is not working

Comments

@gitmachtl
Copy link
Contributor

External

I was trying to submit a short test transaction in babbage-era and mary-era format. Both produced an error. Transaction was submitted via the koios API, which uses cardano-submit-api. I guess cardano-submit-api can't handle CDDL format, but thats the default now.

Here are the two attempts:

  • Babbage-Era Tx:
curl -s -m 20 -X POST "https://preprod.koios.rest/api/v0/submittx" -H "Accept: application/json" -H "Content-Type: application/cbor" --data-binary $(echo -n "84a400818258200264a53a42656f99ecd96ff95a9702170b530a40e372736390edae3ab7b1c5ce000182a200581d6052e63f22c5107ed776b70f7b92248b02552fd08f3e747bc745099441011a004c4b40a200581d6052e63f22c5107ed776b70f7b92248b02552fd08f3e747bc74509944101821b00000001a49e5748a1581c34250edd1e9836f5378702fbf9416b709bc140e04f668cc355208518a1494154414441636f696e199327021a0002b2a9031a012022f6a10081825820742d8af3543349b5b18f3cba28f23b2d6e465b9c136c42e1fae6b2390f56542758401ce96705cdf8d83eaf665d69beca7d4d7cd4e536d715181398814be6f1e4b215a6ac3f329bdfb89132b61fb762825dafb2e3592a3163438bf171dab87de10e0af5f6" | xxd -ps -r)

Response:

"transaction read error RawCborDecodeError [DecoderErrorDeserialiseFailure \"Byron Tx\" (DeserialiseFailure 1 \"Size mismatch when decoding TxAux.\\nExpected 2, but found 4.\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 1 \"Size mismatch when decoding \\nRecord RecD.\\nExpected 4, but found 3.\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 1 \"Size mismatch when decoding \\nRecord RecD.\\nExpected 4, but found 3.\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 1 \"Size mismatch when decoding \\nRecord RecD.\\nExpected 4, but found 3.\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 2 \"expected word\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 2 \"expected word\")]"

 

  • Mary-Era Tx:
curl -s -m 20 -X POST "https://preprod.koios.rest/api/v0/submittx" -H "Accept: application/json" -H "Content-Type: application/cbor" --data-binary $(echo -n "83a400818258200264a53a42656f99ecd96ff95a9702170b530a40e372736390edae3ab7b1c5ce00018282581d6052e63f22c5107ed776b70f7b92248b02552fd08f3e747bc7450994411a004c4b4082581d6052e63f22c5107ed776b70f7b92248b02552fd08f3e747bc745099441821b00000001a49e57f8a1581c34250edd1e9836f5378702fbf9416b709bc140e04f668cc355208518a1494154414441636f696e199327021a0002b1f9031a01202398a10081825820742d8af3543349b5b18f3cba28f23b2d6e465b9c136c42e1fae6b2390f565427584024d4eff5ad624c4f1b89708896d27144075ee2a3c75e3943ba7146ef37ab5a4fc43af21cc4952c934a1e3eba7be23fcc22b9495c03488bbd025270d7f7ea0008f6" | xxd -ps -r)

Response:

"transaction read error RawCborDecodeError [DecoderErrorDeserialiseFailure \"Byron Tx\" (DeserialiseFailure 1 \"Size mismatch when decoding TxAux.\\nExpected 2, but found 3.\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 2 \"expected word\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 2 \"expected word\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 2 \"expected word\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 1 \"Size mismatch when decoding \\nRecord RecD.\\nExpected 3, but found 4.\"),DecoderErrorDeserialiseFailure \"Shelley Tx\" (DeserialiseFailure 1 \"Size mismatch when decoding \\nRecord RecD.\\nExpected 3, but found 4.\")]"

The reported errors are a bit different.

Best regards, Martin

@gitmachtl gitmachtl added the type: bug Something is not working label Jan 23, 2023
@rdlrt
Copy link

rdlrt commented Jan 23, 2023

Minor additional detail:
The transactions are decoded/submitted to node via CLI fine.

The trouble only seems to be submitting it to cardano-submit-api (since submit API doesn't show version of it's own as part of CLI params,
we're using commit against tag 1.35.4)

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

@github-actions github-actions bot added the Stale label Feb 23, 2023
@gitmachtl
Copy link
Contributor Author

Issue is still present with 1.35.5

@github-actions github-actions bot removed the Stale label Feb 24, 2023
@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

@github-actions github-actions bot added the Stale label Mar 27, 2023
@rdlrt
Copy link

rdlrt commented Mar 27, 2023

Still active

@github-actions github-actions bot removed the Stale label Mar 28, 2023
@disassembler
Copy link
Contributor

Is this a problem on master as well or only in the release branch @rdlrt @gitmachtl ?

@rdlrt
Copy link

rdlrt commented Apr 3, 2023

Is this a problem on master as well or only in the release branch @rdlrt @gitmachtl ?

@disassembler - The issue is replicable (using same hash as in issue description, as error talks about decode issue) 1.35.7-rc1 . I cannot compile cardano-submit-api on master (starting commit f86d64f ), but I can replicate the issue from the last commit prior, i.e. 781943e , which can compile cardano-submit-api using cabal.

@gitmachtl
Copy link
Contributor Author

Any news on this front?

@gitmachtl
Copy link
Contributor Author

Looks like it was a syntax (user) issue. I successfully submitted a transaction via koios now on PreProd. 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something is not working
Projects
None yet
Development

No branches or pull requests

3 participants