It seems the URL isn’t working anymore?
Get Exchange Rate
Traceback (most recent call last):
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/setup/utils.py", line 107, in get_exchange_rate
response.raise_for_status()
File "/home/frappe/frappe-bench/env/lib/python3.5/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://frankfurter.app/31-12-2019?base=GBP&symbols=PLN
In other news, I never knew about https://www.frankfurter.app/ til now. It looks like a great pick for ERPNext
The issue is due to the date.
For some reason, the system is trying to fetch the exchange rate for 31-12-2019:
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://frankfurter.app/31-12-2019?base=GBP&symbols=PLN
Since this is a future date, Frankfurter can’t return exchange rates for it which is causing the 404 error. This is what I understand. Is there any future date referenced in this transaction?
Ah good eye! No future date in the transaction. Also strange that it’s fetching GBP to PLN. If anything it should be USD > PLN since none of our accounts are in GBP. I’ll keep an eye on it. If you have ideas for a troubleshoot let me know
How did you end up with this error?
I am on a fresh install and made a purchase invoice with 23% VAT under our Polish company/account.