witnessmenow / arduino-instagram-stats

A library for fetching stats from Instagram on your arduino
GNU General Public License v2.0
42 stars 22 forks source link

Failed to return followers #8

Open Geniusness opened 5 years ago

Geniusness commented 5 years ago

Can't seem to get this to return the followers. I've tried multiple ESP8266s and ESP32s with no luck. I've tried different urls, tried ?__a=1, tried instagram.com/web/search/topsearch/?query=@...nothing.

When debugging on an ESP8266, , I'm seeing "BSSL: Connection will fail, no authentication method is setup:wr 222 0", but goes away after uncommenting the client.setInsecure();. Still get 0 results after uncommenting though.

I've tried different keys that I've found going through the json, but I didn't think that was the issue. Watched your YouTube video and read everything I can find to try to get this working. This post is my last resort.

Is the code working for other people? I'm wondering if something happened with the Instagram data like in the previous issues I've seen posted. Really hoping to be able to get this working!

witnessmenow commented 5 years ago

I tested this today and it didnt work for me either, it was working fine a few weeks ago so I guess something has changed.

I looked into it a bit and it seems like the parsing is still the correct format, but the timeout built into the library triggers before all the data comes back

https://github.com/witnessmenow/arduino-instagram-stats/blob/master/src/InstagramStats.cpp#L130

I changed this line to have 10000 instead of 3000 and it worked for me. Would you mind testing the same?

Brian

On Sun, 17 Feb 2019 at 13:52, Genius notifications@github.com wrote:

Can't seem to get this to return the followers. I've tried multiple ESP8266s and ESP32s with no luck. I've tried different urls, tried ?__a=1, tried instagram.com/web/search/topsearch/?query=@...nothing.

When debugging on an ESP8266, , I'm seeing "BSSL: Connection will fail, no authentication method is setup:wr 222 0", but goes away after uncommenting the client.setInsecure();. Still get 0 results after uncommenting though.

I've tried different keys that I've found going through the json, but I didn't think that was the issue. Watched your YouTube video and read everything I can find to try to get this working. This post is my last resort.

Is the code working for other people? I'm wondering if something happened with the Instagram data like in the previous issues I've seen posted. Really hoping to be able to get this working!

— 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-instagram-stats/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfXwoA1claJHWKTz-CzixXnF0VOvsq9ks5vOV6AgaJpZM4a_kbt .

Geniusness commented 5 years ago

Hey Brian, thanks for the quick response!

I went ahead and tested this on both ESP8266 and ESP32.

With the ESP 8266, 10000 did not work for me, but 20000 did! I also definitely need setInsecure uncommented.

With the ESP32, I tried 10000, 20000, and 30000 and all returned 0. So it's still failing to return results on the ESP32.

vezilka commented 5 years ago

I encountered the same problem and found this issue. For me I had to change to 30000 and uncomment setInsecure in order to get it working. I'm using latest ESP8266 Core 2.5 and testing on NodeMCU, Wemos D1 mini and ESP-01 boards. Still haven't tested on ESP32.

tigroouu commented 5 years ago

hi I change to 30000 but I still the same error. In which file did you modify setinsecure

witnessmenow commented 5 years ago

The Arduino sketch

On Wed, 27 Mar 2019, 23:46 tigroouu, notifications@github.com wrote:

hi I change to 30000 but I still the same error. In which file did you modify setinsecure

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/witnessmenow/arduino-instagram-stats/issues/8#issuecomment-477389035, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfXwkde5prB0F4K9W_-1QMraVq2jeGSks5vbALrgaJpZM4a_kbt .

wollinator85 commented 5 years ago

Hey Brian, thanks for the quick response!

I went ahead and tested this on both ESP8266 and ESP32.

With the ESP 8266, 10000 did not work for me, but 20000 did! I also definitely need setInsecure uncommented.

With the ESP32, I tried 10000, 20000, and 30000 and all returned 0. So it's still failing to return results on the ESP32.

unfortunitly this doesnt work with my esp8266, what do you mean by "setInsecure uncommented"? Im sorry Im completely new to this