Zippy returns errors as HTML

RESOLVED FIXED

Status

Marketplace
Payments/Refunds
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: andym, Unassigned)

Tracking

x86
Mac OS X
Points:
---

Details

(Reporter)

Description

4 years ago
~ $ 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.
(Reporter)

Updated

4 years ago
Summary: Zippy returns errors HTML → Zippy returns errors as HTML
(Reporter)

Comment 1

4 years ago
Accept: application/json wasn't being sent by curling.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Heh, I went to reproduce it and grabbed the latest curling which already had the fix :)
(Reporter)

Comment 3

4 years ago
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.