Phoenix + Bandit fails to start

Keep getting app failure with bandit, have already added below as mentioned in a couple of posts but the app fails and there are no logs to indicate why it fails

[services]

[http_checks]
interval = 10000
grace_period = “5s”
method = “get”
path = “/heartbeatz”
protocol = “http”
timeout = 2000
restart_limit = 0
[http_checks.headers]
X-Forwarded-Proto = “https”

Were you able to test this out locally?
Might be an internal error from Fly since their API operations were down due to network issues.

Bandit works well locally. Reverting to Cowboy worked fine in fly.io so don’t think its got anything to do with their API downtime

I switched from Cowboy to Bandit several months ago without any issue. I don’t recall needing to make any changes to infra to support that transition.

You might want to make few changes to your health check config.Your http_checks need to be defined within services section using double square brackets and would look like this:
[[services.http_checks]]
interval = 10000
grace_period = “5s”
method = “get”
path = “/heartbeatz”
protocol = “http”
timeout = 2000
[services.http_checks.headers]
X-Forwarded-Proto = “https”

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.