plaid / plaid-link-ios

Plaid Link iOS SDK
https://plaid.com/docs/link/ios
MIT License
133 stars 88 forks source link

ERROR Event Instead Of EXIT When Dismissing Link With Account Numbers #41

Open danilobecke opened 3 months ago

danilobecke commented 3 months ago

A detailed description of the steps to reproduce the issue

What you expected to see?

Expected the onEvent callback to be called with .exit event name

What you saw instead?

onEvent callback not called with .exit event, called with .error instead:

LinkEvent(eventName: ERROR, metadata: LinkKit.EventMetadata(accountNumberMask: Optional(""), errorCode: Optional(LinkKit.ExitErrorCode.apiError(INTERNAL_SERVER_ERROR)), errorMessage: Optional("an unexpected error occurred"), exitStatus: Optional(), institutionID: Optional("ins_56"), institutionName: Optional("Chase"), institutionSearchQuery: Optional(""), isUpdateMode: Optional(""), matchReason: Optional(""), linkSessionID: "16d47a64-9507-436f-b707-80dac7e81f5f", mfaType: nil, requestID: Optional("uWblhY1le5lqitX"), routingNumber: Optional(""), selection: nil, timestamp: 2024-05-22 14:16:10 +0000, viewName: Optional(), metadataJSON: Optional("{\"account_number_mask\":\"\",\"error_code\":\"INTERNAL_SERVER_ERROR\",\"error_message\":\"an unexpected error occurred\",\"error_type\":\"API_ERROR\",\"exit_status\":\"\",\"institution_id\":\"ins_56\",\"institution_name\":\"Chase\",\"institution_search_query\":\"\",\"is_update_mode\":\"\",\"link_session_id\":\"16d47a64-9507-436f-b707-80dac7e81f5f\",\"match_reason\":\"\",\"mfa_type\":\"\",\"request_id\":\"uWblhY1le5lqitX\",\"routing_number\":\"\",\"timestamp\":\"\",\"view_name\":\"\"}")))

When submitting an issue for Plaid Link iOS please include the following information:

Name Value
Link env sandbox
LinkKit version 5.5.0
iOS version 17.2.1
iOS device iPhone 11

List of used 3rd party libraries (e.g. CocoaPods):