Gateway connection Error, code=503

naz
Hi,
I got below error while placing an order through kite connect around 10:00-10:30 today. Need guidance on resolving this so that it doesn't happen in future.


Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect\__init__.py", line 518, in _request
proxies=self.proxies)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\adapters.py", line 497, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: ("bad handshake: SysCallError(-1, 'Unexpected EOF')",)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\ProgramData\Anaconda3\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "E:\Stocks\Algo Trading\Python Programs\Screen_Logic\Executor_zerodha.py", line 27, in execute
product = 'CNC'
File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect\__init__.py", line 286, in order_place
return self._post("orders.place", params)["order_id"]
File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect\__init__.py", line 467, in _post
return self._request(route, "POST", params)
File "C:\ProgramData\Anaconda3\lib\site-packages\kiteconnect\__init__.py", line 520, in _request
raise ex.ClientNetworkException("Gateway connection error", code=503)
kiteconnect.exceptions.ClientNetworkException: Gateway connection error

This discussion has been closed.