Open Ardakilic opened 3 years ago
Since the last 2 weeks, there has been no issues. I believe it was TCMB's server's fluke. However, since the error was not handled I'm leaving this open. Feel free to close it.
Sorry for the late response and thanks for reporting the issue.
It seems quite the case that rejections are not returned and the nested property access for objects is not very well handled.
I already want to clean up this package by rewriting with ESNext and ship polyfilled and also return the latest exchange rates prior to the public holidays instead of returning an error (with optionally enabled to not to have breaking changes) but unfortunately, life keeps getting in the way.
I'm happy that the package was useful to you and I'm glad that it works again after, seemingly, the missing data issue by TCMB was fixed.
For now, I'm leaving the issue open to come back to solve it later.
Hello,
I get error on data fetching.
Totally fresh installation on node v 16 (v16.6.2 to be exact), both error appears on Linux and macOS.
npm cache is cleared before installation.
Here's the files:
And here's the error when I run the package:
When I digged the code I realized the
reject
s don't havereturn
, which continues to execute the code, which results the error.Also, when I try to fetch the XML code with the library, this is what
today.xml
is returned as:So, I believe the promise rejects and the user agents for fetching can be optimized.
Thanks in advance,