Skip to content

DeepgramUnknownError: Unexpected token '<', "<html><bod"... is not valid JSON #1052

Answered by jpvajda
jrellisai asked this question in General help
Discussion options

You must be logged in to vote

The error trace you provided suggests several potential issues related to your app's workflow for processing YouTube videos and sending data to Deepgram for transcription.

Here are some things to consider:

1. Deepgram Error: Unexpected Token '<'

  • This error is caused because the Deepgram SDK received HTML content instead of the expected JSON payload. This is likely due to:
  • Invalid Request or URL: The audio file provided to Deepgram might not be properly processed or resolved. If the input is not a valid audio file, Deepgram might return an error page (HTML) instead of JSON.

2. yt-dlp Errors

From the yt-dlp logs, we can see it successfully downloads the YouTube video, but there are severa…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@jrellisai
Comment options

@jpvajda
Comment options

@jpvajda
Comment options

Answer selected by deepgram-community
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants