Skip to content

Problem deserializing domains in node metadata #1843

@cygnusv

Description

@cygnusv

Describe the Bug
Seems that some nodes are experiencing this error, probably related with availability computations?

**Traceback or Screenshots (Optional) **

Apr  6 13:45:41 do-nucypher-work nucypher[1275]: Unhandled error in Deferred:
Apr  6 13:45:41 do-nucypher-work nucypher[1275]: Traceback (most recent call last):
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:   File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:     self.run()
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:   File "/usr/lib/python3.6/threading.py", line 864, in run
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:     self._target(*self._args, **self._kwargs)
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:   File "/home/nucypher/nucypher-venv/lib/python3.6/site-packages/twisted/_threads/_threadworker.py", line 46, in work
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:     task()
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:   File "/home/nucypher/nucypher-venv/lib/python3.6/site-packages/twisted/_threads/_team.py", line 190, in doWork
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:     task()
Apr  6 13:45:41 do-nucypher-work nucypher[1275]: --- <exception caught here> ---
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:   File "/home/nucypher/nucypher-venv/lib/python3.6/site-packages/twisted/python/threadpool.py", line 250, in inContext
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:     result = inContext.theWork()
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:   File "/home/nucypher/nucypher-venv/lib/python3.6/site-packages/twisted/python/threadpool.py", line 266, in <lambda>
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:     inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:   File "/home/nucypher/nucypher-venv/lib/python3.6/site-packages/twisted/python/context.py", line 122, in callWithContext
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:     return self.currentContext().callWithContext(ctx, func, *args, **kw)
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:   File "/home/nucypher/nucypher-venv/lib/python3.6/site-packages/twisted/python/context.py", line 85, in callWithContext
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:     return func(*args,**kw)
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:   File "/home/nucypher/nucypher-venv/lib/python3.6/site-packages/nucypher/network/server.py", line 203, in learn_about_announced_nodes
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:     node.mature()
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:   File "/home/nucypher/nucypher-venv/lib/python3.6/site-packages/nucypher/network/nodes.py", line 268, in mature
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:     mature_node = self.finish()
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:   File "/home/nucypher/nucypher-venv/lib/python3.6/site-packages/bytestring_splitter/__init__.py", line 53, in finish
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:     return self._receiver(**finished_values, **self._additional_kwargs)
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:   File "/home/nucypher/nucypher-venv/lib/python3.6/site-packages/nucypher/characters/lawful.py", line 1409, in from_processed_bytes
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:     domains_vbytes = VariableLengthBytestring.dispense(processed_objects.pop('domains'))
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:   File "/home/nucypher/nucypher-venv/lib/python3.6/site-packages/bytestring_splitter/__init__.py", line 422, in dispense
Apr  6 13:45:41 do-nucypher-work nucypher[1275]:     raise BytestringSplittingError("This does not appear to be a VariableLengthBytestring, or is not the correct length.")
Apr  6 13:45:41 do-nucypher-work nucypher[1275]: bytestring_splitter.BytestringSplittingError: This does not appear to be a VariableLengthBytestring, or is not the correct length.
```
**System (please complete the following information):**
 - OS Version:
 - Nucypher Version:
 - Ethereum Node Version:  

Metadata

Metadata

Assignees

Labels

Bug 🐛Broken functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions