This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29754 - Invalid JSON response - "message" is missing a value
Summary: Invalid JSON response - "message" is missing a value
Status: NEW
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
Depends on:
Reported: 2016-07-26 19:37 UTC by simpledark
Modified: 2016-07-26 19:37 UTC (History)
0 users

See Also:


Description simpledark 2016-07-26 19:37:15 UTC
This is a recent regression.

While using the API with:
curl -sF "uploaded_file=@index.html;type=text/html" -F output=json

I get an invalid JSON reponse:

    "url": "index.html",
    "messages": [
              "message": ,
              "messageid": "html5",
              "explanation": "    <p class=\"helpwanted\">\n      <a\n        href=\"feedback.html?uri=;errmsg_id=html5#errormsg\"\n\ttitle=\"Suggest improvements on this error message through our feedback channels\" \n      >&#x2709;</a>\n    </p>\n",
              "type": "info"

Note that "message": is missing a value.

In addition, I also get the same extra headers mentioned in Bug 29315, but I've omitted them from this output.