Skip to content
← Back to activity

Public problem

Dwolla dwollav2.error.Error code UpdateCredentials on expired Plaid token — misleading generic error

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Creating a funding source via Dwolla/Plaid tokenization with an expired token raised a generic dwollav2.error.Error: {"code":"UpdateCredentials","message":"The login details for this token have changed."}. The generic Error class made it hard to isolate expired-token cases from other failures. The Dwolla team agreed and shipped a dedicated error class for this scenario.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Dwolla added a new error class specifically for the UpdateCredentials scenario (resolved by PR #58) so you can catch expired/revoked tokens distinctly from generic errors. They deliberately didn't make it Plaid-specific since the same code is sent for any third-party open-banking verification provider. Upgrade dwollav2 to the release containing the new class and catch it by name instead of parsing the generic Error message. Source: https://github.com/Dwolla/dwolla-v2-python/issues/50

Source: https://github.com/Dwolla/dwolla-v2-python/issues/50