Skip to content

cli run w/ identity fails to find function #164

@tharvik

Description

@tharvik

when running a function from the CLI w/o an identity, it correctly calls it but when adding an identity, it fails w/ the following.

convex run --identity '{ subject: "user|pass", issuer: "https://[…].convex.site" }' file:function
✖ Failed to run function "file:function":
Error: [Request ID: 24e2da681a16b355] Server Error
Could not find function for 'file:function'. Did you forget to run `npx convex dev`?

Available functions:
• file:function
[...]

tested w/ an identity that works when used in the "Act as a user" field in the dashboard.

btw, an empty identity makes it fails in the same manner

convex run --identity '{}' file:function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions