Page MenuHomePhabricator

Uncaught TypeError: Cannot read property 'warnings' of undefined
Closed, ResolvedPublic

Description

Error counts since 20160719:

37	TypeError: result.upload is undefined
26	Uncaught TypeError: Cannot read property 'warnings' of undefined
18	TypeError: undefined is not an object (evaluating 'result.upload.warnings')

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I ran into this when working on unrelated things. It happens when an async upload assembling fails, when UW tried to display the error.

Change 305272 had a related patch set uploaded (by Bartosz Dziewoński):
mw.ApiUploadFormDataHandler: Unbreak error handling for async uploads

https://gerrit.wikimedia.org/r/305272

Change 305272 merged by jenkins-bot:
mw.FormDataTransport: Unbreak error handling for async uploads

https://gerrit.wikimedia.org/r/305272