# Fail on broadcast transaction

**URL:** <https://talk.jelurida.com/t/fail-on-broadcast-transaction/624>\
**Category:** Developers\
**Created:** [5 December 2021 01:10 UTC](https://talk.jelurida.com/t/fail-on-broadcast-transaction/624 "2021-12-05T01:10:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrV](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/m/848f3c/32.png) [@MrV](https://talk.jelurida.com/u/MrV)\
**Post date:** [5 December 2021 01:10 UTC](https://talk.jelurida.com/t/fail-on-broadcast-transaction/624/1 "2021-12-05T01:10:56Z")

</div>

My best guess is there is an issue with the signing on my transaction, but this error I get from the Ardor node seems odd:

```auto
{"errorDescription":"Incorrect transactionBytes: null","errorCode":4,"requestProcessingTime":4,"error":"Unexpected character (v) at position 0."}

```

I am trying to broadcast the transactions with this information:

```auto
transactionBytes: 02000000000001b2ba69070f004652486ebc271520d844e5bdda9ac243c05dcbe7bc9b93807073a32177a6f73d420a729e503eae7cc0cf6a0000000000204e000000000000935ae2d80b1d9cb09f19bad1dd754f96a20ace1816743087a563870247a4b509b56f7f612996398d45670acdbea51c314eed0e29894318392cacb7117a7401d15947890036876909c7988aec08000000010006e2f5946f22a36db903c0f42999ae5013d4549ef69315a94a870d743f482d96000000000000000000000000000000000000000000000000000000000000000000000000
prunableAttachmentJSON: version.PrunablePlainMessage=1&messageIsText=true&messageHash=06e2f5946f22a36db903c0f42999ae5013d4549ef69315a94a870d743f482d96&message=%7B%22contract%22%3A%20%22EarnExp%22%2C%22params%22%3A%20%7B%22expMsg%22%3A%20%22abc%22%7D%7D&version.OrdinaryPayment=0

```

and this was the unsigned if it matters:

```auto
02000000000001b2ba69070f004652486ebc271520d844e5bdda9ac243c05dcbe7bc9b93807073a32177a6f73d420a729e503eae7cc0cf6a0000000000204e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005947890036876909c7988aec08000000010006e2f5946f22a36db903c0f42999ae5013d4549ef69315a94a870d743f482d96000000000000000000000000000000000000000000000000000000000000000000000000

```

Unless I'm mistaken, I don't see a `v` character anywhere, let alone at position 0 and don't understand what the null is about...thoughts?  
Just to try something I tried the same **transactionBytes** and **prunableAttachmentJSON** on the `/test` page and got the same error too to I seem to be sending the bytes correctly

---

<div class="post-metadata">

**Author:** ![MrV](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/m/848f3c/32.png) [@MrV](https://talk.jelurida.com/u/MrV)\
**Post date:** [6 December 2021 23:24 UTC](https://talk.jelurida.com/t/fail-on-broadcast-transaction/624/2 "2021-12-06T23:24:25Z")

</div>

Looking at the Ardor source code, I found the error message inside of an `if` for transactionAttachment so I looked at mine and realized I was encoding it incorrectly. I think it would be good to update the error message there though to suggest there may be an issue with the attachment. Would have saved me a lot of debugging time 🙂
