gcui-art/suno-api

<Response [500]> Expecting value: line 1 column 1 (char 0)

Opened this issue · 5 comments

Hello,

When I run the code, it gives an error 500, I saw that this issue was already here, but I didn’t see a solution there and the request was closed.

Error in local:

npm run dev

> suno-api@1.1.0 dev
> next dev

   ▲ Next.js 14.1.4
   - Local:        http://localhost:3000
   - Environments: .env

"pnpm" �� ���� ����७��� ��� ���譥�
��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.
 ✓ Ready in 3.2s
 ○ Compiling /api/generate_lyrics ...
 ✓ Compiled /api/generate_lyrics in 1797ms (211 modules)
 ⨯ TypeError: Cannot read properties of undefined (reading 'data')
    at POST (webpack-internal:///(rsc)/./src/app/api/generate_lyrics/route.ts:39:85)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:63809
    at async eU.execute (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:53964)  
    at async eU.handle (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:65062)   
    at async doRender (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\server\base-server.js:1317:42)
    at async cacheEntry.responseCache.get.routeKind (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\server\base-server.js:1539:28)
    at async DevServer.renderToResponseWithComponentsImpl (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\server\base-server.js:1447:28)
    at async DevServer.renderPageComponent (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\server\base-server.js:1844:24)       
    at async DevServer.renderToResponseImpl (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\server\base-server.js:1882:32)      
    at async DevServer.pipeImpl (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\server\base-server.js:895:25)
    at async NextNodeServer.handleCatchallRenderRequest (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\server\next-server.js:269:17)
    at async DevServer.handleRequestImpl (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\server\base-server.js:791:17)
    at async C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\server\dev\next-dev-server.js:331:20
    at async Span.traceAsyncFn (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\trace\trace.js:151:20)
    at async DevServer.handleRequest (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\server\dev\next-dev-server.js:328:24)      
    at async invokeRender (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\server\lib\router-server.js:174:21)
    at async handleRequest (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\server\lib\router-server.js:353:24)
    at async requestHandlerImpl (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\server\lib\router-server.js:377:13)
    at async Server.requestListener (C:\Users\админ\Desktop\1x\Prog\раб\бот_ии\suno-api\node_modules\next\dist\server\lib\start-server.js:140:13)

Checking the site I got the same error:

image

The code that gives an error:

def custom_generate_audio(payload):
  url = f"{base_url}/api/custom_generate"
  response = requests.post(url, json=payload, headers={'Content-Type': 'application/json'})
  print(response)
  return response.json()

I'm having the same issue suddently, it was working fine for the last couple of days.

I was able to fix it, it turned out to be very simple, I just changed the cookies, try changing them too, maybe it will help you

I was able to fix it, it turned out to be very simple, I just changed the cookies, try changing them too, maybe it will help you

Hello, can you tell me specifically how you solved this problem? I'm encountering the same issue as you.

Hello, you need to take the Cookie from the client again?_clerk_js_version and replace it, after which it should work, but unfortunately I have not made an automation mechanism yet

Hello, you need to take the Cookie from the client again?_clerk_js_version and replace it, after which it should work, but unfortunately I have not made an automation mechanism yet

Very skilled, solving the problem quickly. Does the expert know how to rotate multiple accounts when there are only 50 points per day?