Hello Daml Community, i tried to list currently active contracts that match a given query.
This is my JAVA CODE:
I get this error:
It is probably a String error, but i am able to create contracts with this code:
Hello Daml Community, i tried to list currently active contracts that match a given query.
This is my JAVA CODE:
I get this error:
It is probably a String error, but i am able to create contracts with this code:
templateIds
and readers
both need to be an array as described in the docs. so try wrapping the string in []
.
Hi cocreature, i already tried with [] but i get the same error in JSON API (400 Bad Request)
My Java Code:
I get a new error in Wireshark but i have no clue:
Which SDK version are you using?
1.17.1
The readers
field was introduced in SDK 1.18.0. For older versions omit it and the JSON API will read as all actAs & readAs parties in your token.
That said, I do recommend upgrading to SDK 2.1, 1.17.1 is relatively old at this point.
Thank you! i will upgrade and give feedback later