Closed leonardssh closed 2 years ago
Have you connected your Spotify account?
@adisreyaj yep.
I tried to create another account and connect it to Spotify, same issue.
Can you try configuring again? Force refresh the page and also try to keep an eye on the network requests.
After a couple tries, same result.
Request URL: https://flare.adi.so/cool-stuffs/spotify-last-played/@Leonard
Request Method: GET
Status Code: 500
Referrer Policy: strict-origin-when-cross-origin
Response:
{"error":"Something went wrong"}
Looks like its working!
I didn't do anything to it, it seems to have resolved itself. 😅
I think you can now close this issue, since the problem has been solved.
Still doesn't work for me @adisreyaj
This is the api response
{"error":"Something went wrong"}
Hey @kavinvalli, Can you try disabling
the cache and trying again.
Hey @kavinvalli, Can you try
disabling
the cache and trying again.
Still doesn't work @adisreyaj
Cool. Let me check what's going wrong!
@adisreyaj Do you not have to pass the client id here https://github.com/adisreyaj/flare/blob/193ab32f106504ab85af338a7718e96e298aaff0/netlify/functions/spotify-last-played/spotify-last-played.ts#L40-L43
I had done the below in a project of mine once. Seemed to work
@kavinvalli Only required for PKCE based flow. The issue seems to be because of the development mode of Spotify API. Users need to be explicitly added right now. This is a limitation of the Spotify API when in dev mode.
But I'll investigate further on it.
Thanks for raising the issue. Let me know if you found something as well.
Can you try authorizing one more time? I have cleared the data from redis.
@kavinvalli Only required for PKCE based flow. The issue seems to be because of the development mode of Spotify API. Users need to be explicitly added right now. This is a limitation of the Spotify API when in dev mode.
But I'll investigate further on it.
Thanks for raising the issue. Let me know if you found something as well.
Oh yes yes, I had that issue too. I don't think there's a workaround. You just have to push it to production
@adisreyaj still having the issue. I refresh the app got a 403 saying "Not Configured". Then I connected my spotify account again, again getting a 500 error
Still getting the issue @adisreyaj
Hey, @kavinvalli will update you when I have some clarity on the Spotify API situation.