Skip to content

ValueError: Port out of range 0-65535 #1546

@jMyles

Description

@jMyles

I suspect we're missing a try-finally somewhere or somethiing, and too many ports are being "used" in tests.

FAILED tests/learning/test_firstula_circumstances.py:26 (test_proper_seed_node_instantiation) ursula_federated_test_config = <nucypher.config.characters.UrsulaConfiguration object at 0x7fb95cce4810>      def test_proper_seed_node_instantiation(ursula_federated_test_config):         lonely_ursula_maker = partial(make_federated_ursulas,                                       ursula_config=ursula_federated_test_config,                                       quantity=1,                                       know_each_other=False)              firstula = lonely_ursula_maker().pop()         firstula_as_seed_node = firstula.seed_node_metadata()         any_other_ursula = lonely_ursula_maker(seed_nodes=[firstula_as_seed_node]).pop()              assert not any_other_ursula.known_nodes >       any_other_ursula.start_learning_loop(now=True)  ../learning/test_firstula_circumstances.py:38:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  ../../nucypher/network/nodes.py:557: in start_learning_loop     self.load_seednodes() ../../nucypher/network/nodes.py:437: in load_seednodes     federated_only=self.federated_only)  # TODO: 466 ../../nucypher/characters/lawful.py:1045: in from_seednode_metadata     return cls.from_seed_and_stake_info(seed_uri=seed_uri, *args, **kwargs) ../../nucypher/characters/lawful.py:1100: in from_seed_and_stake_info     host, port, checksum_address = parse_node_uri(seed_uri) ../../nucypher/network/protocols.py:54: in parse_node_uri     port = parsed_uri.port or UrsulaConfiguration.DEFAULT_REST_PORT _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   self = ParseResult(scheme='https', netloc='127.0.0.1:65584', path='', params='', query='', fragment='')      @property     def port(self):         port = self._hostinfo[1]         if port is not None:             port = int(port, 10)             if not ( 0 <= port <= 65535): >               raise ValueError("Port out of range 0-65535") E               ValueError: Port out of range 0-65535  /usr/lib/python3.7/urllib/parse.py:171: ValueError

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions