Skip to content

FormatException: Public key cannot be empty when processing restore events #583

@BraCR10

Description

@BraCR10

Description

After performing a restore, MostroService._onData throws and silently discards certain events. The error appears repeatedly in logs but does not crash the app.

Error

FormatException: Failed to parse Peer from JSON: FormatException: Public key cannot be empty
#0   MostroService._onData (package:mostro_mobile/services/mostro_service.dart:172:14)
#1   <asynchronous suspension>

Context

  • Occurs during/after restore when the relay replays historical events
  • The event is silently dropped — state is not updated

Reproduction

Perform a restore on an account.

  • Documented in docs/architecture/DISPUTE_CHAT_RESTORE.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions