Closed MythicalForce closed 3 years ago
I had the same problem, this repo is a little outdated at this time. I had to use a bearssl WiFi client and specifically set it to insecure in order to establish a connection with the Spotify endpoint manually using an http object, then send the requests myself. This repo is an awesome guide on how but some of the logistics are outdated
Will set up a test for for the refresh token when I get a chance, I believe that was working before though.
It's weird in the logs that the line being pointed to is 247 for all of these:
#3 0x400d1bca:0x3ffb1970 in ArduinoSpotify::refreshAccessToken() at src/ArduinoSpotify.cpp:247
#4 0x400d1d2d:0x3ffb1db0 in ArduinoSpotify::checkAndRefreshAccessToken() at src/ArduinoSpotify.cpp:247
#5 0x400d1dad:0x3ffb1dd0 in ArduinoSpotify::getCurrentlyPlaying(char const*) at src/ArduinoSpotify.cpp:247
when Line 247 is not a sprintf either (which the next line of the stack trace indicates it hit)
https://github.com/witnessmenow/arduino-spotify-api/blob/master/src/ArduinoSpotify.cpp#L247
@Tpow99 , which platform are you using?
I am using an esp8266 node mcu
What version of esp8266 core are you using? Bearssl one is the default one for years now, I'm also pretty sure all the examples include a fingerprint (which can be used instead of setting insecure), but maybe that's expired by now, which would be a sperate issue
On Thu 1 Apr 2021, 07:01 Tpow99, @.***> wrote:
I am using an esp8266 node mcu
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/witnessmenow/arduino-spotify-api/issues/19#issuecomment-811666306, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAL5PQQHPT62TWROZWADHELTGQD4ZANCNFSM42EUHE5A .
originally, I did switch to the set insecure because the fingerprint was expired. This is when I started to come across more problems in the development. I am on the esp 2.6.3 release. I often get a connection failed when I use your methods(Which are my preferred way) so I started rewriting them. Generally, I receive error code -1 when attempting to refresh. I haven't updated your repo in a while as I took a break from that project.
Edit: On my version of the code using your repo, I am able to create a temporary access token, then my code fails on the following request to the /api/token endpoint. This is the requestAccessTokens call in your code repo
I have made some improvements to the memory usage in #21 which may solve this issue. I have a display setup now so I can try keep an eye on if it happens.
If you want to try updating to the latest version (here: https://github.com/witnessmenow/arduino-spotify-api/tree/getImageBuffer) @MythicalForce and see if it helps that would be great.
originally, I did switch to the set insecure because the fingerprint was expired. This is when I started to come across more problems in the development. I am on the esp 2.6.3 release. I often get a connection failed when I use your methods(Which are my preferred way) so I started rewriting them. Generally, I receive error code -1 when attempting to refresh. I haven't updated your repo in a while as I took a break from that project.
Edit: On my version of the code using your repo, I am able to create a temporary access token, then my code fails on the following request to the /api/token endpoint. This is the requestAccessTokens call in your code repo
Hey, I have the -1 error code too. Is there a fix you found for it yet? I need this for my class assignment lol
Edit: Linking my thread about this issue here too for easier accessibility.
I have no seen this issue while I'm using it. The branch with the updated code has been merged to master. Re-open the issue again if you see the problem again.
This the the Serial Monitor
And this is what my main loop looks like