Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Next »

The In-Commerce has ability to update currency rates from these sources:

  • Federal Reserve Bank of New York
  • European Central Bank
  • Bank of Latvia

Turns out, that URL used to retrieve currency rates for "European Central Bank" (used to be: http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml) now redirects to http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml. But we're not following that redirected url and instead getting empty rates document.

Solution

During currency processing in sub-classes of "kCurrencyRates" class:

  • enable "follow location" option during curl request
  • when CURL error happened or we've got empty document instead of XML don't attempt to parse it

Related Tasks

  • No labels