element-hq / element-hq/dendrite

Most images don't load using 0.13.8

Open
#3,425 11 comments 2 reactions 0 assignees View on GitHub
T-Defect
Dominant language
Go
Stars
967
Forks
102
PR merge metrics
No merged PRs in 30d

Description

*This issue was originally created by [**@makidoll**](https://github.com/makidoll) at .*

### Background information

- **Dendrite version or git SHA**: 0.13.8+763c79f
- **SQLite3 or Postgres?**: Postgres (15-alpine)
- **Running in Docker?**: Yes
- **`go version`**: `sh: go: not found`
- **Client used (if applicable)**: Element on Web, Element X, Cinny

### Description

- **What** is the problem: Requested images return no data, but status 200 OK
- **Who** is affected: Single user
- **How** is this bug manifesting: Images rarely or never load in when I'm using the above clients
- **When** did this first appear: Since the 0.13.8 update

I've tried resetting all my clients too. Example below returns `Content-Length: 144` with `Content-Type: application/json` without data. Couldn't find any relevant logs either.

### Steps to reproduce

- Setup Dendrite monolith using Docker
- Use any of the above clients

See images below

![Screenshot from 2024-09-16 17-44-30 blurred](https://github.com/user-attachments/assets/85d86e6b-525b-4398-8fdc-b247b3f6786e)

![Screenshot from 2024-09-16 17-37-00 blurred](https://github.com/user-attachments/assets/26c67fdd-eb7b-4014-9034-328f9337b94c)

![Screenshot from 2024-09-16 17-38-27 blurred](https://github.com/user-attachments/assets/8dd9509e-5bc2-44f0-b2ec-88c735d2955f)

![Screenshot from 2024-09-16 17-38-35](https://github.com/user-attachments/assets/6d433d25-84a9-4c55-9e53-e4fb77cd6531)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with a Docker monolith, Postgres 15, and one of the listed clients, then inspect the response to an image request. The fix is complete when requested images return image data with the expected content type instead of an empty JSON response with status 200.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go, postgres
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.