# Flow CLI - error: authorizer count mismatch for transaction

**URL:** <https://forum.flow.com/t/flow-cli-error-authorizer-count-mismatch-for-transaction/2166>\
**Category:** 🛠 Developer Tools\
**Created:** [July 7, 2021, 11:18am UTC](https://forum.flow.com/t/flow-cli-error-authorizer-count-mismatch-for-transaction/2166 "2021-07-07T11:18:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joker478](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@Joker478](https://forum.flow.com/u/Joker478)\
**Post date:** [July 7, 2021, 11:18am UTC](https://forum.flow.com/t/flow-cli-error-authorizer-count-mismatch-for-transaction/2166/1 "2021-07-07T11:18:30Z")

</div>

Hello,  
I am using some parts of flow-py-sdk and flow CLI emulator on local.  
Here is example: [https://docs.onflow.org/cadence/tutorial/04-non-fungible-tokens/](https://docs.onflow.org/cadence/tutorial/04-non-fungible-tokens/)  
Contract:

> ```
> pub contract ExampleNFT {
> pub resource NFT {
> pub let id: UInt64
> pub var metadata: {String: String}
> 
> init(initID: UInt64) {
> self.id = initID
> self.metadata = {}
> }
> }
> init() {
> self.account.save<@NFT>(<-create NFT(initID: 1), to: /storage/NFT1)
> }
> }
> 
> ```

Transaction:

> ```
> import ExampleNFT from (address from created contract)
> transaction {
> prepare(acct: AuthAccount) {
> if acct.borrow<&ExampleNFT.NFT>(from: /storage/NFT1) != nil {
> log("The token exists!")
> } else {
> log("No token found!")
> }
> }
> }
> 
> ```

In online emulator ([https://play.onflow.org/](https://play.onflow.org/)) it’s ok:  
12:54:58 Deployment Deployed Contract To: 0x01  
12:55:17 Transaction “The token exists!”

Flow CLI emulator, contract:  
INFO[1930] ⭐ Transaction executed txID=39a430185d9dbd2d02ad32d9e81cfce19434324a7deb72c35d2e84c7eb605418

But for transaction I will get this error:  
**Exception: execution error code 1101: [Error Code: 1101] cadence runtime error Execution failed:**  
**error: authorizer count mismatch for transaction: expected 1, got 0**  
 **→ a9c3f152122c7e9a3e34e7001a25d2f0ee5e3661dd009a78a6dc99dd6715363b**

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![kimcodeashian](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/kimcodeashian/32/498_2.png) [@kimcodeashian](https://forum.flow.com/u/kimcodeashian)\
**Post date:** [July 8, 2021, 3:41am UTC](https://forum.flow.com/t/flow-cli-error-authorizer-count-mismatch-for-transaction/2166/2 "2021-07-08T03:41:07Z")

</div>

Hi!

[flow-py-sdk](https://janezpodhostnik.github.io/flow-py-sdk/) is community built sdk. I don’t see anything on their docs about [sending transactions](https://janezpodhostnik.github.io/flow-py-sdk/transactions/) so unfortunately I can’t help debug what may have happened.

maybe @sideninja can help with guidance from with the error description

---

<div class="post-metadata">

**Author:** ![sideninja](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/sideninja/32/363_2.png) [@sideninja](https://forum.flow.com/u/sideninja)\
**Post date:** [July 8, 2021, 7:44am UTC](https://forum.flow.com/t/flow-cli-error-authorizer-count-mismatch-for-transaction/2166/3 "2021-07-08T07:44:49Z")

</div>

Sure thing.  
Let me first explain the error. The problem occurring here is that you don’t sign the transaction properly and it doesn’t have an authorizer, you can read more about the transaction signing here: [Accounts, Keys & Signing - Flow Documentation](https://docs.onflow.org/concepts/accounts-and-keys/#signing-a-transaction) but simply said in your case you are missing an authorizer signature.

If you share the code you are using to send this transaction I can offer more assitance.
