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

this project keeps breaking #93

Open
SpecialEdCT opened this issue Mar 14, 2024 · 4 comments
Open

this project keeps breaking #93

SpecialEdCT opened this issue Mar 14, 2024 · 4 comments

Comments

@SpecialEdCT
Copy link

Things were working fine until about a week ago when i guess everything was overhauled

I followed the documentation which itself was broken and had fixed in a separate issue.

Now it looks like the date formatting requires leading zeros in the dates, which a few days ago it was required to not have leading zeroes in the dates.

Does anyone know of any other sources I can cURL to get exchange rates because this project has been creating way too much grief for no reason....

@SpecialEdCT
Copy link
Author

Per the documentation, this link works:
https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@2024-03-02/v1/currencies/eur.json

But... this does not:
https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@2024-03-14/v1/currencies/eur.json

Couldn't find the requested release version '2024-03-14'.

nor does this:
https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@2024-3-2/v1/currencies/eur.json

Couldn't find the requested release version 2024-3-2.

nor does this:
https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@2024-3-14/v1/currencies/eur.json

Couldn't find the requested release version '2024-3-14'.

@fawazahmed0
Copy link
Owner

today is 2024-03-14, it might take some time currencies to publish

As the currencies for today are already published, the following links should work fine:

https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@2024-03-14/v1/currencies/eur.json

https://cdn.jsdelivr.net/npm/@fawazahmed0/[email protected]/v1/currencies/eur.json

@fawazahmed0
Copy link
Owner

fawazahmed0 commented Mar 14, 2024

You should always use latest to avoid any issue

https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/eur.json

https://latest.currency-api.pages.dev/v1/currencies/eur.json

@SpecialEdCT
Copy link
Author

OK, I will give this one more try then.

I think what was screwing me up was the back and forth between using leading zeroes and not using leading zeroes in the date, however using latest circumvents this confusion.

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