Skip to content

Error creating schedules with Temporal CLI when passing a JSON object with multiple key:value pairs to --input #188

@stlaisaar

Description

@stlaisaar

Expected Behavior

Running the Temporal CLI command for creating schedules (temporal schedule create) creates a schedule according to provided arguments (such as --input {\"TestNumber\":\"650537101\",\"TestID\":1}).

Actual Behavior

No schedule is created when running the Temporal CLI command for creating schedules. The following output (error) is shown in Command Prompt:

  • Error: input is not valid JSON: unexpected end of JSON input
    ('export TEMPORAL_CLI_SHOW_STACKS=1' to see stack traces)

Steps to Reproduce the Problem

  1. Deploy the Temporal Server using the docker-compose.yml file from https://github.com/temporalio/docker-compose.
  2. Open Command Prompt
  3. Run docker exec temporal-admin-tools temporal schedule create -s test-schedule-id -w test-scheduled-workflow -t TEST_TASK_QUEUE --workflow-type TestWorkflow --input {\"TestNumber\":\"650537101\",\"TestID\":1} --interval 1m

Specifications

  • Version: 1.20.0
  • Platform: Windows 10

Additional context

  1. Passing only one key:value pair in the JSON object input works. For example, a schedule is successfully created when the input is --input {\"CardNumber\":\"650537101\"}.
  2. Using tctl instead of Temporal CLI (and changing some flags where necessary) works. For example, a schedule is successfully created when running docker exec temporal-admin-tools tctl schedule create --sid test-schedule-id --wid test-scheduled-workflow -tq TEST_TASK_QUEUE -wt TestWorkflow --input {\"TestNumber\":\"650537101\",\"TestID\":1} --interval 1m.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions