
hello there! I try to create a very simple dotnet
function as an endpoint. dotnet-6.0
is enabled in .env
and the server restarted.
My code is in a git repository and on github. I connected the repo to a function in Appwrite but the build always fails with Docker Error: tar: short read
. I assume it does not even get to the build. I also tried recreating a function from here: https://github.com/appwrite/templates/tree/main/dotnet/starter with the same Docker Error: tar: short read
as deploy failes.
Anyone an idea what I might do wrong?

@krennih did you configure the GitHub related details in your .env
file as well?

cc: @Steven

Yes, other functions are working, can e.g. set up the sample ChatGPT and create e repo for it from appwrite. Works well.

Oh okay
Are you facing this issue just with the repository or with manual/CLI deployments as well
Normally this error refers to a corrupted or truncated tar file, so I'd love to see if this is an issue exclusive to the GitHub integration

@Aditya Oberai sorry, got cought on another topic for a moment... – I prefer to not use the manual/cli at all. If I always need to manually deploy a tarball, than why having the github integration at all? After I did not get anything going just using GIT I moved on to try the CLI. The deploy there fails later. upload seems to work there. The sample from your dev.to article dies as shown in the screenshot.

Creating the function manually and upload the code.tar.gz works.

so ... uh... where is the :embarressed: emoji when you need it. – sorry for wasting your time here! I somehow got the root path wrong all day long and rereading the docs after dinner again I figured I had to leave that just plain empty to make it all work.

[solved] DotNet function deployment
Recommended threads
- Failed to verify JWT. Invalid token: Exp...
Hi I am trying to call a function from my mobile app, but I am receiving "Invalid token expired." My code looks more or less like this ```ts // from my app ...
- How do I pair Polar.sh + Hono + Appwrite...
This is what all it required by polar to see the webhook data. Managing with webhook data is not an issue, but how do I pair this all with appwrite functions st...
- The function became slower after being e...
I used the Python SDK and set `xasync=True` in `create_execution`, expecting it to execute quickly on another worker. However, the execution ended up taking sev...
