didcomm-rust icon indicating copy to clipboard operation
didcomm-rust copied to clipboard

Adding extra header causes error (Happening on Uniffi Swift) probably on rust version as well

Open goncalo-frade-iohk opened this issue 1 year ago • 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/]

goncalo-frade-iohk avatar Aug 24 '23 12:08 goncalo-frade-iohk

Hi,

Thanks for reporting this. We will put it in our backlog and work on it when possible.

Best regards, Darko

dkulic avatar Aug 28 '23 07:08 dkulic

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

dkulic avatar Aug 30 '23 08:08 dkulic

Can you provide us with some test code?

dkulic avatar Aug 30 '23 09:08 dkulic