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
886 stars 197 forks source link

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

Open VNG2000 opened 2 months ago

VNG2000 commented 2 months ago

Hi. I am using your suno api. Thanks for this great work. But i have this error "Internal server error. Error: Failed to get session id, you may need to update the SUNO_COOKIE". You know how can fix it? I am using Vercel. If I switch to another Suno account's cookie and redeploy in Vercel, it works again, but after a while, this error appears again."

Image https://drive.google.com/file/d/1JK8j7kCf_QnrWfIBPGQHFa4JG-VnNKmf/view?usp=drive_link

thewbuk commented 2 months ago

I had the same issue. Updating the SUNO_COOKIE worked for me temporarily.

VNG2000 commented 2 months ago

I had the same issue. Updating the SUNO_COOKIE worked for me temporarily.

I found a solution. Don't use all the credits. Always keep 10 credits on the free accounts. This will keep the same cookie. Is your account paid? I'm not sure if this API works on paid accounts..

Kevin-free commented 1 month ago

I also encountered this problem. My analysis is that if you log in to account A and obtain COOKIE_A, then log out of account A and log in to account B, COOKIE_A will become invalid, and the new COOKIE and COOKIE_A obtained by logging in to account A in a short period of time will no longer be valid. Same. It seems that this problem didn't happen before. I wonder if it is Suno's official new restriction policy. What should I do?

k-ele commented 1 month ago

I solved the same issue so will share the solution:

・Logout the current account ・Delete the cache for the suno.ai site I used this Chrome extension: https://chromewebstore.google.com/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg?hl=en&pli=1 ・Login the account ・Get new Cookie in the standard way

I hope this will help you guys.

VNG2000 commented 1 month ago

I solved the same issue so will share the solution:

・Logout the current account ・Delete the cache for the suno.ai site I used this Chrome extension: https://chromewebstore.google.com/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg?hl=en&pli=1 ・Login the account ・Get new Cookie in the standard way

I hope this will help you guys.

Still works??