It is working in my local dev machine environment, but not working in the ec2 machine environment.