"Instance refused connection"

Hi everybody, im trying to deploy a node api, but when i call my endpoint i get this error “Instance refused connection”, whats wrong here?

my fly.toml

# fly.toml file generated for app on 2023-01-10T21:12:09-03:00

app = "app"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[build]
  builder = "heroku/buildpacks:20"


[experimental]
  allowed_public_ports = []
  auto_rollback = true

[[services]]
  http_checks = []
  internal_port = 8080
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    type = "connections"

  [[services.ports]]
    handlers = ["http"]
    port = 80

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 443

  [[services.tcp_checks]]
    grace_period = "1s"
    interval = "15s"
    restart_limit = 0
    timeout = "2s"

1 Like

I just generated another fly.toml and now its working, maybe the ports are wrong in my file, dont know for sure.

2 Likes