Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling in TTS #153

Open
AlexXanderGrib opened this issue Mar 14, 2025 · 2 comments
Open

Error handling in TTS #153

AlexXanderGrib opened this issue Mar 14, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@AlexXanderGrib
Copy link

Hello, i am getting following error:

ElevenLabsError {
  body: {
    reason: 'status-code',
    statusCode: 403,
    body: Node18UniversalStreamWrapper {
      readableStream: undefined,
      reader: undefined,
      events: [Object],
      paused: false,
      resumeCallback: null,
      encoding: null
    }

  }
}

I think it's a bad error. It does not provide a clue what i did wrong.

Please, implement JSON parsing on status code errors, i spent 2 days trying to raw json output out of your sdk

{ 
  "detail": {
    "status": "output_format_not_allowed",
    "message": "Requested output format pcm_44100 (PCM at 44100hz) is only allowed for Pro tier and above."
  }
}
@PaulAsjes PaulAsjes added the bug Something isn't working label Mar 14, 2025
@PaulAsjes
Copy link
Collaborator

This is something we're aware of and are going to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@AlexXanderGrib @PaulAsjes and others