Invalid Client Error only on when deployed on Vercel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am currently working on a project which fetches data from the Spotify API, and my requests work perfectly fine when run locally, but when I deploy my app to Vercel and try to use a live version of the project, the requests are currently failing with an "An authentication error occurred while communicating with Spotify's Web API.\nDetails: invalid_client Invalid client." error message.
This error does not occur when run locally with the exact same ID and secret, and the live version didn't even have this error a couple days ago, I went to test something on the live version after a couple days off, and all of a sudden I get this error every time I try to interact with the API. I am positive that the live version was working perfectly fine before, and nothing changed to cause this sudden error. The requests still work perfectly fine when run locally as well. I have even tried deploying to netlify as well, and it seems to work on netlify as well. Unfortunately Netlify charges for many of the features that are free with Vercel, so I would like to avoid migrating my app there if at all possible. Any idea what could be causing this?
- Labels:
-
Question
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page