Back
Creating new function with new Repo results in error - Unable to clone code repository
- 0
- Functions
- Cloud

I am trying to create a new function for Node 18, with a new repo on my github. What ever i try to do, i keep getting an error on the build log
issue: https://github.com/appwrite/appwrite/issues/8512
TypeScript
In the build log of the function.
Unable to clone code repository: fatal: invalid refspec '0.1.*'
/usr/src/code/vendor/appwrite/server-ce/src/Appwrite/Platform/Workers/Builds.php:247
#0 /usr/src/code/vendor/appwrite/server-ce/src/Appwrite/Platform/Workers/Builds.php(93): Appwrite\Platform\Workers\Builds->buildDeployment(Object(Utopia\Storage\Device\DOSpaces), Object(Appwrite\Event\Func), Object(Appwrite\Event\Event), Object(Appwrite\Event\Usage), Object(Appwrite\Cloud\Database\ProxyDatabase), Object(Appwrite\Cloud\Database\ProxyDatabase), Object(Utopia\VCS\Adapter\Git\GitHub),
.....
TL;DR
Issue: Developers encounter an error "Unable to clone code repository" while trying to create a new function for Node 18 with a new repo on GitHub.
Solution: The error is related to an invalid refspec '0.1.*'. Check the refspec being used and make sure it is correct as per the Git repository configuration.Recommended threads
- Asymetric Authentication for Appwrite si...
Is there any way to do asymmetric authentication of Appwrite users on the server side without making a network call? This can result in a huge reduction in late...
- Registering new flutter app
Hi, ive got an already build flutter app which works in development with appwrite. but with the built version i get an error that the client is not registered. ...
- Relationship opt-in?
Hi! I'm trying to understand opt-in relationship population. I'm listing rows as follows: `(...).listRows({ databaseId: this.databaseId, tableId: this.tableId, ...
