cheeaun / cheeaun/phanpy

occasional broken videos

Open
#975 0 comments 0 reactions 0 assignees View on GitHub
bug need investigation
Dominant language
JavaScript
Stars
1.5k
Forks
186
Avg merge
1d 36m
Merged PRs (30d)
11

Description

### Site

phanpy.social

### Version

2024.11.22.8f048af

### Instance

mastodon.social

### Browser

- Chrome Version 132.0.6834.32 (Official Build) beta (64-bit) on Windows 11

### Bug description

Sometimes phanpy will show a video preview that's a broken image icon, and clicking on it will show a video player that briefly shows loading, then shows empty.

I think this happens when my instance doesn't have the video yet. (Sometimes it seems like it sometimes never gets the video? But I don't have clear evidence of that.)

This is what the data looks like for one such post. (I've redacted values with "..." because it's followers-only)
```json
"media_attachments": [
{
"id": "...",
"type": "unknown",
"url": "https://mastodon.social/media_proxy/.../original",
"preview_url": "https://mastodon.social/media_proxy/.../small",
"remote_url": "https://media.../.../...mp4",
"preview_remote_url": null,
"text_url": null,
"meta": null,
"description": "...",
"blurhash": "..."
}
]
```

the video player fetching `https://mastodon.social/media_proxy/.../original` gets 404 not found.

if I view the post on mastodon.social, it shows "Preview not available. Click to open." Clicking on that opens a new tab to the remote_url

### To reproduce

_No response_

### Expected behavior

_No response_

### Other

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.