Closed
Bug 1941569
Opened 1 year ago
Closed 29 days ago
Leverage server error responses content in client errors
Categories
(Application Services :: Remote Settings, enhancement)
Application Services
Remote Settings
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: leplatrem, Unassigned)
References
Details
(Whiteboard: [remote-settings])
Attachments
(1 external file)
Currently, when the server returns an error response, the client only shows its HTTP status code.
Error: Remote settings error: Error in network response: status code: 400
As detailed here, the server will return a JSON payload with details that could be leveraged to show developers/users more meaningful error messages:
{
"code": 400,
"errno": 107,
"error": "Invalid parameters",
"message": "_expected in querystring: Required",
"details": [
{
"location": "querystring",
"name": "_since",
"description": "The value should be integer between double quotes."
},
{
"location": "querystring",
"name": "_expected",
"description": "Required"
}
]
}
| Reporter | ||
Updated•1 month ago
|
Whiteboard: [remote-settings]
Updated•1 month ago
|
Comment 1•1 month ago
|
||
(via GitHub webhook, authenticated as shared-secret)
Comment 2•29 days ago
|
||
Authored by https://github.com/grahamalama
https://github.com/mozilla/application-services/commit/9ef6d76c70ec8be772769328a12c90fa2ce710d8
[main] Bug 1941569 - Leverage server error responses content in client errors (#7672)
(via GitHub webhook, authenticated as shared-secret)
Status: NEW → RESOLVED
Closed: 29 days ago
Flags: qe-verify+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•