SSL Handshake error using API v3

I have an algo running and one of the required steps in fetching the ltp using the api. I received the following error. Since it is the fist time I received this error, I was curious as to what caused it .

Traceback (most recent call last):
  File "/Users/abcd/PycharmProjects/DSSS/live_example_MultiAccount_normal_tickerSelection.py", line 1748, in 
    main()
  File "/Users/abcd/PycharmProjects/DSSS/live_example_MultiAccount_normal_tickerSelection.py", line 1690, in main
    instruments[instrument].check_and_run_precalculation()
  File "/Users/abcd/PycharmProjects/DSSS/live_example_MultiAccount_normal_tickerSelection.py", line 1514, in check_and_run_precalculation
    self.pre_candle_creation_calculation()
  File "/Users/abcd/PycharmProjects/DSSS/live_example_MultiAccount_normal_tickerSelection.py", line 1502, in pre_candle_creation_calculation
    self.tradeTickers = tradeInstrumentParams()
                        ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/abcd/PycharmProjects/DSSS/live_example_MultiAccount_normal_tickerSelection.py", line 498, in tradeInstrumentParams
    n = fyers.quotes({"symbols": ticker_underlying})['d'][0]['v']['lp']
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/abcd/PycharmProjects/VENV_cp/lib/python3.11/site-packages/fyers_apiv3/fyersModel.py", line 750, in quotes
    response = self.service.get_call(
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/abcd/PycharmProjects/VENV_cp/lib/python3.11/site-packages/fyers_apiv3/fyersModel.py", line 112, in get_call
    self.error_resp["code"] = response.status_code
                              ^^^^^^^^
UnboundLocalError: cannot access local variable 'response' where it is not associated with a value
Exception ignored in: 
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1590, in _shutdown
    lock.acquire()

Was this simply a backend issue with the API which caused it?

Hey @ananay.wadehra-q2e

Could you please DM me the code for us to check it .

Hi @WWhYB2qrsx I have DMed you the error. Can we have a chat about it. I received a similar error today.

Adding some more similar errors received today while running the algo live.

Traceback (most recent call last):
  File "/Users/abcd/PycharmProjects/DSSS/live_example_MultiAccount_normal_tickerSelection.py", line 1748, in 
    main()
  File "/Users/abcd/PycharmProjects/DSSS/live_example_MultiAccount_normal_tickerSelection.py", line 1684, in main
    trade_instruments[instrument].checkInTrade(tick['ltp'])
  File "/Users/abcd/PycharmProjects/DSSS/live_example_MultiAccount_normal_tickerSelection.py", line 964, in checkInTrade
    self.inTrade = inTrade(self.order_ids['CA123456'], fyers_instances['CA123456'])
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/abcd/PycharmProjects/DSSS/live_example_MultiAccount_normal_tickerSelection.py", line 822, in inTrade
    orderBook = fyers_instance.orderbook()['orderBook']
                ~~~~~~^^^^^^^^^^^^^
KeyError: 'orderBook'
Exception ignored in: 
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1590, in _shutdown
    lock.acquire()