Skip to content

Incorrect command when Cloud Function deployed with Appwrite CLI #1132

@2shrestha22

Description

@2shrestha22

🐛 Bug Report

Deploying cloud function using Appwrite CLI creates incorrect command. Command given as node index.js is converted to node%20index.js and this gives output in logs; OCI runtime exec failed: exec failed: container_linux.go:367: starting container process caused: exec: "node%20index.js": executable file not found in $PATH: unknown

Have you spent some time to check if this issue has been raised before?

Yes I can confirm it is a bug, deploying tag manually from console creates correct command.

To Reproduce

Deploy cloud function with Appwrite.

appwrite functions createTag \
    --functionId=6012cc93d5a7b \
    --command="node index.js" \
    --code="/myrepo/myfunction"

Expected behavior

Command should not be node%20index.js but node index.js.

Actual Behavior

image

Your Environment

Appwrite version: v:dev.145

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions