Cannot fetch packages during migrate

I ran into this error when running raco pkg migrate 8.14. Can someone help me figure out what's going on? I can visit the host through a browser on my device. I don't have a VPN or proxy or anything. I'm on termux on Android if that matters.

11: Resolving "scribble-lib" via https://download.racket-lang.org/releases/8.15/catalog/
12: Resolving "threading-lib" via https://download.racket-lang.org/releases/8.15/catalog/
tcp-connect: connection failed;
 host not found
  address: download.racket-lang.org
  port number: 443
  system error: Invalid value for ai_flags; gai_err=3
  context...:
   /data/data/com.termux/files/usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt:555:3
   /data/data/com.termux/files/usr/share/racket/collects/net/http-client.rkt:67:0: http-conn-open!
   /data/data/com.termux/files/usr/share/racket/collects/net/http-client.rkt:274:0
   /data/data/com.termux/files/usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt:555:3
   /data/data/com.termux/files/usr/share/racket/collects/net/url.rkt:201:0: http://getpost-impure-port
   /data/data/com.termux/files/usr/share/racket/collects/net/url.rkt:309:2: redirection-loop
   /data/data/com.termux/files/usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt:555:3
   /data/data/com.termux/files/usr/share/racket/collects/pkg/private/network.rkt:59:3
   /data/data/com.termux/files/usr/share/racket/collects/pkg/private/network.rkt:33:4
   /data/data/com.termux/files/usr/share/racket/collects/racket/private/more-scheme.rkt:206:2: call-handled-body
   /data/data/com.termux/files/usr/share/racket/collects/pkg/private/catalog.rkt:138:9: for-loop
   /data/data/com.termux/files/usr/share/racket/collects/pkg/private/catalog.rkt:135:2: lookup-normally
   /data/data/com.termux/files/usr/share/racket/collects/pkg/private/prefetch.rkt:129:4
   /data/data/com.termux/files/usr/share/racket/collects/racket/private/more-scheme.rkt:206:2: call-handled-body
   /data/data/com.termux/files/usr/share/racket/collects/pkg/private/prefetch.rkt:128:2
   /data/data/com.termux/files/usr/share/racket/collects/pkg/private/prefetch.rkt:172:7

Wondering if it's related to this recent change which I see mentioned here: Release Announcement for v8.15 - #21 by shhyou

I didn't get this bug when migrating on a different machine in my network. So I don't think it's network conditions. That was a Linux desktop