NoMethodError: undefined method `[]' for nil:NilClass
Closed this issue · 4 comments
ollym commented
[GEM_ROOT]/gems/open_exchange_rates-0.4.1/lib/open_exchange_rates/response.rb:11 :in `rates`
[GEM_ROOT]/gems/open_exchange_rates-0.4.1/lib/open_exchange_rates/rates.rb:37 :in `exchange_rate`
[GEM_ROOT]/gems/open_exchange_rates-0.4.1/lib/open_exchange_rates/rates.rb:59 :in `convert`
vlado commented
Hi @ollym, thanks for reporting. It would be great if you could send some more info for debugging (steps you took, ...).
ollym commented
@vlado it's really intermittent. I think it might be rate limiting by the OpenExchangeRate API or a server error or something? I can't recreate it, just every now and again it comes up in my logs.
cabello commented
Maybe get the input params, currency, date range?
vlado commented
I'm closing this for now. It would be best to make sure that you handle failures like this (rate limit, network error, server error, ...) in your app.