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

Error getting data... #2

Open
msman0 opened this issue Jan 28, 2022 · 2 comments
Open

Error getting data... #2

msman0 opened this issue Jan 28, 2022 · 2 comments

Comments

@msman0
Copy link

msman0 commented Jan 28, 2022

Hello, thank you for the great work. I was unable to use it because I get the error:

"Getting ticker data for BTC
/v1/cryptocurrency/quotes/latest?symbol=BTC&convert=EUR
deserializeJson() failed: EmptyInput
Error getting data: EmptyInput"

I have entered the API Key and also the WiFi is connected.

What is goeing wrong?
Best regards.

@oxinon
Copy link
Owner

oxinon commented Jan 29, 2022

I found the problem, it's with the Coinmarketcap library. Open this file with Notepad++ or another editor /Arduino/libraries/CoinMarketCapApi2/scr/CoinMarketCapApi.ccp

go to line 76 and change the setting from 2048 to 3072
DynamicJsonDocument doc (3072);

Then save, recompile and flash.

@msman0
Copy link
Author

msman0 commented Jan 29, 2022

Thank you for your fast response. I have tried it but the error ist the same with 3072...
I checked the IP settings for gateway and dns, it seems that there is no request for the domain, because I have nothing seen in my pi-hole dns server. Other skteches with the TTGO works well.

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