Able to call in dev but unable once deployed

My worker script has a fetch that posts request data to any url.For testing in development env or the playground when i trigger the script it effortlessly sends data to the mock api.

However when i deploy this and add it to my domain* in route and then call this domain from my postman the worker does get triggered as i can see in logs but fails to send the data to the ec2-insatnce.The ec2-instance allows all traffic.

I am unable to pin point the issue.

Workers are not able to send to IP addresses, only domains and you can create a DNS record to point to the IP address.

For custom ports then you need to follow this flow chart