mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-02 07:40:48 +00:00
v10.3.8
This commit is contained in:
parent
b6498fe25a
commit
6027556150
@ -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:
|
- commits:
|
||||||
- subject: 'ping: move /ping out from authentication'
|
- subject: 'ping: move /ping out from authentication'
|
||||||
hash: 8d5633a11f15cee356854e9c21502ada4b89e7c7
|
hash: 8d5633a11f15cee356854e9c21502ada4b89e7c7
|
||||||
|
@ -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!
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
||||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
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
|
## 10.3.7 - 2019-09-20
|
||||||
|
|
||||||
* Ping: move /ping out from authentication [Matthew McGinn]
|
* Ping: move /ping out from authentication [Matthew McGinn]
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "balena-supervisor",
|
"name": "balena-supervisor",
|
||||||
"version": "10.3.7",
|
"version": "10.3.8",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "balena-supervisor",
|
"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.",
|
"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",
|
"license": "Apache-2.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user