Closed Bug 948235 Opened 10 years ago Closed 10 years ago

Zippy returns errors as HTML

Categories

(Marketplace Graveyard :: Payments/Refunds, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: andy+bugzilla, Unassigned)

Details

~ $ curling http://localhost:8080/products -X POST --data='{"foo": "bar"}'
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Error</title>
  
<link rel="stylesheet" href="/css/zippy.css">

</head>
<body class="error">
  <div class="page">
    <main role="main">
      
  <h1>InvalidArgument</h1>
  <div class="msg">
    <p>{&quot;name&quot;:&quot;This field is required.&quot;,&quot;external_id&quot;:&quot;This field is required.&quot;,&quot;seller_id&quot;:&quot;This field is required.&quot;}</p>
  </div>
</main></div></body>
</html>

That should be a JSON response.
Summary: Zippy returns errors HTML → Zippy returns errors as HTML
Accept: application/json wasn't being sent by curling.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Heh, I went to reproduce it and grabbed the latest curling which already had the fix :)
I admire your zeal in looking at resolved bugs.
You need to log in before you can comment on or make changes to this bug.