Dear Friends, At last I found error reason. There is no active internet connection in staging server. cURL is not working for SMS gateway as
[root@KSRTCApp ~]# curl -I http://api.sms.tn.gov.in
curl: (28) Failed to connect to api.sms.tn.gov.in port 80: Connection timed out
Am I right friends ?
Please advise
Thanks
Anes P A
Are you sure that the hostname is: api.sms.tn.gov.in
I can't find it and if I check it with an external service I got the same: https://downforeveryoneorjustme.com/api.sms.tn.gov.in
Sorry @tvbeek It's a dummy URL for just post purpose (security purpose) . I tried my URL in putty (For Staging server) as
curl: (28) Failed to connect to xxx.yyyy.tn.gov.in port 80: Connection timed out
But localhost the SMS Works fine when I try above curl command I got
Server: nginx/0.8.53
Date: Tue, 31 Oct 2023 13:40:46 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
Vary: Accept-Encoding`
Please advise
Thanks
Anes P A
@flipmedia that makes sense :)
Because you got a timeout and not an could not resolve to host error I suspect there is a firewall blocking the access. But it allows the DNS request.
I think you need to talk to the system administrators to fix this.
flipmedia liked this reply
You are right @tvbeek . Need to white list that IP . So after the problem will vanish...
tvbeek liked this reply
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community