Latency / no response from endpoint, can't debug

I deployed a little app this week and I’m hitting sporadic delays when trying to submit a POST request to the end point. It will usually respond immediately but then other times a debug curl request will hang like the below:

curl -v -o /dev/null -sS https://<url>.fly.dev/send        
*   Trying 137.66.48.10:443...

It’s a NodeJS app in a Docker container.

What am I missing? I’ve tried looking at the Grafana dash and I see some latency sometimes but it doesn’t seem to match with what I’m seeing in my app / in the terminal.

fly ping -a

will run for a while and then hang, seemingly for good.

35 bytes from fdaa:0:beac::3 (gateway), seq=1 time=21.7ms
35 bytes from fdaa:0:beac::3 (gateway), seq=2 time=19.1ms
35 bytes from fdaa:0:beac::3 (gateway), seq=3 time=20.9ms
35 bytes from fdaa:0:beac::3 (gateway), seq=4 time=20ms
35 bytes from fdaa:0:beac::3 (gateway), seq=5 time=21.8ms
35 bytes from fdaa:0:beac::3 (gateway), seq=6 time=21.5ms
35 bytes from fdaa:0:beac::3 (gateway), seq=7 time=22.7ms
35 bytes from fdaa:0:beac::3 (gateway), seq=8 time=18.2ms
35 bytes from fdaa:0:beac::3 (gateway), seq=9 time=21.3ms
35 bytes from fdaa:0:beac::3 (gateway), seq=10 time=19.9ms
35 bytes from fdaa:0:beac::3 (gateway), seq=11 time=25.6ms
35 bytes from fdaa:0:beac::3 (gateway), seq=12 time=19.3ms
35 bytes from fdaa:0:beac::3 (gateway), seq=13 time=26.3ms
35 bytes from fdaa:0:beac::3 (gateway), seq=14 time=19.1ms
35 bytes from fdaa:0:beac::3 (gateway), seq=15 time=19.4ms
35 bytes from fdaa:0:beac::3 (gateway), seq=16 time=23.4ms

I’m still seeing timeouts, I must be missing something? Any tips to debug?

*   Trying 137.66.47.75:443...
* After 9469ms connect time, move on!
* connect to 137.66.47.75 port 443 failed: Operation timed out
* Connection timeout after 10004 ms
* Closing connection 0
curl: (28) Connection timeout after 10004 ms

I’m seeing something similar with the Hellonode application:

~/Workspace/hellonode-builtin master*
❯ wget https://wandering-flower-4349.fly.dev/             
--2022-10-25 20:06:18--  https://wandering-flower-4349.fly.dev/
Resolving wandering-flower-4349.fly.dev (wandering-flower-4349.fly.dev)... 137.66.43.119
Connecting to wandering-flower-4349.fly.dev (wandering-flower-4349.fly.dev)|137.66.43.119|:443... failed: Operation timed out.
Retrying.
--2022-10-25 20:06:21--  (try: 2)  https://wandering-flower-4349.fly.dev/
Connecting to wandering-flower-4349.fly.dev (wandering-flower-4349.fly.dev)|137.66.43.119|:443... failed: Operation timed out.
Retrying.

--2022-10-25 20:06:24--  (try: 3)  https://wandering-flower-4349.fly.dev/
Connecting to wandering-flower-4349.fly.dev (wandering-flower-4349.fly.dev)|137.66.43.119|:443... ^C

~/Workspace/hellonode-builtin master* 16s
❯ wget https://wandering-flower-4349.fly.dev/
--2022-10-25 20:06:34--  https://wandering-flower-4349.fly.dev/
Resolving wandering-flower-4349.fly.dev (wandering-flower-4349.fly.dev)... 137.66.43.119
Connecting to wandering-flower-4349.fly.dev (wandering-flower-4349.fly.dev)|137.66.43.119|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32 [text/html]
Saving to: ‘index.html’

index.html                     100%[==================================================>]      32  --.-KB/s    in 0s      

2022-10-25 20:06:35 (15.3 MB/s) - ‘index.html’ saved [32/32]

What’s going on here?