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

Critical dependency: require function is used in a way in which dependencies cannot be statically extracted #65

Open thewbuk opened 2 months ago

thewbuk commented 2 months ago

Describe the bug

./node_modules/http-cookie-agent/dist/utils/validate_cookie_options.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

Import trace for requested module:
./node_modules/http-cookie-agent/dist/utils/validate_cookie_options.js
./node_modules/http-cookie-agent/dist/http/create_cookie_agent.js
./node_modules/http-cookie-agent/dist/http/index.js
./node_modules/http-cookie-agent/http/index.js
./node_modules/axios-cookiejar-support/dist/index.js
./src/lib/SunoApi.ts
./src/app/api/generate_lyrics/[id]/route.ts
 ○ Compiling /api/generate_lyrics/[id] ...
{"level":30,"time":1714525558430,"pid":33656,"hostname":"vee","msg":"KeepAlive...\n"}
newToken:===

To Reproduce Only happens occasionally; sometimes restarting or re-authenticating helps, sometimes not. Any help would be greatly appreciated.

Desktop (please complete the following information):

Result 400 Bad Request