Skip to content

AttributeError: 'NoneType' object has no attribute 'exchange' #285

Description

@PromiseFru
Traceback (most recent call last):
  File "/vault/src/grpc_entity_service.py", line 609, in ListEntityStoredTokens
    entity_obj, llt_error_response = self.handle_long_lived_token_validation(
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        request, context, response
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/vault/src/grpc_entity_service.py", line 304, in handle_long_lived_token_validation
    _, token_error = validate_long_lived_token(llt, entity_obj)
                     ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/vault/src/grpc_entity_service.py", line 280, in validate_long_lived_token
    entity_device_id_shared_key = entity_device_id_keypair.agree(
        base64.b64decode(entity_obj.client_device_id_pub_key),
    )
  File "/usr/local/lib/python3.13/site-packages/smswithoutborders_libsig/keypairs.py", line 191, in agree
    shared_key = x.exchange(X25519PublicKey.from_public_bytes(public_key))
                 ^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'exchange'
2025-06-13 10:30:01,606 - vault.grpc.server - ERROR - /vault.v1.Entity/ListEntityStoredTokens HTTP/2.0 - INTERNAL -

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions