NoneType fields not handled correctly for liabilities and throwing ApiTypeError
ipam73 opened this issue · 3 comments
We recently updated to plaid-python 8.10 from 7, and keep getting ApiTypeError for fields that are not being properly handled when None. This is breaking the experience for a number of our users (especially since this used to be handled properly with plaid-python 7).
The errors we're seeing are for the following fields:
- last_payment_amount
- last_statement_issue_date
Errors:
ApiTypeError("Invalid type for variable 'last_payment_amount'. Required value type is float and passed type was NoneType at ['received_data']['liabilities']['credit'][1]['last_payment_amount']")
ApiTypeError("Invalid type for variable 'last_statement_issue_date'. Required value type is date and passed type was NoneType at ['received_data']['liabilities']['credit'][0]['last_statement_issue_date']")
What we're doing:
request = LiabilitiesGetRequest(access_token=access_token)
response = client.liabilities_get(request)
Very sorry for the trouble! I just submitted a PR to fix this and it should be incorporated into next week's schedule client library release.
Thank you! I'll update as soon as it's released