This guide explains how errors are handled in the Let's Summarize API and how to debug issues effectively.
- Common Error Responses
- Authentication Errors
- YouTube Summarization Errors
- Audio Processing Errors
- File Summarization Errors
- AI Summarization Errors
- Debugging Guide
- Logging and Monitoring
- Error Reporting
The API returns standard HTTP error codes with a structured JSON response.
| Status Code | Error Message | Description |
|---|---|---|
401 |
Invalid API key |
The API key is incorrect |
401 |
Missing API key |
No API key in the request |
Example Response:
{
"error": "Invalid API key"
}| Status Code | Error Message | DescriptionD |
|---|---|---|
400 |
Invalid YouTube URL |
The provided YouTube URL is not valid. |
400 |
Slow mode is only supported with OpenAI |
Slow mode requires OpenAI for summarization. |
400 |
This video does not have a YouTube transcript |
The video does not have an automatically generated transcript. |
400 |
There is a problem with network connection |
A network issue occurred while fetching the transcript. |
500 |
Could not fetch transcript from YouTube |
The transcript API call failed. |
Example Response:
{
"error": "This video does not have a YouTube transcript"
}| Status Code | Error Message | Description |
|---|---|---|
500 |
Failed to download audio |
The audio file could not be downloaded. |
500 |
Audio file was not created |
The downloaded audio file is missing. |
500 |
Failed to transcribe audio |
The transcription process encountered an error. |
Example Response:
{
"error": "Failed to transcribe audio"
}| Status Code | Error Message | Description |
|---|---|---|
400 |
Could not extract text from the file |
The uploaded file could not be processed. |
Example Response:
{
"error": "Could not extract text from the file"
}| Status Code | Error Message | Description |
|---|---|---|
500 |
Summarization failed with OpenAI |
The OpenAI summarization API request failed. |
500 |
Summarization failed with DeepSeek |
The DeepSeek summarization API request failed. |
400 |
Text-to-speech is only supported with OpenAI |
Text-to-speech is not available for DeepSeek. |
Example Response:
{
"error": "Summarization failed with OpenAI"
}- Ensure the provided API key is valid.
- If using a user-provided API key, verify it is correct.
- If necessary, regenerate a new key.
- Ensure the URL is correct and publicly accessible.
- Check if the video has a transcript by testing manually on YouTube.
- Some videos may not support automatic transcription.
- Try a different file format.
- Ensure the file is not corrupted or empty.
- If the error persists, check server logs for extraction errors.
- If the error message suggests a network issue, try again after a few minutes.
- Ensure the server has a stable internet connection.
- Check for rate limits on external APIs.
- If using OpenAI or DeepSeek, verify their API status.
- Check the API quota and limits.
- Review API logs for request errors.
For better debugging, enable detailed logs to capture error messages and debug information:
export DEBUG=trueLogs will be saved in the logs/ directory for debugging purposes. These logs include API request details, error messages, and system responses.
If you encounter persistent issues that are not resolved through debugging:
- Check the API documentation for correct usage.
- Verify if the Let's Summarize API is experiencing downtime or issues by:
- Testing a basic request (e.g., summarizing a small text sample).
- Checking for any announcements or updates from our team.
- Trying again after a few minutes in case of temporary issues.
- Contact support with the following details:
- API request details (URL, payload)
- Error message received
- Steps taken to reproduce the issue