Unexpected error Response object
perezperret opened this issue · comments
I'm getting an API error from an institution. This has already been addressed with Plaid customer support. Still, it came to my attention that this error wasn't raising, rather just returning a Plaid::AccountsResponse
object with an error code of "INTERNAL_SERVER_ERROR"
. Since this is a 500 error, I would have expected that to raise Plaid::APIError
.
Also, the README specifies a Plaid::APIError
would be raised, but in the code, I can only find references to Plaid::PlaidAPIError
. Is there a difference between them?
I might have some time later to open a PR for this, but I would like to corroborate this is actually unexpected behavior.
Thanks!
Closing this issue because v14 of the library is a total rewrite and this issue should be fixed there. If it does still apply to v14, please feel free to reopen.
(To answer your question very belatedly -- this was almost certainly a mistake in the README and a bug in the client library.)