I think this is a bug. The log shows thiceComponents=true&unpaidInvoicesOnly=trueat the invoice components flag is set to true, but it seems the mere presence of the flag causes failure:
If the code is just testing the presence of the flag, sematically it seems backwards.
I am working around it by removing the parameter altogether (this seems fine) but I think it should accept it.
The docs do note this requirement, but do not say the flag must be omitted.