Page MenuHomePhabricator

SyntaxError: JSON.parse: unexpected end of data
Closed, ResolvedPublic

Description

Experienced on http://en.wikipedia.beta.wmflabs.org/wiki/Lightbox_demo?debug=1

Firefox 26.0

Coming from the ULSPreferences init function. The value it tries to parse as JSON is "", which makes JSON.parse() fail. Fix is probably as simple as adding a try/catch.


Version: master
Severity: major
OS: Mac OS X 10.9
Platform: Macintosh

Details

Reference
bz61137

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:56 AM
bzimport set Reference to bz61137.

Change 112444 had a related patch set uploaded by Amire80:
Prevent JSON parsing errors

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

Thanks a lot for the report, Gilles.

Change 112444 merged by jenkins-bot:
Prevent JSON parsing errors

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