witnessmenow / spotify-api-arduino

Arduino library for integrating with the Spotify Web-API (Does not play music)
MIT License
178 stars 33 forks source link

Failing to get access token #62

Closed luispl77 closed 11 months ago

luispl77 commented 11 months ago

Hello,

Everything was working up until a rain storm and power was cutoff my house, so my router reset and attributed a new IP address to the esp8266. I thought this was fine, so I went and tried to get a new refresh token by correcting the new IP address in the spotify App. I then uploaded the getRefreshToken sketch and when I clicked on the authentication, it went to the address with a completely blank page:

https://192.168.1.204/callback/?code=AQAn8o7M7ouo5wkRI2ys1prpPP44g6XXwPp8KBkvaLAXca6zLhSETLVnPO3RHqZH04HVO5p2bM5JphRqzXOkoW6PvRSQpEmIsAK6i5n-cn1UXW2pMwz13RAP5SDfP5zFEwgRHv9wBLT6v10VuRscKFv7BLkoVo5wxEDMkj0feiyy5ScNTpxndceLqPe47D3ZHOPHcDndm205zQgwp3-PMj83EuDY8yHRj2VxvvqEGGUrCw8gsn_0_Q

The refresh token was not printed on screen like last time I did this. So I tried using this (larger) string in the URL after '?code=' , but with no luck.

Could you help me figure out what is wrong? Thanks

luispl77 commented 11 months ago

It started working again, I think it was a problem with my network really, something to do with the IPs. They reset back to the original values now, and I am able to get the token