dwolla-v2-python icon indicating copy to clipboard operation
dwolla-v2-python copied to clipboard

Using an expired Plaid token gets misleading error

Open amine-prime opened this issue 2 years ago • 0 comments

When using Dwolla/Plaid tokenization to create a new funding source, if that token is no longer valide, a generic error happens :

dwollav2.error.Error: {"code":"UpdateCredentials","message":"The login details for this token have changed."}

The Error class is a little bit misleading, it will be easier to isolate this issue if the error was named .error.PlaidError or TokenError or even ValidationError like the rest.

amine-prime avatar May 26 '23 13:05 amine-prime