Back

Function will not deploy if the name has space in it

  • 0
  • Functions
armanhadi
5 Nov, 2023, 12:24

Please update the doc to say function name should not have space in it

TL;DR
The user created a function locally with a space in the name using the appwrite CLI. When trying to deploy the function using a GitHub repository connected to appwrite, they received an error. However, when they changed the folder name to remove the space, it was able to build successfully. One user mentioned deploying a function with a space in the name and it worked fine. The solution is to avoid using spaces in the function name. Additionally, another user suggested opening an issue on GitHub to address the problem. A user also requested an update to the documentation to clarify that function names should not have spaces.
Disk_MTH
5 Nov, 2023, 14:32

I think you must open an issue on Github rather than a discord ticket

Drake
5 Nov, 2023, 22:15

Depends....can you provide more context?

armanhadi
6 Nov, 2023, 08:30

I got this error Docker Error: tar: short read , because there was space on appwrite function name

armanhadi
6 Nov, 2023, 08:31

I deployed the function with github connected to my appwrite

Drake
6 Nov, 2023, 23:08

so do you mean the folder name?

armanhadi
7 Nov, 2023, 06:56

yes but that name come from function name by default

Drake
7 Nov, 2023, 18:56

I created a function with the CLI with a space in the name and it deployed and executed fine

Drake
7 Nov, 2023, 18:56

so maybe you can provide some more details or reproducible steps so we can narrow down what exactly is the problem?

armanhadi
7 Nov, 2023, 18:57

Did you deploy it using github repo ??

Drake
7 Nov, 2023, 19:11

ah no sorry. let me try that

Drake
7 Nov, 2023, 19:12

well...what were your exact steps?

Drake
7 Nov, 2023, 19:13

because i deployed a template like this:

Drake
7 Nov, 2023, 19:13

which has a space in the name

armanhadi
7 Nov, 2023, 19:22

I created function locally on my computer with appwrite cli , the function name was "seed odoo fun" , so it creat a functions folder which i side it a folder "seed odoo fun" with space , then I push this code to my repo , I connected git to my appwrite , so on appwritr function I clicked on my repo with the function then on deploy it gave me that error , but later when I changed the folder name to seed_odoo_fun it build successfully

Drake
7 Nov, 2023, 19:48

Thanks for the clarification!

Drake
7 Nov, 2023, 19:48

Can you create a GitHub issue with this info? I think we would want to make sure this works too considering it works via the CLI

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more