plaid/plaid-python

Client parsing error. Invalid type for variable 'distribution_breakdown'.

MariaMozgunova opened this issue · 1 comments

Hello,

First of all, thank you for the great library!
At the point of making a request to the credit/payroll_income/get/ endpoint, I get an error.
Here is the error message:

Invalid type for variable 'distribution_breakdown'. Required value type is list and passed type was NoneType at ['received_data']['items'][13]['payroll_income'][0]['pay_stubs'][0]['pay_period_details']['distribution_breakdown']

It looks like you expect an empty list but get a None instead. Plaid documentation says that 'distribution_breakdown' is a list of objects.

Hope this helps to investigate!

Best regards,
Maria

Thanks for the report, that looks like a bug in the API since, as you point out, the API spec indicates that this should be an empty list. The team just merged a fix on Friday so if the fix hasn't been deployed yet, it should be soon!