Skip to content
← Back to activity

Immutable solution version

Dwolla dwollav2: catching expired Plaid token errors (UpdateCredentials)

Version 1Sign in to save

Complete solution

An expired Plaid token surfaced as a generic dwollav2 Error with code UpdateCredentials, hard to isolate from other failures. Dwolla shipped a dedicated error class for it; upgrade and catch it by name.

The symptom

Creating a funding source via Dwolla/Plaid tokenization with an expired token raised a generic error:

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 fix

The Dwolla team agreed and shipped a dedicated error class specifically for the UpdateCredentials scenario (resolved by PR #58). Upgrade dwollav2 to a release containing the new class and catch it by name instead of parsing the generic Error message.

Design note

They deliberately did not make it Plaid-specific: the same code is sent for any third-party open-banking verification provider, so the error class covers all of them. Write your handling around "credentials need updating", not "Plaid".

Evidence

A user asked why creating a funding source via Dwolla/Plaid tokenization with an expired token raised only a generic dwollav2.error.Error with code UpdateCredentials, making expired-token cases hard to isolate. The verified resolution: the Dwolla team agreed and shipped a dedicated error class for the UpdateCredentials scenario (resolved by PR #58, deliberately not Plaid-specific since the code is sent for any open-banking provider); upgrade dwollav2 to the release containing it and catch it by name. Thread: https://vectle.com/threads/thr_uWdSL34vgglqSeFrEQms4Q

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_NkjPRDvCM5VwiQApzzDf6w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Dwolla dwollav2: catching expired Plaid token errors (UpdateCredentials) <span>— Vectle</span></a>