I have a server from where when I try to run smartapi program it gives me the below error:
*HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Max retries exceeded with url: /rest/auth/angelbroking/user/v1/loginByPassword (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x091B1910>,
'Connection to apiconnect.angelbroking.com timed out. (connect timeout=7)'))*
upon trying to troubleshoot the problem I found that the apiconnect server itself was not responding.
This is what I tested to confirm the above:
ubuntu@test-instance:~$ nc -vz amazon.com 443
Connection to amazon.com 443 port [tcp/https] succeeded!
ubuntu@test-instance:~$
ubuntu@test-instance:~$
ubuntu@test-instance:~$ nc -vz google.com 443
Connection to google.com 443 port [tcp/https] succeeded!
ubuntu@test-instance:~$
ubuntu@test-instance:~$
ubuntu@test-instance:~$
ubuntu@test-instance:~$ nc -vz kite.zerodha.com 443
Connection to kite.zerodha.com 443 port [tcp/https] succeeded!
ubuntu@test-instance:~$
ubuntu@test-instance:~$
ubuntu@test-instance:~$ nc -vz apiconnect.angelone.com 443
nc: getaddrinfo for host "apiconnect.angelone.com" port 443: Name or service not known
ubuntu@test-instance:~$ nc -vz apiconnect.angelbroking.com 443
^C
ubuntu@test-instance:~$
The same command is working in my local pc and other pc.
PS C:\Users\msupr\Downloads> curl -v http://apiconnect.angelbroking.com:443
VERBOSE: GET with 0-byte payload
curl : 400 Bad Request
The plain HTTP request was sent to HTTPS port
nginx/1.14.1
At line:1 char:1
+ curl -v http://apiconnect.angelbroking.com:443
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
@admin can you please help in fixing this issue