Don't hang request in the event of a spelling backend error
This commit is contained in:
@@ -12,4 +12,5 @@ module.exports = SpellingController =
|
||||
request(url: Settings.apis.spelling.url + url, method: req.method, headers: req.headers, json: req.body, timeout:TEN_SECONDS)
|
||||
.on "error", (error) ->
|
||||
logger.error err: error, "Spelling API error"
|
||||
res.status(500).end()
|
||||
.pipe(res)
|
||||
|
||||
Reference in New Issue
Block a user