Skip to content

DNS resolution failed #268

@edmundrotimi

Description

@edmundrotimi

I keep getting DNS resolution failed.

Code:

    import json
    from nibiru import Network, ChainClient
    
    client = ChainClient(Network.testnet(3))
    
    # Query perp markets
    perp_markets = client.query.perp.markets()
    print(json.dumps(perp_markets, indent=4))
    
    # Query trader's positions
    trader_addr = "..."
    positions = client.query.perp.all_positions(trader=trader_addr)
    print(json.dumps(positions, indent=4))

Error:

    ---------------------------------------------------------------------------
    _InactiveRpcError                         Traceback (most recent call last)
    [<ipython-input-2-8e0c2acaade5>](https://localhost:8080/#) in <cell line: 8>()
          6     print(json.dumps(obj, indent=2))
          7 
    ----> 8 client = ChainClient(Network.testnet(3))
    
    4 frames
    [/usr/local/lib/python3.10/dist-packages/grpc/_channel.py](https://localhost:8080/#) in _end_unary_response_blocking(state, call, with_call, deadline)
       1004             return state.response
       1005     else:
    -> 1006         raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
       1007 
       1008 
    
    _InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNAVAILABLE
        details = "DNS resolution failed for grpc.itn-3.nibiru.fi:443: C-ares status is not ARES_SUCCESS qtype=A name=grpc.itn-3.nibiru.fi is_balancer=0: Domain name not found"
        debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2024-08-09T02:05:50.070989926+00:00", grpc_status:14, grpc_message:"DNS resolution failed for grpc.itn-3.nibiru.fi:443: C-ares status is not ARES_SUCCESS qtype=A name=grpc.itn-3.nibiru.fi is_balancer=0: Domain name not found"}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions