Skip to content

Bitpanda: Name or service not known (Outdated Api) #110

Description

@arne-fuchs

I am trying to connect to the websocket with the provided example and get following error:

[0] Initiating websocket connection.
[1] Initiating websocket connection.
[2] Initiating websocket connection.
[0] Websocket initiation delayed by 0ms.
Websocket URI: wss://streams.exchange.bitpanda.com
[1] Websocket initiation delayed by 0ms.
Websocket URI: wss://streams.exchange.bitpanda.com
[2] Websocket initiation delayed by 0ms.
Websocket URI: wss://streams.exchange.bitpanda.com
[2] An exception [Cannot connect to host streams.exchange.bitpanda.com:443 ssl:<ssl.SSLContext object at 0x7fa0e19a8c40> [Name or service not known]] occurred. The websocket manager will be closed.
New subscription id constructed: TRADING
New subscription id constructed: ORDERS
[2] Subscriptions: ['TRADING', 'ORDERS']
[1] An exception [Cannot connect to host streams.exchange.bitpanda.com:443 ssl:<ssl.SSLContext object at 0x7fa0e19a8c40> [Name or service not known]] occurred. The websocket manager will be closed.
New subscription id constructed: ORDER_BOOK
[1] Subscriptions: ['ORDER_BOOK']
[0] An exception [Cannot connect to host streams.exchange.bitpanda.com:443 ssl:<ssl.SSLContext object at 0x7fa0e19a8c40> [Name or service not known]] occurred. The websocket manager will be closed.
New subscription id constructed: ACCOUNT_HISTORY
New subscription id constructed: PRICE_TICKS
New subscription id constructed: ORDER_BOOK
New subscription id constructed: CANDLESTICKS
New subscription id constructed: MARKET_TICKER
[0] Subscriptions: ['ACCOUNT_HISTORY', 'PRICE_TICKS', 'ORDER_BOOK', 'CANDLESTICKS', 'MARKET_TICKER']
Unrecoverable exception occurred while processing messages: Cannot connect to host streams.exchange.bitpanda.com:443 ssl:<ssl.SSLContext object at 0x7fa0e19a8c40> [Name or service not known]
Remaining websocket managers scheduled for shutdown.
[0] Manually closing websocket connection.
[1] Manually closing websocket connection.
[2] Manually closing websocket connection.
All websocket managers shut down.
Traceback (most recent call last):
  File "/home/user/IdeaProjects/project/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 999, in _create_direct_connection
    hosts = await asyncio.shield(host_resolved)
  File "/home/user/IdeaProjects/project/.venv/lib/python3.10/site-packages/aiohttp/connector.py", line 865, in _resolve_host
    addrs = await self._resolver.resolve(host, port, family=self._family)
  File "/home/user/IdeaProjects/project/.venv/lib/python3.10/site-packages/aiohttp/resolver.py", line 31, in resolve
    infos = await self._loop.getaddrinfo(
  File "/usr/lib/python3.10/asyncio/base_events.py", line 863, in getaddrinfo
    return await self.run_in_executor(
  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

Tried to run it on another device too, but get the same error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions