Skip to content

Error "unable to decode argument" if return nil from child workflow #1016

@uskyt

Description

@uskyt

Describe the bug
I am writing a cadence workflow that starts some child workflows like this:

var result interface{}
workflow.ExecuteChildWorkflow(childCtx, MyWorkflowName, arg1, arg2).Get(childCtx, &result)

But this fails if the workflows return nil as result.
I get "unable to decode argument: %d, %v, with json error: %v" from cadence/internal/encoding.go:67.
Specifically unable to decode argument: 0, *interface {}, with json error: EOF

To Reproduce
Can be easily reproduced as described above.

Additional context
The problem is similar to the one solved in this issue: #943

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions