Skip to content

Bug: ticktick tasks update fails with Cannot read properties of undefined (reading 'id') #5

@spectre-2b

Description

@spectre-2b

Bug Description

The ticktick tasks update command fails with a JavaScript error when trying to update a task.

Error Message

Error: Cannot read properties of undefined (reading 'id')

Steps to Reproduce

  1. Authenticate successfully with ticktick auth login
  2. Create a task: ticktick tasks create PROJECT_ID "Test task" --due 2026-02-06
  3. Try to update the task: ticktick tasks update TASK_ID --due 2026-02-07
  4. Error occurs

Expected Behavior

Task should be updated with the new due date.

Actual Behavior

Command fails with "Cannot read properties of undefined (reading 'id')"

Environment

  • Node.js version: v24.13.0
  • ticktick-cli version: 1.0.0
  • OS: Ubuntu (Linux)

Additional Context

Other commands work fine:

  • ticktick tasks get PROJECT_ID TASK_ID
  • ticktick tasks create
  • ticktick tasks complete PROJECT_ID TASK_ID
  • ticktick tasks list PROJECT_ID

Only update is broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions