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
1.25k stars 288 forks source link

API works only on first run #38

Closed Mousemaster12 closed 5 months ago

Mousemaster12 commented 5 months ago

Describe the bug When I start the api with npm run dev, it will only work once, even if i restart it

To Reproduce Steps to reproduce the behavior:

  1. Clone Repo
  2. Install Node.js (on arch use pacman)
  3. run npm install and npm run dev
  4. add cookie to .env
  5. use the demo python code - first time should work
  6. run the demo code again - hangs

Expected behavior It should have worked both times

Screenshots If applicable, add screenshots to help explain your problem. image it just continues with this until it stops, producing nothing Desktop (please complete the following information):

blueeon commented 5 months ago

This is strange, I will test this issue today. Thank you for your feedback. @Mousemaster12

blueeon commented 5 months ago

There have been some changes to the official suno API, and I’ve updated it today. It’s now working fine in my local setup and on Vercel. Could you please test it out? Thanks a lot. #42

Mousemaster12 commented 5 months ago

idk what was the issue, but it now works perfectly on my local arch Linux setup, haven't tested it on windows yet. thank you!

vettorazi commented 5 months ago

I'm having a similar issue. on my local environment is working fine. but the vercel says that I need to update the key (using the same key in both environments)

blueeon commented 5 months ago

@vettorazi Have you updated the cookie key after deployment? Give it a try with the latest key?