Hello Everyone, I'm trying to create and deploy a function through appwrite kotlin sdk. But i'm getting this exception io.appwrite.exceptions.AppwriteException: No file sent . Appwrite is hosted locally.
function.create(
functionId = "6664b0fb0033b1c47151",
name = "SayHello",
runtime = Runtime.KOTLIN_1_9,
entrypoint = "src/Main.kt"
)
function.createDeployment(
functionId = "6664b0fb0033b1c47151",
code = InputFile.fromFile(File(gzipFilePath)),
activate = true,
entrypoint = "src/Main.kt",
onProgress = {
Logger.i("Progress: $it")
}
)
It's working fine with cli. but in server sdk i'm getting this exception. Please give me a solution if anyone knows ASAP
Thank you all.
Recommended threads
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...