-
Notifications
You must be signed in to change notification settings - Fork 48
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
Youtube API not working #19
Comments
Have same issue. Made _debug (in YoutubeApi.h ) as true and see in Serial monitor that body have all data, but parsing do not working. 17:06:19.195 -> .... connected to server |
Same as above for me. With debug enabled, in the serial monitor shows that it fetches correctly the data but it doesn't send anything to the displays. Everything was working just fine up until a couple of days ago. For reference, I was using this library with the sketch here: |
Same as @dchadev, I have been using a modified version of the sketch at https://www.instructables.com/id/YouTube-Subscriber-Counter-With-ESP8266-V2/ since September 2019, with the same issue starting at the same time. I can see a relatively large spike in API traffic before it crashed. Not particularly useful as a clue, but interesting nonetheless. |
I am having the same issue, it was working fine, then just stopped a few days ago, been trying to figure it out, the only thing I have thought of is in the code for the ESP8266 board, you have to set the client to client.setInsecure(); this might have something to do with it. I have code written in c# for my mobile phone and this still works. |
@FusionSource I tried that the other day and it didn't solve the problem with the sketch I was using. It's weird because the library correctly gets the data from youtube and the backpack library works just fine showing on the displays whatever else I throw at them, but it's like if these two parts of the code don't communicate with each other anymore. |
So apparently everybody is having the same problem. I'm using it with the ESP32 without the client.setInsecure(); and still got the same problem. You think the problem could be the ArduinoJson? We all had to use the version 5 because the version 6 didn't work. |
@InterlinkKnight That would be my (uneducated) guess, after the tests I've made so far. But I might be wrong as my knowledge about the ArduinoJson library pretty much equals zero for further investigation into that. |
Someone found the solution: https://www.youtube.com/watch?v=f4YXnHfK6ZM I don't understand why it happened, but apparently it works. I say "apparently" because I decided to skip that library all together, for several reasons:
So my solution was to get the youtube API directly in the sketch, which solved all the problems I mentioned. I'll share my code later on my youtube channel. |
This had nothing to do with ArduinoJson V5 or V6, you can see in the @AntoniousUA serial output , in the body, there is a I'm not sure what changed on YouTube/Googles end to make that happen, but that was not coming before last week. This is fixed in #23, this is basically a complete re-write of the library to be way more memory efficient and to use ArduinoJsonV6 |
Hey,
I know its been a long time since the last post, but i have a problem.
So i have this code (see attachment) and i noticed problems when using static ip adresses (in the code config and on the router side.
Help is much appreciated.
i get no error messages but "api.getChannelStatistics(CHANNEL_ID)" returns always false.
API token and url works fine
ex.zip
(Sorry for my bad english)
The text was updated successfully, but these errors were encountered: