Page MenuHomePhabricator

Internal error (fatal exception of type « TypeError ») when browsing any video
Closed, ResolvedPublicPRODUCTION ERROR

Description

Steps to replicate the issue (include links if applicable):

What happens?:
Nothing is diplayed except this error message (in French for me):

[f11ecb16-6b6c-479d-b349-633c0877920a] 2026-04-01 18:18:49: Erreur fatale de type « TypeError »

What should have happened instead?:
I should see my video. I have the same error for all the videos I have uploaded this afternoon with video2commons.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
Firefox 149.0.

Details

Request URL
https://commons.wikimedia.org/wiki/File:Artemis_II_Secondary_Payload_(KSC-20250902-MH-CSH01-0002-Artemis_II_Secondary_Payload-M16404_MP4).webm

Event Timeline

Don-vip renamed this task from Internal error (fatal error of type « TypeError ») when browing any video to Internal error (fatal error of type « TypeError ») when browsing any video.Apr 1 2026, 6:23 PM
Don-vip awarded a token.

Screenshot in private mode / English:

image.png (1,691×706 px, 120 KB)

Don-vip renamed this task from Internal error (fatal error of type « TypeError ») when browsing any video to Internal error (fatal exception of type « TypeError ») when browsing any video.Apr 1 2026, 6:28 PM
Restricted Application changed the subtype of this task from "Bug Report" to "Production Error". · View Herald TranscriptApr 1 2026, 8:42 PM

The problem is not limited to recent uploads. I get a similar error for the video on https://en.wikipedia.org/wiki/Help:Introduction_to_Wikipedia (Get to know some members of Wikipedia's diverse, enthusiastic community.):

[c7070958-d1cb-4b9b-bbb7-b604554666e3] 2026-04-01 21:13:32: Fatal exception of type "TypeError"

It appears to me that all videos are affected.

Don-vip set Request URL to https://commons.wikimedia.org/wiki/File:Artemis_II_Secondary_Payload_(KSC-20250902-MH-CSH01-0002-Artemis_II_Secondary_Payload-M16404_MP4).webm.Apr 1 2026, 9:22 PM
Don-vip added a project: Video.

It appears to me that all videos are affected.

It seems almost all videos are affected but I managed to find a few ones that can be displayed, like this one.

I wonder if it's the same problem as T422074 which also points to a video on Commons.

@Don-vip - Thank you for connecting the dots here. Yes, this looks like the same issue, and indeed should be resolved as of ~ 21:42 UTC.

Yeeeees videos are back, thank you so much @Scott_French !

@Scott_French out of curiosity, why a very few number of videos were still available, I don't really understand the error?

@Don-vip - I might have to defer to @Ladsgroup for a definitive answer, but my rough understanding is that only some videos would have an explicit width parameter present for the preview thumbnail shown on the page. In cases where it was not set, the code would hit the TypeError case reported here when attempting to recalculate the preview thumbnail dimensions (operating on a width that was in fact null).

(Edited for clarity and consistent nomenclature)

Hi, yeah, it shouldn't be all videos. Explicitly I tried this when I was deploying the faulty patch and it worked fine: https://test.wikipedia.org/wiki/Punithtest Regardless, isn't it fixed now? (T422074) I think we should close the ticket.

Don-vip claimed this task.

Yes it's fixed, I was just curious :) Thank you so much, team!