I’ve reviewed your code, and it appears to be correct. Our Utils.sendDownlink function is also up-to-date.
The issue you’re experiencing is related to the Chirpstack V4 API not properly interpreting the schema we’re sending. The error message you’re seeing is a direct response from your Chirpstack API.
I’ve just made some additional changes to our Chirpstack V4 support. Could you please check if these updates have resolved the problem you were facing?
If the issue persists, it would be helpful if you could open a ticket. This would allow us to investigate the problem more thoroughly with direct access to your specific use case.