Giter Site home page Giter Site logo

Comments (8)

netwire88 avatar netwire88 commented on June 20, 2024 1

It looks like https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml is down

from eu_central_bank.

ephraimm avatar ephraimm commented on June 20, 2024 1

try https://github.com/spk/money-open-exchange-rates

from eu_central_bank.

Splitrox avatar Splitrox commented on June 20, 2024

Same thing here

from eu_central_bank.

Splitrox avatar Splitrox commented on June 20, 2024

Maybe there's some way to make sure this gem doesn't crash the whole site?

from eu_central_bank.

netwire88 avatar netwire88 commented on June 20, 2024

Until there's a better solution, you can do this

  1. Download latest eurofxref-daily.txt and rename extension to .xml (can't upload XML files to GitHub)
  2. Add it to your /config/initializers or somewhere similar
  3. In money.rb, replace config.default_bank.update_rates with config.default_bank.update_rates(Rails.root.join('config', 'initializers', 'eurofxref-daily.xml'))

At least that'll start your project. I tried the code below in money.rb but the timeout is really long, so it doesn't work

  begin
    config.default_bank.update_rates
  rescue
    config.default_bank.update_rates(Rails.root.join('config', 'initializers', 'eurofxref-daily.xml'))
  end

from eu_central_bank.

dobreandl avatar dobreandl commented on June 20, 2024

https://github.com/rmustafin/russian_central_bank - This also works, if you're looking for a quick fix.

from eu_central_bank.

ephraimm avatar ephraimm commented on June 20, 2024

The feed is not down there has been a CAPTCHA check added:

Security Check
Our systems have detected unusual traffic from your computer network.
This page checks to see if it is really you sending the requests and not a bot.

Please click here to verify that you are not a bot.

from eu_central_bank.

bjer avatar bjer commented on June 20, 2024

Any alternative sources? Don't really trust a Russian bank.. Could download https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml with curl after filling in the captcha but
the eu_central_bank gem fails to do so.

from eu_central_bank.

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.