Workers url does not load but works on local with wrangler

For Workes & Pages, what is the name of the domain?

https://white-voice-49d4.moment-31f.workers.dev/ is the worker and the worker name is white-voice-49d4

What is the issue or error you’re encountering

I wrote the worker code on local and everything seems to work. I deployed the worker and cloudflare did give me a URL back and I can see the worker on the dashboard. But If I try using URL which cloudflare gave to reach the worker, it keep load infinitely.

What steps have you taken to resolve the issue?

Tried doing curl but failed

curl -v https://white-voice-49d4.moment-31f.workers.dev/

  • Host white-voice-49d4.moment-31f.workers.dev:443 was resolved.
  • IPv6: 2606:4700:3033::ac43:a96a, 2606:4700:3037::6815:4f56
  • IPv4: 172.67.169.106, 104.21.79.86
  • Trying [2606:4700:3033::ac43:a96a]:443…
  • Trying 172.67.169.106:443…
  • Connected to white-voice-49d4.moment-31f.workers.dev (2606:4700:3033::ac43:a96a) port 443
  • ALPN: curl offers h2,http/1.1
  • (304) (OUT), TLS handshake, Client hello (1):
  • CAfile: /etc/ssl/cert.pem
  • CApath: none
  • Recv failure: Connection reset by peer
  • LibreSSL/3.3.6: error:02FFF036:system library:func(4095):Connection reset by peer
  • Closing connection
    curl: (35) Recv failure: Connection reset by peer

Screenshot of the error