Adding extra header causes error (Happening on Uniffi Swift) probably on rust version as well
goncalo-frade-iohk opened this issue · 3 comments
What
While using version 0.4.1 in Uniffi Swift, whenever I try to send a message with extra headers I get the following error:
UniffiInternalError.rustPanic("Failed to convert arg \'msg\': Malformed: Invalid json value: expected value at line 1 column 1")
Why
Because this makes extra headers unusable in Uniffi swift, and also makes protocols like the (Pickup protocol) [https://didcomm.org/pickup/3.0/] unusable.
Success Criteria
Successfully pack a message with extra headers.
Anything else
(Return Route)[https://github.com/decentralized-identity/didcomm-messaging/blob/main/extensions/return_route/main.md]
(Pickup protocol)[https://didcomm.org/pickup/3.0/]
Hi,
Thanks for reporting this. We will put it in our backlog and work on it when possible.
Best regards,
Darko
Hi,
Tried packing/unpacking extra headers with the rust library and it works as expected. So the problem is most likely in the wrapper.
Best regards,
Darko
Can you provide us with some test code?