witnessmenow / arduino-youtube-api

A wrapper around the youtube api for arduino
MIT License
141 stars 48 forks source link

Connection failed Unexpected HTTP Status Code: 0 #25

Closed uiaadfc closed 4 years ago

uiaadfc commented 4 years ago

Hi there,

Either I'm having problems with the wrapper or im dumber than a box of rocks, I'll try to cut to the chase as quickly as possible.

I built a subscriber counter using https://www.instructables.com/id/YouTube-Subscriber-Counter-With-ESP8266-V2/ about a year and half ago and its been working fine until this week.

After seeing everything going on and with other peoples stopped working, saw the wrapper had been updated and updated the wrapper and json to 6.15.2 and now i just get

Connection failed
Unexpected HTTP Status Code: 0

In the serial monitor and I've tested with the example code too with the same result.

Any help here would be appreciated

uiaadfc commented 4 years ago

my own idiocy knows no bounds - forgot to roll the board manager back to below 2.5

witnessmenow commented 4 years ago

Glad to hear you got sorted. You can use 2.5 or above if you add the line

"client.setInsecure();" to your setup.

I updated the example that comes with the library as part of the update this week to show to show the change.

On Sat, 23 May 2020, 18:00 uiaadfc, notifications@github.com wrote:

Closed #25 https://github.com/witnessmenow/arduino-youtube-api/issues/25 .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/witnessmenow/arduino-youtube-api/issues/25#event-3367230918, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAL5PQW4RW5BGBBQQSQYKUDRS76MHANCNFSM4NIQQC7A .

MKme commented 4 years ago

Ran in to this myself today. client.setInsecure(); fixed me up thanks!