This commit is contained in:
Balena CI 2019-09-23 19:36:18 +03:00
parent b6498fe25a
commit 6027556150
4 changed files with 38 additions and 2 deletions

View File

@ -1,3 +1,35 @@
- commits:
- subject: Unify API errors processing
hash: 8b4c9837fa39bcb6642f7fd3208afa8d26b9af46
body: >
With this change, we define a custom error handler as express middleware
which renders 503 error with JSON response that includes status and
message
fields.
The handler also logs the error, so the stack can be inspected in
supervisor
logs. It's also a point where we can report the error to analytics
services.
This removes a bunch of error handlers written in every request handler
function. Behaviour should remain unchanged except the fact that
/healthy endpoint now returns 503 in case of failure instead of 500.
footer:
Change-type: patch
change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
signed-off-by: Roman Mazur <roman@balena.io>
author: Roman Mazur
version: 10.3.8
date: 2019-09-23T14:24:38.467Z
- commits:
- subject: 'ping: move /ping out from authentication'
hash: 8d5633a11f15cee356854e9c21502ada4b89e7c7

View File

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).
## 10.3.8 - 2019-09-23
* Unify API errors processing [Roman Mazur]
## 10.3.7 - 2019-09-20
* Ping: move /ping out from authentication [Matthew McGinn]

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "balena-supervisor",
"version": "10.3.7",
"version": "10.3.8",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,7 +1,7 @@
{
"name": "balena-supervisor",
"description": "This is balena's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as the balena API informs it to.",
"version": "10.3.7",
"version": "10.3.8",
"license": "Apache-2.0",
"repository": {
"type": "git",