plaid_flutter icon indicating copy to clipboard operation
plaid_flutter copied to clipboard

Some error scenarios fail silently with clean LinkExit

Open lzapar2 opened this issue 1 year ago • 2 comments

Repro steps:

  • run the sample app using a valid link token
  • click open to open Plaid Link , wait for the first screen to load
  • put your device on airplane mode
  • click "Continue"
  • observe the crash. _onExit is invoked without any errors.

Ideally there should be some indication of an error taking place so that the adopter of the library can communicate an issue to the user, rather than an unexpected crash taking place and a clean LinkExit being passed in the callback with no errors. This is reproducible on many other screens in the Plaid Link Flow.

Reproducible on ios and android.

There are the only logs produced while this is taking place:

I/chromium(18301): [INFO:CONSOLE(2)] "TypeError: Failed to fetch", source: https://secure.plaid.com/link/2.0.1547/vendors~flink.js (2)
D/CompatibilityChangeReporter(18301): Compat change id reported: 78294732; UID 10159; state: DISABLED
I/flutter (18301): onExit metadata: status: , linkSessionId: 43692c25-c159-4ef5-b52d-b5ece637cf40, requestId: , institution.id: , institution.name: , error: null

Screen recording demoing the issue (cropped screen for privacy reasons):

https://user-images.githubusercontent.com/9580067/235809591-134355f5-7072-46be-b2ff-eab9a26e2f97.mov

lzapar2 avatar May 03 '23 00:05 lzapar2

@jorgefspereira Can you triage this issue when you get a chance? Thank you!

lzapar2 avatar Jun 02 '23 17:06 lzapar2

@lzapar2 My guess is that the native SDK is not returning any data in this case. But I'll make sure everything is right on my end.

jorgefspereira avatar Jun 08 '23 00:06 jorgefspereira