Error: Non-canonical DER signature when attempting to broadcast signed Segwit Transactions
You're missing the sighash flag byte at the end of the signature.
&quot;Signature&quot; objects in Bitcoin Script consist of the actual DER-encoded ECDSA signature, plus the sighash type byte (in your case, 0x01 for SIGHASH_ALL).