when running temporal workflow describe
or temporal workflow query
the json result causes the the temporal CLI to output an error similar to this (the temporal UI is able to display the object fine, it’s not a big object):
Execution Info:
WorkflowId c3fc3c77-8c06-44db-b7ff-ed9fb88b322c
RunId 1b5e98d9-3d97-4991-af9e-08b9cb3ef029
Type MyWorkflow
Namespace default
TaskQueue default
StartTime 16 minutes ago
CloseTime 14 minutes ago
ExecutionTime 16 minutes ago
SearchAttributes map[BuildIds:metadata:{key:"encoding" value:"json/plain"} metadata:{key:"type" value:"KeywordList"} data:"[\"unversioned\"]"]
StateTransitionCount 31
HistoryLength 47
HistorySize 222415
Results:
RunTime 1m24.31s
Status COMPLETED
Result <failed converting to string: json: error calling MarshalJSON for type json.RawMessage: invalid character ':' after object key:value pair>
The query returns the same object and it also emits the same error:
Query result:
QueryResult <failed converting to string: json: error calling MarshalJSON for type json.RawMessage: invalid character ':' after object key:value pair>