hypothesis / hypothesis/via

`KeyError` crash when viewing video (may be due to content warning / age restriction?)

Open
#1,213 4 comments 0 reactions 0 assignees View on GitHub
project: video annotations
Dominant language
Python
Stars
29
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Attempting to view https://www.youtube.com/watch?v=oIWqTIFRlYU in Via (https://via.hypothes.is/https://www.youtube.com/watch?v=oIWqTIFRlYU) results in a 5xx error from our backend: .

Error details from the response:

```json
{
"errors": [
{
"status": 500,
"code": "KeyError",
"title": "Something went wrong",
"detail": "'captions'"
}
]
}
```

This video does have an auto-generated transcript available on YouTube itself. The video is preceded by a content warning (it is about the Israel-Palestine conflict), which might be related.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the 5xx response for the YouTube URL and inspect the backend path that processes the video's response, focusing on the missing 'captions' field. Confirm the behavior for videos with auto-generated transcripts and content warnings; done means the URL no longer crashes with KeyError and its available transcript is handled correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.