RocketChat / RocketChat/Rocket.Chat

Bug: Media (Video, Image, Audio) URLs Use localhost Instead of Gitpod URL

Open
#35,364 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

🐞 Description:

Media files (videos, images, and audio) in Rocket.Chat fail to load in Gitpod because they are being served using localhost, which does not work in Gitpod’s dynamic URL environment.

⚠️ Steps to reproduce:
  1. Open Rocket.Chat in Gitpod.
  2. Try to load/play a media file (video, image, or audio).
  3. The request fails because the URL is using localhost instead of Gitpod’s dynamic domain.
🎯 Expected behavior:

Media should use the correct Gitpod URL instead of localhost, allowing it to load properly in Gitpod environments.

🛑 Actual behavior:

Media files fail to load because they rely on localhost, which is inaccessible in Gitpod.

📜 Additional context:

This issue occurs only in Gitpod environments where localhost is not accessible. Instead, the media files should use Gitpod’s generated URLs.

📝 Relevant logs:

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the media-loading failure in Gitpod and tracing where video, image, and audio URLs are generated. Check how the Gitpod dynamic domain should replace localhost; done means all three media types load successfully using the correct Gitpod URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
web-dev
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.