Skip to content

Commit

Permalink
Merge pull request #277 from FlowFuse/hardillb-patch-1
Browse files Browse the repository at this point in the history
Fix HealthCheck errors when editor disabled
  • Loading branch information
hardillb authored Aug 23, 2024
2 parents eb9c703 + ea5384e commit a97648a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ class Launcher {
timeout: { request: this.healthCheckInterval - 500 },
retry: { limit: 0 }
}
if (this.settings.settings.disableEditor) {
opts.throwHttpErrors = false
}
// Use a HEAD request to minimise data transfer
const res = await got.head(pollUrl, opts)
statusCode = res.statusCode || 500
Expand Down

0 comments on commit a97648a

Please sign in to comment.