Skip to content

Conversation

@firestack
Copy link
Member

@firestack firestack commented Oct 8, 2025

Summary of changes

Asana Ticket: No Ticket

#903 updated bandit and version v1.4.0 changed where the compress option is defined:

BREAKING CHANGE Move configuration options that are common between HTTP/1 and HTTP/2 stacks into a shared http_options top-level config
https://hexdocs.pm/bandit/1.4.0/changelog.html#1-4-0-26-mar-2024

Details
edc935bfcfed Start Call: Phoenix.Config.start_link({ApiWeb.Endpoint, [endpoint_id: "ect5h+mHnjPyg7Y2C+p75g", pubsub_server: nil, otp_app: :api_web, code_reloader: false, debug_errors: false, check_origin: true, https: false, reloadable_apps: nil, reloadable_compilers: [:gettext, :elixir, :app], static_url: nil, cache_manifest_skip_vsn: false, watchers: [], force_watchers: false, adapter: Bandit.PhoenixAdapter, root: "/root/apps/api_web", render_errors: [view: ApiWeb.ErrorView, layout: false, accepts: ["json", "html"]], server: true, cache_static_manifest: "priv/static/cache_manifest.json", http: [http_1_options: [compress: true], thousand_island_options: [read_timeout: 120000, num_acceptors: 500, shutdown_timeout: 90000], port: "4000"], url: [path: "/", scheme: "https", port: 443, host: "api-dev.mbtace.com"], secret_key_base: "<redacted>"], [endpoint_id: "ect5h+mHnjPyg7Y2C+p75g", pubsub_server: nil, otp_app: :api_web, code_reloader: false, debug_errors: false, render_errors: [view: ApiWeb.ErrorView, accepts: ["html"], layout: false], adapter: Phoenix.Endpoint.Cowboy2Adapter, cache_static_manifest: nil, check_origin: true, http: false, https: false, reloadable_apps: nil, reloadable_compilers: [:gettext, :elixir, :app], secret_key_base: nil, static_url: nil, url: [host: "localhost", path: "/"], cache_manifest_skip_vsn: false, watchers: [], force_watchers: false], [name: ApiWeb.Endpoint.Config]})

edc935bfcfed 2025-10-08T16:15:32.863 [error] node=api@ip-10-2-8-202 Child {ApiWeb.Endpoint, :http} of Supervisor ApiWeb.Endpoint failed to start

edc935bfcfed ** (exit) an exception was raised:

edc935bfcfed ** (RuntimeError) Unsupported key(s) in http_1_options config: [:compress]

edc935bfcfed (bandit 1.8.0) lib/bandit.ex:364: Bandit.validate_options/3

edc935bfcfed (bandit 1.8.0) lib/bandit.ex:249: Bandit.start_link/1

edc935bfcfed (stdlib 6.2) supervisor.erl:959: :supervisor.do_start_child_i/3

edc935bfcfed (stdlib 6.2) supervisor.erl:945: :supervisor.do_start_child/3

edc935bfcfed (stdlib 6.2) supervisor.erl:929: anonymous fn/3 in :supervisor.start_children/2

edc935bfcfed (stdlib 6.2) supervisor.erl:1820: :supervisor.children_map/4

edc935bfcfed (stdlib 6.2) supervisor.erl:889: :supervisor.init_children/2

edc935bfcfed (stdlib 6.2) gen_server.erl:2229: :gen_server.init_it/2

edc935bfcfed Start Call: Bandit.start_link([plug: ApiWeb.Endpoint, display_plug: ApiWeb.Endpoint, scheme: :http, otp_app: :api_web, http_1_options: [compress: true], thousand_island_options: [read_timeout: 120000, num_acceptors: 500, shutdown_timeout: 90000], port: "4000"])

edc935bfcfed 2025-10-08T16:15:32.864 [error] node=api@ip-10-2-8-202 Child ApiWeb.Endpoint of Supervisor ApiWeb.Supervisor failed to start

edc935bfcfed ** (exit) shutdown: failed to start child: {ApiWeb.Endpoint, :http}

edc935bfcfed ** (EXIT) an exception was raised:

edc935bfcfed ** (RuntimeError) Unsupported key(s) in http_1_options config: [:compress]

edc935bfcfed (bandit 1.8.0) lib/bandit.ex:364: Bandit.validate_options/3

edc935bfcfed (bandit 1.8.0) lib/bandit.ex:249: Bandit.start_link/1

edc935bfcfed (stdlib 6.2) supervisor.erl:959: :supervisor.do_start_child_i/3

edc935bfcfed (stdlib 6.2) supervisor.erl:945: :supervisor.do_start_child/3

edc935bfcfed (stdlib 6.2) supervisor.erl:929: anonymous fn/3 in :supervisor.start_children/2

edc935bfcfed (stdlib 6.2) supervisor.erl:1820: :supervisor.children_map/4

edc935bfcfed (stdlib 6.2) supervisor.erl:889: :supervisor.init_children/2

edc935bfcfed (stdlib 6.2) gen_server.erl:2229: :gen_server.init_it/2

edc935bfcfed Start Call: ApiWeb.Endpoint.start_link([])

edc935bfcfed 2025-10-08T16:15:32.866 [notice] node=api@ip-10-2-8-202 Application api_web exited: ApiWeb.start(:normal, []) returned an error: shutdown: failed to start child: ApiWeb.Endpoint

edc935bfcfed ** (EXIT) shutdown: failed to start child: {ApiWeb.Endpoint, :http}

edc935bfcfed ** (EXIT) an exception was raised:

edc935bfcfed ** (RuntimeError) Unsupported key(s) in http_1_options config: [:compress]

edc935bfcfed (bandit 1.8.0) lib/bandit.ex:364: Bandit.validate_options/3

edc935bfcfed (bandit 1.8.0) lib/bandit.ex:249: Bandit.start_link/1

edc935bfcfed (stdlib 6.2) supervisor.erl:959: :supervisor.do_start_child_i/3

edc935bfcfed (stdlib 6.2) supervisor.erl:945: :supervisor.do_start_child/3

edc935bfcfed (stdlib 6.2) supervisor.erl:929: anonymous fn/3 in :supervisor.start_children/2

edc935bfcfed (stdlib 6.2) supervisor.erl:1820: :supervisor.children_map/4

edc935bfcfed (stdlib 6.2) supervisor.erl:889: :supervisor.init_children/2

edc935bfcfed (stdlib 6.2) gen_server.erl:2229: :gen_server.init_it/2

edc935bfcfed 2025-10-08T16:15:32.867 [error] node=api@ip-10-2-8-202 Process #PID<0.2863.0> terminating

edc935bfcfed ** (exit) exited in: ApiWeb.start(:normal, [])

edc935bfcfed ** (EXIT) shutdown: failed to start child: ApiWeb.Endpoint

edc935bfcfed ** (EXIT) shutdown: failed to start child: {ApiWeb.Endpoint, :http}

edc935bfcfed ** (EXIT) an exception was raised:

edc935bfcfed ** (RuntimeError) Unsupported key(s) in http_1_options config: [:compress]

edc935bfcfed (bandit 1.8.0) lib/bandit.ex:364: Bandit.validate_options/3

edc935bfcfed (bandit 1.8.0) lib/bandit.ex:249: Bandit.start_link/1

edc935bfcfed (stdlib 6.2) supervisor.erl:959: :supervisor.do_start_child_i/3

edc935bfcfed (stdlib 6.2) supervisor.erl:945: :supervisor.do_start_child/3

edc935bfcfed (stdlib 6.2) supervisor.erl:929: anonymous fn/3 in :supervisor.start_children/2

edc935bfcfed (stdlib 6.2) supervisor.erl:1820: :supervisor.children_map/4

edc935bfcfed (stdlib 6.2) supervisor.erl:889: :supervisor.init_children/2

edc935bfcfed (stdlib 6.2) gen_server.erl:2229: :gen_server.init_it/2

edc935bfcfed (kernel 10.2) application_master.erl:143: :application_master.init/3

edc935bfcfed (stdlib 6.2) proc_lib.erl:329: :proc_lib.init_p_do_apply/3

edc935bfcfed Initial Call: :application_master.init/3

edc935bfcfed Ancestors: [:application_controller, #PID<0.10.0>]

edc935bfcfed {exit,terminating,[{application_controller,call,2,[{file,"application_controller.erl"},{line,511}]},{application,enqueue_or_start,6,[{file,"application.erl"},{line,380}]},{application,ensure_all_started,3,[{file,"application.erl"},{line,359}]},{elixir,start_cli,0,[{file,"src/elixir.erl"},{line,195}]},{init,start_it,1,[]},{init,start_em,1,[]},{init,do_boot,3,[]}]}

edc935bfcfed Runtime terminating during boot (terminating)

edc935bfcfed [os_mon] cpu supervisor port (cpu_sup): Erlang has closed

edc935bfcfed heart: Wed Oct 8 16:15:32 2025: [os_mon] memory supervisor port (memsup): Erlang has closed

edc935bfcfed Erlang has closed.

edc935bfcfed heart: Wed Oct 8 16:15:32 2025: Would reboot. Terminating. 

dependabot bot and others added 2 commits October 8, 2025 12:26
Bumps [lasso](https://github.com/claytongentry/lasso) from 0.1.1-pre to 0.1.4.
- [Changelog](https://github.com/claytongentry/lasso/blob/main/CHANGELOG.md)
- [Commits](https://github.com/claytongentry/lasso/commits)

---
updated-dependencies:
- dependency-name: lasso
  dependency-version: 0.1.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@firestack firestack marked this pull request as ready for review October 8, 2025 16:41
@firestack firestack requested a review from a team as a code owner October 8, 2025 16:41
@firestack firestack requested review from rudiejd and removed request for a team October 8, 2025 16:41
@firestack firestack merged commit e201b7b into master Oct 8, 2025
43 checks passed
@firestack firestack deleted the kf/jj/knrpxtvursww branch October 8, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants