Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response showing old date #55

Closed
DeepFriedPotato opened this issue May 27, 2021 · 3 comments
Closed

Response showing old date #55

DeepFriedPotato opened this issue May 27, 2021 · 3 comments

Comments

@DeepFriedPotato
Copy link

When querying [https://api.exchangerate.host/latest?base=USD], sometimes I get a response with a date several days old. For example, it's May 27 today, and I'm getting 2021-05-18 in the "date" field. This happens some of the times, on some devices. Removing "?base=USD" fixes the issue.

@arzzen
Copy link
Collaborator

arzzen commented May 27, 2021

@DeepFriedPotato hm, you can try to add an additional parameter &v=<actual_date> in the query, where <actual_date> enter the day in the format for example Y-m-d (or you can add only hour value)

@DeepFriedPotato
Copy link
Author

I noticed that simply using [https://api.exchangerate.host/latest?base=USD&v=] fixes the problem. I'm a little bit wary of using this because it's not documented, and seems like a workaround. Are there plans to fix the bug? Thank you so much for providing the free service!

@arzzen
Copy link
Collaborator

arzzen commented Jun 17, 2021

Added notice to faq section called "Response showing old date" to site

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants