Endpoint process unexpectedly terminated causing request to fail

Hey everyone. My logging seems to indicate that my phonenix app’s endpoint terminated and prevented my request from being fulfilled. If I am reading this correctly, it seems like the endpoint eventually did successfully start. Can anyone help me make sense of this? What do I need to do to debug this and prevent this from happening? This has only happened once. Many other requests are fulfilled with no issue.

Hosted on fly shared-1x-cpu@1024MB

Thanks!

2024-09-05 06:24:28.648	
10:24:28.647 [info] Access AppWeb.Endpoint at [redacted]
2024-09-05 06:24:28.646	
(stdlib 5.2.3) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
2024-09-05 06:24:28.646	
(cowboy 2.12.0) /app/deps/cowboy/src/cowboy_stream_h.erl:295: :cowboy_stream_h.request_process/3
2024-09-05 06:24:28.646	
(cowboy 2.12.0) /app/deps/cowboy/src/cowboy_stream_h.erl:306: :cowboy_stream_h.execute/3

2024-09-05 06:24:28.646	
(cowboy 2.12.0) /app/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
2024-09-05 06:24:28.646	
(plug_cowboy 2.7.1) lib/plug/cowboy/handler.ex:11: Plug.Cowboy.Handler.init/2
2024-09-05 06:24:28.646	
(app 0.1.0) lib/app_web/endpoint.ex:1: AppWeb.Endpoint.call/2
2024-09-05 06:24:28.646	
(app 0.1.0) deps/phoenix/lib/phoenix/endpoint.ex:584: AppWeb.Endpoint.script_name/0
2024-09-05 06:24:28.646	
(app 0.1.0) deps/phoenix/lib/phoenix/endpoint.ex:544: AppWeb.Endpoint.persistent!/0

2024-09-05 06:24:28.646	
** (RuntimeError) could not find persistent term for endpoint AppWeb.Endpoint. Make sure your endpoint is started and note you cannot access endpoint functions at compile-time
2024-09-05 06:24:28.646	
** (exit) an exception was raised:
2024-09-05 06:24:28.646	
Request: POST /redacted
2024-09-05 06:24:28.646	
Server: [redacted]:80 (http)
2024-09-05 06:24:28.646	
10:24:28.644 [error] #PID<0.3268.0> running AppWeb.Endpoint (connection #PID<0.3267.0>, stream id 1) terminated
2024-09-05 06:24:28.644	
10:24:28.642 [info] Running AppWeb.Endpoint with cowboy 2.12.0 at :::8080 (http)
2024-09-05 06:24:28.641	
machine became reachable in 4.457179214s
2024-09-05 06:24:24.184	
machine started in 1.015822679s
2024-09-05 06:24:24.167	
Machine started in 979ms
2024-09-05 06:24:24.099	
2024/09/05 10:24:24 INFO SSH listening listen_address=[redacted]
2024-09-05 06:24:24.091	
 INFO [fly api proxy] listening at /.fly/api
2024-09-05 06:24:24.086	
 INFO Preparing to run: `/app/bin/server` as nobody
2024-09-05 06:24:24.048	
 INFO Starting init (commit: [redacted])...
2024-09-05 06:24:23.673	
[    0.289777] PCI: Fatal: No config space access function found
2024-09-05 06:24:23.303	
2024-09-05T10:24:23.303928656 [ [redacted] :main] Running Firecracker v1.7.0
2024-09-05 06:24:23.168	
Starting machine