Originally created by @atassis on GitHub (May 4, 2024).
Originally assigned to: @tjbck on GitHub.
Bug Report
Description
Bug Summary:
If you use RAG for youtube without english translation, but with another language provided- request fails with an error from youtube-transcript-api
Steps to Reproduce:
try to execute next prompt #https://www.youtube.com/watch?v=FuRem6-sTmQ
Expected Behavior:
prefetch the list of languages of the video from the same package with
I have read and followed all the instructions provided in the README.md.
I am on the latest version of both Open WebUI and Ollama.
I have included the browser console logs.
I have included the Docker container logs.
Logs and Screenshots
Browser Console Logs:
I'll provide if needed, seems irrelevant
Docker Container Logs:
I'll provide if needed, seems irrelevant
Screenshots (if applicable):
Installation Method
Docker
Additional Information
The problem is that YoutubeLoader from langchain doesn't handle by himselves the verification that requested (or default 'en') language is provided by the video. We need to handle it by ourselves.
Originally created by @atassis on GitHub (May 4, 2024).
Originally assigned to: @tjbck on GitHub.
# Bug Report
## Description
**Bug Summary:**
If you use RAG for youtube without english translation, but with another language provided- request fails with an error from `youtube-transcript-api`
**Steps to Reproduce:**
try to execute next prompt `#https://www.youtube.com/watch?v=FuRem6-sTmQ`
**Expected Behavior:**
prefetch the list of languages of the video from the same package with
```python
from youtube_transcript_api import YouTubeTranscriptApi
transcript_list = YouTubeTranscriptApi.list_transcripts(YoutubeLoader.extract_video_id(video_url)
languages = list(enumerate(transcript_list))
print(languages[0][1].language_code)
```
**Actual Behavior:**
See the toast error after several seconds.
## Environment
- **Open WebUI Version:** 0.1.123
- **Ollama (if applicable):** 0.1.32
- **Operating System:** Fedora 39 (both client and server, different machines)
- **Browser (if applicable):** Chrome (version doesn't matter)
## Reproduction Details
**Confirmation:**
- [X] I have read and followed all the instructions provided in the README.md.
- [X] I am on the latest version of both Open WebUI and Ollama.
- [ ] I have included the browser console logs.
- [ ] I have included the Docker container logs.
## Logs and Screenshots
**Browser Console Logs:**
I'll provide if needed, seems irrelevant
**Docker Container Logs:**
I'll provide if needed, seems irrelevant
**Screenshots (if applicable):**

## Installation Method
Docker
## Additional Information
The problem is that YoutubeLoader from langchain doesn't handle by himselves the verification that requested (or default `'en'`) language is provided by the video. We need to handle it by ourselves.
@grigio commented on GitHub (May 9, 2024):
@tjbck

I've updated but I always get a similar error
@grigio You're still requesting en, change this to it:
@justinh-rahb commented on GitHub (May 9, 2024):
@grigio You're still requesting `en`, change this to `it`:

@grigio You're still requesting en, change this to it:
Thanks, it works. I was thinking that it was managed by the UI language
@grigio commented on GitHub (May 9, 2024):
> @grigio You're still requesting `en`, change this to `it`:
>
Thanks, it works. I was thinking that it was managed by the UI language
What about trying to make a separate toggle with automatic language recognition? With the code suggested by me.
@atassis commented on GitHub (May 9, 2024):
What about trying to make a separate toggle with automatic language recognition? With the code suggested by me.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @atassis on GitHub (May 4, 2024).
Originally assigned to: @tjbck on GitHub.
Bug Report
Description
Bug Summary:
If you use RAG for youtube without english translation, but with another language provided- request fails with an error from
youtube-transcript-apiSteps to Reproduce:
try to execute next prompt
#https://www.youtube.com/watch?v=FuRem6-sTmQExpected Behavior:
prefetch the list of languages of the video from the same package with
Actual Behavior:
See the toast error after several seconds.
Environment
Open WebUI Version: 0.1.123
Ollama (if applicable): 0.1.32
Operating System: Fedora 39 (both client and server, different machines)
Browser (if applicable): Chrome (version doesn't matter)
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
I'll provide if needed, seems irrelevant
Docker Container Logs:
I'll provide if needed, seems irrelevant
Screenshots (if applicable):

Installation Method
Docker
Additional Information
The problem is that YoutubeLoader from langchain doesn't handle by himselves the verification that requested (or default
'en') language is provided by the video. We need to handle it by ourselves.@grigio commented on GitHub (May 9, 2024):
@tjbck

I've updated but I always get a similar error
@justinh-rahb commented on GitHub (May 9, 2024):
@grigio You're still requesting
en, change this toit:@grigio commented on GitHub (May 9, 2024):
Thanks, it works. I was thinking that it was managed by the UI language
@atassis commented on GitHub (May 9, 2024):
What about trying to make a separate toggle with automatic language recognition? With the code suggested by me.
@piwawa commented on GitHub (Mar 25, 2025):
How to use this youtube rag function?