Rank 2: Process
I'm using gitpod for hosting Appwrite. When I try to deploy my function here, it gives the following error.
Can anyone help me please?
Runtime -> Swift-5.8
Appwrite version - 1.4.5 (The provided .yml file by gitpod was 1.4.4)
Votes
1
Replies
18
Participants
Unknown
Messages
19
Rank 2: Process
I'm using gitpod for hosting Appwrite. When I try to deploy my function here, it gives the following error.
Can anyone help me please?
Runtime -> Swift-5.8
Appwrite version - 1.4.5 (The provided .yml file by gitpod was 1.4.4)
Rank 2: Process
This did not work for me.
Rank 2: Process
Still getting the docker error
How are you deploying?
Does this happen for any Function? Just this one? Any Swift Function?
Rank 2: Process
So my swift functions works fine in a locally hosted instance. Executes all requests as intented.
But I needed that domain generated by Appwrite for function. So I used gitpod, uploaded the same tar.gz file and nothing worked.
Rank 2: Process
Tried using the commands mentioned in stackoverflow. No progress.
How are you creating the .tar.gz file?
Rank 2: Process
running this command -> tar --exclude code.tar.gz -czf code.tar.gz .
Rank 2: Process
Also made one with this command -> tar --no-xattrs --exclude code.tar.gz -czf code.tar.gz . | grep -v 'SCHILY.fflags'
Rank 2: Process
This is the logs after uploading the .tar.gz file made using the second command.
Rank 2: Process
I also switched between runtimes (Swift 5.8 vs 5.5) but nothing changed in the logs.
I do see that the logs start off with the error, but the build still seems to proceed. Do you see any other errors in the logs?
Rank 2: Process
Yes. But the errors are varying quite a bit.
Here. I got 3 different errors with the same .tar.gz file. Just I redeployed it one after another and all produced different errors.
Also same .tar.gz file works fine with locally hosted instance.
Rank 2: Process
All these erros seem to be related to the version of XCode where the code is getting build. Also one thing, the version of Appwrite in .yml is 1.4.4
The one in my locally hosted instance is 1.4.5. I'll try to match them and let you know here.
I’d recommend getting to the latest version (1.4.13)
Rank 2: Process
Still same errors.