plaid / plaid-ruby

Ruby bindings for Plaid

Home Page:https://plaid.com/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing Status fields in ItemGetResponse from missing version number in user agent

michaelkitson opened this issue · comments

Hey team, I was confused why ItemGetResponse would always have a null status field in our requests, and was surprised to see the value present in the item debugger and when manually performing the api call with curl.

I worked through any possible differences between the http requests made by curl vs this library and eventually narrowed it down to the user agent header.

When reproducing the same request with curl, providing the buggy user agent reproduced the error that we see using this library. Fixing the version string in the library resolved the issue ("Plaid Ruby v#" -> "Plaid Ruby v#{VERSION}").

The offending line:

@user_agent = "Plaid Ruby v#"

The bug was introduced in 442a639

Happy to provide ruby or curl examples if necessary, let me know.

Thanks!

commented

Thanks for the extremely detailed bug report. This looks like a typo in some interpolation. Should have a fix soon after Thanksgiving, I think.

commented

This should be fixed with today's release. Feel free to reopen/create a new issue if it's not resolved.