Skip to content

task run treats raw public task IDs as local task names #1360

Description

@annamiy

Summary

apify task run <raw-task-id> does not resolve a public Actor Task by its ID in CLI 1.8.0, although the command help says the argument may be a task ID or name.

Reproduction without starting a run

For public task ID r38IdwgswaKAlfGWi, inspect the CLI task resolver in v1.8.0. An argument with no / is lowercased and treated as <logged-in-username>/<argument>, so the ID becomes a task-name lookup. The task instead resolves successfully in the supported owner/name form: fetch_cat/scrape-reddit-posts-by-keyword.

This was confirmed via authenticated task metadata lookup only; no task run was started.

Expected

A raw task ID accepted by the help text should resolve as that task ID, including a public task owned by another user; alternatively, the help/docs should state that apify task run requires owner/name for cross-account tasks.

Actual

A raw ID is converted to a lowercased name beneath the logged-in account and fails with Cannot find Task with name.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-buildersIssues owned by the Builders team.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions