Cannot get h2c to work with Fastify

This is my configuration:

const app = fastify({
  http2: true,
  https:{
    allowHTTP1: false,
  },
});

all I see in Fly logs is:

[error] [PU02] could not complete HTTP request to instance: connection closed before message completed

Fly is configured with:

[http_service]
  internal_port=3000
  force_https=true
  auto_stop_machines='off'
  auto_start_machines=true
  min_machines_running=1
  processes=['app']
  [http_service.http_options]
    h2_backend=true
  [http_service.concurrency]
    type="requests"
    soft_limit=100
  [http_service.http_options.response]
    pristine=true

Have you tracked your resource usage to identify possible bottlenecks?

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