plaid / plaid-python

Python bindings for Plaid
https://plaid.com/docs
MIT License
422 stars 147 forks source link

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

Closed MariaMozgunova closed 1 year ago

MariaMozgunova commented 1 year ago

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

phoenixy1 commented 1 year ago

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!