Project

Profile

Help

Bug #4174

No response body from HTTP request when http.status >= 400

Added by Debbie Lockett 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Normal
Sprint/Milestone:
-
Start date:
2019-03-20
Due date:
% Done:

0%

Applies to JS Branch:
1.0, Trunk
Fix Committed on JS Branch:
Fixed in JS Release:
SEF Generated with:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

Issue raised by user on Saxon-JS forum at https://saxonica.plan.io/boards/5/topics/7423:

"When I use ixsl:schedule-action to do an http-request, I'm not getting a body in the response map for errors (though the bodies do show up just fine for 2xx responses). For example, POSTing a malformed document, I'm returned:

map{"headers":map{"connection":"close", "content-type":"application/xml;charset=UTF-8", "transfer-encoding":"Identity", "date":"Wed, 20 Mar 2019 00:16:19 GMT"}, "status":400, "message":"", "type":"load"}"' "

In the Saxon-JS code (BrowserPlatform makeHttpRequest) it appears that we only add response.body if !request["status-only"] && http.status < 400. I'm not sure where that restriction came from; I probably wrongly assumed that error responses never have bodies...

History

#1 Updated by Debbie Lockett 6 months ago

  • Description updated (diff)

Please register to edit this issue

Also available in: Atom PDF Tracking page