RubyMoney/money

Request Error when using .exchange_to("USD")

AntonioSilvaDev opened this issue · 0 comments

Hi there,

We are seeing a new error when using the .exchange_to method, when it come to USD only. Ruby on Rails app

Example.

Money.from_amount(5, "jpy").exchange_to("usd")
# Money::Bank::RequestError (Your query did not return any results. Please try again.)

Earlier in the day, this error
# Money::Bank::RequestError: You have provided one or more invalid Currency Codes. [Required format: currencies=EUR,USD,GBP,...]

But exchanging to other currencies works ok

Money.from_amount(5, "jpy").exchange_to("gbp")
 => #<Money fractional:3 currency:GBP> 

We are using money-rails 1.14.0, rails 6.1.4.1. I can't find any recent merges from money or money-rails gems, so rules out a recent change.

Anyone else experiencing this issue? Many Thanks!