<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29754</bug_id>
          
          <creation_ts>2016-07-26 19:37:15 +0000</creation_ts>
          <short_desc>Invalid JSON response - &quot;message&quot; is missing a value</short_desc>
          <delta_ts>2016-07-26 19:37:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>check</component>
          <version>HEAD</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>simpledark</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>127055</commentid>
    <comment_count>0</comment_count>
    <who name="">simpledark</who>
    <bug_when>2016-07-26 19:37:15 +0000</bug_when>
    <thetext>This is a recent regression.

While using the API with:
curl -sF &quot;uploaded_file=@index.html;type=text/html&quot; -F output=json http://validator.w3.org/check

I get an invalid JSON reponse:

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

Note that &quot;message&quot;: is missing a value.

In addition, I also get the same extra headers mentioned in Bug 29315, but I&apos;ve omitted them from this output.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>