Ardor Transaction was generated on a fork error I tried to sign a transaction and then broadcast it, but I get the following error:

Error! Failed to broadcast transaction: ecBlockHeight 221000 does not match ecBlockId 932...., transaction was generated on a fork.

What could be the cause of this? 

If i sign the transaction and broadcast it manually via the ardor desktop gui wallet via "broadcast", it works. I'm just not sure how this error is occurring or what does it mean?
I got this same exact error when I tried to sign a mainnet transaction using a testnet API, so, make sure you are using the same network..