Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: missing field key_package when generating groups #656

Open
mkysel opened this issue Mar 21, 2025 · 1 comment
Open

Bug: missing field key_package when generating groups #656

mkysel opened this issue Mar 21, 2025 · 1 comment
Assignees
Labels
decentralization-client Client improvements

Comments

@mkysel
Copy link
Collaborator

mkysel commented Mar 21, 2025

$ cargo xdbg --human -b local -d generate --entity group --amount 1
    Finished `release` profile [optimized] target(s) in 0.30s
     Running `target/release/xdbg --human -b local -d generate --entity group --amount 1`
Error: 
   0: client: API error: API client error: missing field key_package of type xmtp_proto::generated::xmtp::xmtpv4::envelopes::OriginatorEnvelope during conversion from protobuf
   1: API error: API client error: missing field key_package of type xmtp_proto::generated::xmtp::xmtpv4::envelopes::OriginatorEnvelope during conversion from protobuf
   2: API client error: missing field key_package of type xmtp_proto::generated::xmtp::xmtpv4::envelopes::OriginatorEnvelope during conversion from protobuf
   3: missing field key_package of type xmtp_proto::generated::xmtp::xmtpv4::envelopes::OriginatorEnvelope during conversion from protobuf
@mkysel
Copy link
Collaborator Author

mkysel commented Mar 24, 2025

It seems like the originator envelope does not have a keypackage back from the server/its empty: https://github.com/xmtp/libxmtp/blob/main/xmtp_proto/src/convert.rs#L62
Maybe shouldn't be an error -- empty response of keypackages might not mean an error, just that the user hasn't uploaded a keypackage yet (edited)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
decentralization-client Client improvements
Projects
Status: Todo
Development

No branches or pull requests

2 participants