Advertisement
Guest User

Untitled

a guest
Oct 11th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.91 KB | None | 0 0
  1. horizon = Horizon(horizon_uri="http://localhost:8000")
  2.  
  3. Traceback (most recent call last):
  4.   File "/Users/timo/Documents/repos/bc-interop/adapters/stellar_tx_test.py", line 34, in <module>
  5.     sequence = horizon.account(alice_kp.address().decode('utf-8')).get('sequence')
  6.   File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/stellar_base/horizon.py", line 186, in account
  7.     return self.query(endpoint)
  8.   File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/stellar_base/horizon.py", line 156, in query
  9.     return check_horizon_reply(reply) if not sse else reply
  10.   File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/stellar_base/horizon.py", line 656, in check_horizon_reply
  11.     raise HorizonError(reply)
  12. stellar_base.exceptions.HorizonError: {'type': 'https://stellar.org/horizon-errors/not_found', 'title': 'Resource Missing', 'status': 404, 'detail': 'The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.'}
  13.  
  14.  
  15.  
  16. horizon = Horizon(horizon_uri="http://localhost") or any non-exposed port
  17. traceback (most recent call last):
  18.   File "/Users/timo/Documents/repos/bc-interop/adapters/stellar_tx_test.py", line 34, in <module>
  19.     sequence = horizon.account(alice_kp.address().decode('utf-8')).get('sequence')
  20.   File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/stellar_base/horizon.py", line 186, in account
  21.     return self.query(endpoint)
  22.   File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/stellar_base/horizon.py", line 155, in query
  23.     reply = self._query(abs_url, params, sse)
  24.   File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/stellar_base/horizon.py", line 161, in _query
  25.     url, params=params, timeout=self.request_timeout)
  26.   File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/requests/sessions.py", line 525, in get
  27.     return self.request('GET', url, **kwargs)
  28.   File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/requests/sessions.py", line 512, in request
  29.     resp = self.send(prep, **send_kwargs)
  30.   File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/requests/sessions.py", line 622, in send
  31.     r = adapter.send(request, **kwargs)
  32.   File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/requests/adapters.py", line 513, in send
  33.     raise ConnectionError(e, request=request)
  34. requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /accounts/GCCAETWXN5VYPOU4MYTUGTFPTSWWNFYMDZWHWS566PUXR5GCQ7SY7QHQ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10fdea8d0>: Failed to establish a new connection: [Errno 61] Connection refused',))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement