Open ijselwyn opened 1 week ago
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 700, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 446, in _make_request
six.raise_from(e, None)
File "
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 756, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 534, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/lib/python3/dist-packages/six.py", line 718, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 700, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 446, in _make_request
six.raise_from(e, None)
File "
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/breeze_connect/breeze_connect.py", line 1099, in get_historical_data_v2 response = requests.get(url=url, params=url_params, headers=headers) File "/usr/lib/python3/dist-packages/requests/api.py", line 76, in get return request('get', url, params=params, kwargs) File "/usr/lib/python3/dist-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 544, in request resp = self.send(prep, send_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 657, in send r = adapter.send(request, kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 498, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/ubuntu/version8.1/BreezeJS/data_collection.py", line 199, in get_historical_data_cash_v2 data = breeze.get_historical_data_v2(interval=interval, from_date= from_date, File "/usr/local/lib/python3.10/dist-packages/breeze_connect/breeze_connect.py", line 804, in get_historical_data_v2 return self.api_handler.get_historical_data_v2(interval, from_date, to_date, stock_code, exchange_code, product_type, expiry_date, right, strike_price) File "/usr/local/lib/python3.10/dist-packages/breeze_connect/breeze_connect.py", line 1103, in get_historical_data_v2 self.error_exception(self.get_historical_data_v2.name,e) File "/usr/local/lib/python3.10/dist-packages/breeze_connect/breeze_connect.py", line 886, in error_exception raise Exception(message).with_traceback(error.traceback) File "/usr/local/lib/python3.10/dist-packages/breeze_connect/breeze_connect.py", line 1099, in get_historical_data_v2 response = requests.get(url=url, params=url_params, headers=headers) File "/usr/lib/python3/dist-packages/requests/api.py", line 76, in get return request('get', url, params=params, kwargs) File "/usr/lib/python3/dist-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 544, in request resp = self.send(prep, send_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 657, in send r = adapter.send(request, kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 498, in send raise ConnectionError(err, request=request) Exception: get_historical_data_v2() Error
Suddenly it's giving me this error, the speed of server response is also damn slow today!! please can this be checked
breeze.subscribe_feeds( File "/usr/local/lib/python3.10/dist-packages/breeze_connect/breeze_connect.py", line 362, in subscribe_feeds self.sio_ohlcv_stream_handler.watch_stream_data(exchange_quotes_token,interval) File "/usr/local/lib/python3.10/dist-packages/breeze_connect/breeze_connect.py", line 86, in watch_stream_data self.sio.emit('join', data) File "/usr/local/lib/python3.10/dist-packages/socketio/client.py", line 393, in emit raise exceptions.BadNamespaceError( socketio.exceptions.BadNamespaceError: / is not a connected namespace.