Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- horizon = Horizon(horizon_uri="http://localhost:8000")
- Traceback (most recent call last):
- File "/Users/timo/Documents/repos/bc-interop/adapters/stellar_tx_test.py", line 34, in <module>
- sequence = horizon.account(alice_kp.address().decode('utf-8')).get('sequence')
- File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/stellar_base/horizon.py", line 186, in account
- return self.query(endpoint)
- File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/stellar_base/horizon.py", line 156, in query
- return check_horizon_reply(reply) if not sse else reply
- File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/stellar_base/horizon.py", line 656, in check_horizon_reply
- raise HorizonError(reply)
- 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.'}
- horizon = Horizon(horizon_uri="http://localhost") or any non-exposed port
- traceback (most recent call last):
- File "/Users/timo/Documents/repos/bc-interop/adapters/stellar_tx_test.py", line 34, in <module>
- sequence = horizon.account(alice_kp.address().decode('utf-8')).get('sequence')
- File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/stellar_base/horizon.py", line 186, in account
- return self.query(endpoint)
- File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/stellar_base/horizon.py", line 155, in query
- reply = self._query(abs_url, params, sse)
- File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/stellar_base/horizon.py", line 161, in _query
- url, params=params, timeout=self.request_timeout)
- File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/requests/sessions.py", line 525, in get
- return self.request('GET', url, **kwargs)
- File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/requests/sessions.py", line 512, in request
- resp = self.send(prep, **send_kwargs)
- File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/requests/sessions.py", line 622, in send
- r = adapter.send(request, **kwargs)
- File "/Users/timo/Documents/repos/bc-interop/venv/lib/python3.6/site-packages/requests/adapters.py", line 513, in send
- raise ConnectionError(e, request=request)
- 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