Giter VIP home page Giter VIP logo

Comments (6)

ShariqT avatar ShariqT commented on July 26, 2024 1

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.

from lob-ruby.

ShariqT avatar ShariqT commented on July 26, 2024 1

So, it looks like you have to convert the array of addresses to JSON before passing it to the verify method.

response =
  lob.bulk_us_verifications.verify(addresses: addresses.to_json)

puts response

Screen Shot 2021-12-29 at 5 47 50 PM

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!

from lob-ruby.

gdotdesign avatar gdotdesign commented on July 26, 2024

FYI I'm still seeing the same error with 5.4.4. If it helps the rest-client version is 2.1.0.

from lob-ruby.

ShariqT avatar ShariqT commented on July 26, 2024

I'm going to investigate this further. I thought the payload issue was fix.

from lob-ruby.

gdotdesign avatar gdotdesign commented on July 26, 2024

Thanks 🙏 I tried this before and wasn't successful, but probably the change in 5.4.4 allows for this now, will try it out.

from lob-ruby.

ShariqT avatar ShariqT commented on July 26, 2024

@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.

from lob-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.