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.48k stars 351 forks source link

I suddenly started getting 401 errors. Updated my cookie but that doesn't seem to be the issue. Has something changed? #108

Closed rachedblili closed 5 months ago

rachedblili commented 5 months ago
    'Accept-Encoding: gzip, compress, deflate, br\r\n' +
    'Host: studio-api.suno.ai\r\n' +
    'Connection: close\r\n' +
    '\r\n',
  _keepAliveTimeout: 0,
  _onPendingData: [Function: nop],
  agent: [i],
  socketPath: undefined,
  method: 'GET',
  maxHeaderSize: undefined,
  insecureHTTPParser: undefined,
  joinDuplicateHeaders: undefined,
  path: '/api/billing/info/',
  _ended: true,
  res: [IncomingMessage],
  aborted: false,
  timeoutCb: null,
  upgradeOrConnect: false,
  parser: null,
  maxHeadersCount: null,
  reusedSocket: false,
  host: 'studio-api.suno.ai',
  protocol: 'https:',
  _implicitHeader: [Function (anonymous)],
  emit: [Function (anonymous)],
  _redirectable: [Writable],
  [Symbol(kCapture)]: false,
  [Symbol(kBytesWritten)]: 0,
  [Symbol(kNeedDrain)]: false,
  [Symbol(corked)]: 0,
  [Symbol(kOutHeaders)]: [Object: null prototype],
  [Symbol(errored)]: null,
  [Symbol(kHighWaterMark)]: 16384,
  [Symbol(kRejectNonStandardBodyWrites)]: false,
  [Symbol(kUniqueHeaders)]: null
},
data: { detail: 'Unauthorized' }

} }

This is just trying to get usage.

rachedblili commented 5 months ago

It looks like my account was suspended for reasons unknown. FYI this manifested for me as sudden 401 errors in the API as well as my credits balance no longer showing up in the suno.com web interface. Trying to view my subscription resulted in a hung screen with a spinner.