finnhub-ruby icon indicating copy to clipboard operation
finnhub-ruby copied to clipboard

ArgumentError (invalid date)

Open charliepugh92 opened this issue 3 years ago • 0 comments

Hello! I am trying to use this to pull company profiles, and when I try to get the company profile for PE, I receive the error above.

I believe this is because Finnhub is returning null for an expected date inside the company profile, and when the CompanyProfile model tries to deserialize the data, it is not checking if the value is parsable by Date first, causing the error to arise. I can make an MR to fix if you like.

charliepugh92 avatar Jan 26 '21 19:01 charliepugh92