Fortunately I enabled AppSpector to log all requests. Keep in mind I’m using the standard dart JsonServiceClient.
Here is the log of a failed request:
{
"log": {
"version": "1.2",
"creator": {
"name": "AppSpector",
"version": "1.0"
},
"entries": [
{
"startedDateTime": "2020-12-14T01:56:12.123Z",
"time": 1227,
"request": {
"method": "POST",
"url": "https://redacted.net/json/reply/DeviceLocationRegistration",
"httpVersion": "HTTP/1.0",
"cookies": [],
"headers": [
{
"name": "authorization",
"value": "Bearer redacted"
},
{
"name": "host",
"value": "redacted.net"
},
{
"name": "content-type",
"value": "application/json; charset=utf-8"
},
{
"name": "accept-encoding",
"value": "gzip"
},
{
"name": "user-agent",
"value": "Dart/2.12 (dart:io)"
},
{
"name": "accept",
"value": "application/json"
}
],
"queryString": [],
"headersSize": -1,
"bodySize": -1
},
"response": {
"status": 411,
"statusText": "OK",
"httpVersion": "HTTP/1.0",
"cookies": [],
"headers": [
{
"name": "date",
"value": "Mon, 14 Dec 2020 01:56:14 GMT"
},
{
"name": "content-length",
"value": "344"
},
{
"name": "connection",
"value": "close"
},
{
"name": "content-type",
"value": "text/html; charset=us-ascii"
}
],
"content": {
"mimeType": "text/html; charset=us-ascii",
"size": 344,
"text": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\">\r\n<HTML><HEAD><TITLE>Length Required</TITLE>\r\n<META HTTP-EQUIV=\"Content-Type\" Content=\"text/html; charset=us-ascii\"></HEAD>\r\n<BODY><h2>Length Required</h2>\r\n<hr><p>HTTP Error 411. The request must be chunked or have a content length.</p>\r\n</BODY></HTML>\r\n"
},
"redirectURL": "",
"headersSize": -1,
"bodySize": 344
},
"cache": {},
"timings": {
"blocked": -1,
"dns": -1,
"connect": -1,
"send": -1,
"wait": 1227,
"receive": -1,
"ssl": -1
}
}
]
}
}