ytdl-org/youtube-dl · error · ExtractorError
Unable to find the current post
Error message
Unable to find the current post
What it means
Raised by TheInterceptExtractor when the JSON fetched for a post collection contains no post whose 'slug' equals the display_id parsed from the URL. It means the URL slug does not match any post in the API's resources.posts map, typically because the post was renamed or removed. This is an unmarked ExtractorError, so it surfaces as an extraction failure.
Source
Thrown at youtube_dl/extractor/theintercept.py:49
webpage = self._download_webpage(url, display_id)
json_data = self._parse_json(self._search_regex(
r'initialStoreTree\s*=\s*(?P<json_data>{.+})', webpage,
'initialStoreTree'), display_id)
for post in json_data['resources']['posts'].values():
if post['slug'] == display_id:
return {
'_type': 'url_transparent',
'url': 'jwplatform:%s' % post['fov_videoid'],
'id': compat_str(post['ID']),
'display_id': display_id,
'title': post['title'],
'description': post.get('excerpt'),
'timestamp': parse_iso8601(post.get('date')),
'comment_count': int_or_none(post.get('comments_number')),
}
raise ExtractorError('Unable to find the current post')
View on GitHub (pinned to 956b8c5855)
Solutions
- Search theintercept.com for the article title to get the current slug and use that URL
- Verify the JSON endpoint the extractor hits still returns the posts map (open the URL in a browser with devtools)
- Update to the latest youtube-dl/yt-dlp in case the extractor was patched for a new API shape
- If you maintain the extractor, fall back to searching posts for a slug prefix instead of exact equality
Defensive patterns
Strategy: try-catch
Try / catch
try:
ydl.extract_info(intercept_url)
except ExtractorError as e:
if 'Unable to find the current post' in str(e):
# slug mismatch: try locating the current slug via site search
url = search_intercept(slug) Prevention
- Prefer canonical article URLs copied from the site itself, not from caches
- In crawlers, catch this error and re-resolve slugs via site search
- Note it is not expected=True, so distinguish it from generic bugs by message
When it happens
Trigger: Extracting a theintercept.com URL whose slug does not appear in the downloaded JSON's resources.posts values, e.g. an edited/renamed article slug, a deleted draft, or a URL with a typo in the slug segment.
Common situations: Following deep links from search-engine caches or social media where slugs were updated; the site restructures and the JSON endpoint returns an empty or partial posts map; trailing punctuation attached to the slug when copied.
Related errors
- %s said: %s
- %s said: %s
- error_element.attrib['abstract']
- Video %s does not exist
- Playlist item was not found
AI-assisted analysis of ytdl-org/youtube-dl@956b8c5855 (2026-08-14).
Data as JSON: /api/errors/79ceecef6b278729.
Report an issue: GitHub.