The user encountered an error with the code 'bad-txns-inputs-duplicate' while working on their backend.
The error occurred when the backend generated a new address, sent funds to the address, and waited for the funds to appear.
Upon submitting the transaction hex to mempool.space, they received the error message indicating that a UTXO was spent multiple times in one transaction.
The user has thoroughly reviewed the code and confirmed that it's impossible for a UTXO to be added multiple times, and there were no previous transactions that could have spent a UTXO.