Connection error on oracle vm


  • Hi all,

    Apologies for inconvenience caused.
    We are working on the issue, will let you know once it is fixed.

    Thanks & Regards,
    SmartAPI team


  • @Moderator_2 @admin Still stuck with the same issue. I'm not even able to reach angelone api endpoint from oracle instance.


  • @anurag31 @Moderator_2 @admin @admin123

    Today (25Jan24) new errors every 30Mins whole day along with timeout errors. is there someone to look into these, its been 20 days. seriously?

    "2024-01-25, 10:38:23",0,0.0,0,Couldn't parse the JSON response received from the server: b'<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body>\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>nginx/1.25.1</center>\r\n</body>\r\n</html>\r\n'
    "2024-01-25, 10:38:23",0,0.0,0,Couldn't parse the JSON response received from the server: b'<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body>\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>nginx/1.25.1</center>\r\n</body>\r\n</html>\r\n'
    "2024-01-25, 10:38:23",0,0.0,0,Couldn't parse the JSON response received from the server: b'<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body>\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>nginx/1.25.1</center>\r\n</body>\r\n</html>\r\n'


  • Hi @anurag31

    Apologies for the inconvenience caused.
    Will share the ETA as soon as possible.

    Thanks & Regards,
    SmartAPI team


  • Hi @Moderator_2 @admin @admin123 , This issue is not resolved yet even after 20+ days. This is a complete blocker for us. Can you provide an ETA for this?


  • Hi @anurag31

    Apologies for inconvenience caused. We are looking onto the issue. Will update you as soon as possible.

    Thanks & Regards,
    SmartAPI team


  • @Moderator_2 @admin I'm stuck in this for last 15+ days. Any updates?


  • @anurag31 @Moderator_2 ,

    Exact same error from last 2 days, even just few min ago got this error. something is really not right from angel end. someone needs to fix it.


  • Sure @Moderator_2 , sharing full logs for reference

    Traceback (most recent call last):
      File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/connection.py", line 200, in _new_conn
        sock = connection.create_connection(
      File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
        raise err
      File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection
        sock.connect(sa)
    TimeoutError: timed out
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 790, in urlopen
        response = self._make_request(
      File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 491, in _make_request
        raise new_e
      File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 467, in _make_request
        self._validate_conn(conn)
      File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1092, in _validate_conn
        conn.connect()
      File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/connection.py", line 604, in connect
        self.sock = sock = self._new_conn()
      File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/connection.py", line 209, in _new_conn
        raise ConnectTimeoutError(
    urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7fc1dadd3700>, 'Connection to apiconnect.angelbroking.com timed out. (connect timeout=7)')
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 486, in send
        resp = conn.urlopen(
      File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 844, in urlopen
        retries = retries.increment(
      File "/home/ubuntu/.local/lib/python3.10/site-packages/urllib3/util/retry.py", line 515, in increment
        raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
    urllib3.exceptions.MaxRetryError: 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 0x7fc1dadd3700>, 'Connection to apiconnect.angelbroking.com timed out. (connect timeout=7)'))
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/home/ubuntu/TradingBot/AngelOneApiTrading.py", line 244, in <module>
        AngelOneApi().run()
      File "/home/ubuntu/TradingBot/AngelOneApiTrading.py", line 216, in run
        self.login()
      File "/home/ubuntu/TradingBot/AngelOneApiTrading.py", line 51, in login
        data = self.smartApi.generateSession(self.client_id, self.client_pin, totp)
      File "/home/ubuntu/.local/lib/python3.10/site-packages/SmartApi/smartConnect.py", line 236, in generateSession
        loginResultObject=self._postRequest("api.login",params)
      File "/home/ubuntu/.local/lib/python3.10/site-packages/SmartApi/smartConnect.py", line 228, in _postRequest
        return self._request(route, "POST", params)
      File "/home/ubuntu/.local/lib/python3.10/site-packages/SmartApi/smartConnect.py", line 188, in _request
        raise e
      File "/home/ubuntu/.local/lib/python3.10/site-packages/SmartApi/smartConnect.py", line 177, in _request
        r = requests.request(method,
      File "/usr/local/lib/python3.10/dist-packages/requests/api.py", line 59, in request
        return session.request(method=method, url=url, **kwargs)
      File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 589, in request
        resp = self.send(prep, **send_kwargs)
      File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 703, in send
        r = adapter.send(request, **kwargs)
      File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 507, in send
        raise ConnectTimeout(e, request=request)
    requests.exceptions.ConnectTimeout: 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 0x7fc1dadd3700>, 'Connection to apiconnect.angelbroking.com timed out. (connect timeout=7)'))
    

  • Hi @anurag31

    Apologies for inconvenience caused.
    We are looking into the issue.

    Thanks & Regards,
    SmartAPI team