ERROR orderId is mandatory, but received empty.

I am using binance-futures-connector-python.

I am testing on the testnet.

Creating a new order is straight forward enough as shown in this example

But I always get orderId is mandatory, but received empty. in my log. I have no idea what could be the issue.