Try to request /construction/submit but response 17 error code

there is my demo code:

        TransactionBroadcastRequest request = TransactionBroadcastRequest.builder()
                //encoded by base64
                .signed_transaction(rawTransaction)
                .network_identifier(this.getNetwork(this.chain))
                .build();
        String json = JsonHelper.toJson(request);
        var responseBody = httpClientUtil.postJson(String.format("%s/construction/submit", endpoint), json);

who named as endpoint in the code is a request url prefix, it is rosetta’s mainnet url prefix, and the rawTransaction has been signed my myself.

there is my request body, it is named as “json”:
{“network_identifier”:{“blockchain”:“Oasis”,“network”:“b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535”},“signed_transaction”:“MHhhMjczNzU2ZTc0NzI3NTczNzQ2NTY0NWY3MjYxNzc1Zjc2NjE2Yzc1NjU1ODYxYTQ2NTZlNmY2ZTYzNjUwMjY2NmQ2NTc0Njg2ZjY0NzA3Mzc0NjE2YjY5NmU2NzJlNTQ3MjYxNmU3MzY2NjU3MjYzNjY2NTY1YTI2MzY3NjE3MzAyNjY2MTZkNmY3NTZlNzQ0MzAwMDdkMDY0NjI2ZjY0NzlhMjYyNzQ2ZjU1MDAyYTViZTE5ZjIwZTY3OWY3M2ZhMWMyY2Q4MDRmMjM1MDQ5YzEyMzE5NjY2MTZkNmY3NTZlNzQ0NTAwMDVmNWUxMDA2OTczNjk2NzZlNjE3NDc1NzI2NWEyNmE3MDc1NjI2YzY5NjM1ZjZiNjU3OTU4MjAxNWY5NDgwZDJmMjhiZGZkYjllZDdjMTgzNjJlYjdmYTFkZTRhMTA2OTlhYWI4N2YyMGUzOWM0YmM1Y2VmMjAzNjk3MzY5Njc2ZTYxNzQ3NTcyNjU1ODQwNmQ0N2FhMTM5MGQ4NmE3MWQyZmI2ZGNhODhjZjUxYTA0OTk0M2QxMDFmOWY4ZWNkOWM5MjNhY2VjODY1NTQxZDZmYzA5N2M5ZjRkYjk5Y2I1NGVjNzkzYTQ1Zjc3Y2VmODA2OGFlZGQxMWU4N2QxZmU3ZDgyNmY4YTIwZjA4MDQ\u003d”}

it return a error response body
{“code”:17,“message”:“malformed value”,“retriable”:false}

l am looking forward to hear your help, thank you very very much!

Hello @tracverson , can you please post the JSON transaction body ? not the signed and hashed but before that?

Also I see \u003d in the end, I am wondering why there’s this unicode character there.

hello, I’m very glad to see you, which chat tools do you often use?i want make friends with you :grinning:
@shrimalmadhur my colleague is Responsible for sign module, i need to ask him the json who before signed, i will give it to you soon.
i only have the signed raw transaction, then, i encode it by base64 and transfer the entity to json string to request /construction/submit, because i found Official website say rosetta need endcoded transaction sting to brocast, if i don’t use encode and don’t transfer it to json, the request body is

TransactionBroadcastRequest(network_identifier=NetworkIdentifier(blockchain=Oasis, network=b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535), signed_transaction=0xa273756e747275737465645f7261775f76616c75655861a4656e6f6e636502666d6574686f64707374616b696e672e5472616e7366657263666565a2636761730266616d6f756e74430007d064626f6479a262746f55002a5be19f20e679f73fa1c2cd804f235049c1231966616d6f756e74450005f5e100697369676e6174757265a26a7075626c69635f6b6579582015f9480d2f28bdfdb9ed7c18362eb7fa1de4a10699aab87f20e39c4bc5cef203697369676e617475726558406d47aa1390d86a71d2fb6dca88cf51a049943d101f9f8ecd9c923acec865541d6fc097c9f4db99cb54ec793a45f77cef8068aedd11e87d1fe7d826f8a20f0804)

i find that it hard to use, is there any other api to brocast?

My reply is below,Looking forward to your reply~

hello, I’m very glad to see you, which chat tools do you often use?i want make friends with you :grinning:
@shrimalmadhur my colleague is Responsible for sign module, i need to ask him the json who before signed, i will give it to you soon.
i only have the signed raw transaction, then, i encode it by base64 and transfer the entity to json string to request /construction/submit, because i found Official website say rosetta need endcoded transaction sting to brocast, if i don’t use encode and don’t transfer it to json, the request body is

TransactionBroadcastRequest(network_identifier=NetworkIdentifier(blockchain=Oasis, network=b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535), signed_transaction=0xa273756e747275737465645f7261775f76616c75655861a4656e6f6e636502666d6574686f64707374616b696e672e5472616e7366657263666565a2636761730266616d6f756e74430007d064626f6479a262746f55002a5be19f20e679f73fa1c2cd804f235049c1231966616d6f756e74450005f5e100697369676e6174757265a26a7075626c69635f6b6579582015f9480d2f28bdfdb9ed7c18362eb7fa1de4a10699aab87f20e39c4bc5cef203697369676e617475726558406d47aa1390d86a71d2fb6dca88cf51a049943d101f9f8ecd9c923acec865541d6fc097c9f4db99cb54ec793a45f77cef8068aedd11e87d1fe7d826f8a20f0804)

i find that it hard to use, is there any other api to brocast?

i have focus on your twitter

hello,could you please tell me why CBOR decode is failed, i check my code and find that if my base64 decode failed or CBOR decode failed, i will get the 17 error code,but my base64 is true,so it must be the CBOR’s error

{“untrusted_raw_value”: h’A4656E6F6E636501666D6574686F64707374616B696E672E5472616E7366657263666565A2636761730266616D6F756E74430007D064626F6479A262746F55006F38F0DB7F605FDE1928522E236ABBDAE68CD08266616D6F756E74450005F5E100’, “signature”: {“public_key”: h’641DAF7A5D28A28284C8D6F349AC43091E04BB81BEC095A656E0FE5D652C5CE5’, “signature”: h’94AA66F4957B2035C5B83CE971FD8D0F64ECDA6577F8AD2CD1C53875B6B14408AB48803CDA79FAA8806D7C04B2F6887A6FF329861BFB58E20C193F1FEC969805’}}
{“nonce”: 1, “method”: “staking.Transfer”, “fee”: {“gas”: 2, “amount”: h’0007D0’}, “body”: {“to”: h’006F38F0DB7F605FDE1928522E236ABBDAE68CD082’, “amount”: h’0005F5E100’}}
this is my cbor about param

hi,

can you post the logs from the rosetta gateway around the time when you make this request? the logging is much more detailed than the error message in the case of Oasis’s implementation.