hyperdashio / hyperdash-sdk-py

Official Python SDK for Hyperdash
https://hyperdash.io
199 stars 26 forks source link

Error stack trace on Ctrl+C #47

Closed andrewschreiber closed 7 years ago

andrewschreiber commented 7 years ago

Happened while disconnected from web:

^CTraceback (most recent call last):
  File "test.py", line 11, in <module>
    main()
  File "/Users/andrew/anaconda3/envs/p27lambda/lib/python2.7/site-packages/hyperdash/sdk.py", line 55, in monitored
    return_val = hyper_dash.run()
  File "/Users/andrew/anaconda3/envs/p27lambda/lib/python2.7/site-packages/hyperdash/hyper_dash.py", line 123, in run
    return self.run_http()
  File "/Users/andrew/anaconda3/envs/p27lambda/lib/python2.7/site-packages/hyperdash/hyper_dash.py", line 209, in run_http
    raise_exceptions=False
  File "/Users/andrew/anaconda3/envs/p27lambda/lib/python2.7/site-packages/hyperdash/server_manager.py", line 181, in send_message
    headers={AUTH_KEY_NAME: self.get_api_key()},
  File "/Users/andrew/anaconda3/envs/p27lambda/lib/python2.7/site-packages/requests/sessions.py", line 549, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/Users/andrew/anaconda3/envs/p27lambda/lib/python2.7/site-packages/requests/sessions.py", line 502, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/andrew/anaconda3/envs/p27lambda/lib/python2.7/site-packages/requests/sessions.py", line 612, in send
    r = adapter.send(request, **kwargs)
  File "/Users/andrew/anaconda3/envs/p27lambda/lib/python2.7/site-packages/requests/adapters.py", line 504, in send
    raise ConnectionError(e, request=request)

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='hyperdash.io', port=443):
 Max retries exceeded with url: /api/v1/sdk/http 
(Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x1099208d0>: 
Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',))