This message was deleted.
# cloud
s
This message was deleted.
k
When running updateRoomMetadata, i get this error:
error: json: cannot unmarshal object into Go value of type string'
as well as
invalid token
. The same tokens work for listRooms.
a
you’re getting that error because the
metadata
arg has to be a string
a
If you want it to be a JSON object, you must serialize it to a string when creating a token. In case of a JS client, that would be
JSON.serialize(metadataObject)
. You would then deserialize it back from JSON string into an object if you want to use it later on.