gcui-art / suno-api

Use API to call the music generation AI of suno.ai, and easily integrate it into agents like GPTs.
https://suno.gcui.ai
GNU Lesser General Public License v3.0
872 stars 194 forks source link

"error": "Internal server error. Error: Failed to get session id, you may need to update the SUNO_COOKIE" #74

Closed Jamadoo closed 1 month ago

Jamadoo commented 1 month ago

Describe the bug Hi. I've been using this api for about a week and it worked great. But recently every time i send a request to the endpoint, i get a "error": "Internal server error. Error: Failed to get session id, you may need to update the SUNO_COOKIE" response. I did try to update the SUNO_COOKIE env var in my vercel deployment, but my cookie from suno.com is the exact same as my env var (the cookie on suno.com did not change at all, and yes I did copy and paste the cookie over anyway if there was a single character diffrence).

To Reproduce Steps to reproduce the behavior:

  1. Deploy Repo To Vercel
  2. Send any request to the domain, "api/get_limit" also gives the error

Expected behavior I expected to the the documented JSON response, which I did get a couple days ago.

Screenshots Reponse: (if this helps at all): image

Desktop (please complete the following information):

Additional context if any other information is needed, ill happily provide it.

Jamadoo commented 1 month ago

Fixed. Had to log out and in of my account to generate a new SUNO_COOKIE, which had a totally difference syntax/format. Ensure your cookie doesn't start with "client" (new cookies start with cf)