-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requests to bulk US verifications are invalid. #201
Comments
Thanks for using Lob! You weren't doing anything wrong. There is an error in how we are sending the payload to the RestClient. The fix is in this PR. |
FYI I'm still seeing the same error with |
I'm going to investigate this further. I thought the payload issue was fix. |
So, it looks like you have to convert the array of addresses to JSON before passing it to the response =
lob.bulk_us_verifications.verify(addresses: addresses.to_json)
puts response This isn't exactly user-friendly, so we'll look into making a change to fix this so that you can just pass in the Ruby hashes instead of doing that conversion after the holidays. In the meantime, this solution won't block you from using the library. Happy holidays! |
Thanks 🙏 I tried this before and wasn't successful, but probably the change in |
@gdotdesign Yes, please try 5.4.5 or 5.4.6. The latter will allow you to pass in the array of hashes like you originally wanted. |
I'm trying to make requests to the Bulk Verify endpoint https://docs.lob.com/#operation/bulk_us_verifications using this gem, but the requests end up wrong.
This is the request body that I see in the dashboard:
I'm guessing
rest-client
is at fault but couldn't debug it yet. If I'm doing something wrong let me know.The text was updated successfully, but these errors were encountered: