#[SOLVED] Error Deployments

1 messages · Page 1 of 1 (latest)

loud grove
#

What is the problem

Docker Error: Info: Compiling with sound null safety
server.dart:37:27: Error: Method not found: 'start'.
await user_code.start(request, response);
^^^^^

status filed
dart-2.17
appwrite Version 1.3.8

sleek socket
#

What's your code?

#

Seems like something is wrong with it

loud grove
#

void main(List<String > args) {
print( "Hello World, I'm an Appwrite cloud function written in Dart.");
}

obsidian parcel
loud grove
#

I am using this example is it not correct?

obsidian parcel
# loud grove I am using this example is it not correct?

No, that is outdated. The repo is archived and the readme says

Warning - the functions in this repo were designed for Appwrite versions 0.7.0 to 0.12.4. For Appwrite version 0.13.0 and above, please refer to the Open Runtimes Function Examples.

loud grove
loud grove
#

I tried this example it doesn't deploy too with the same error

obsidian parcel
loud grove
#

Navigate to the function you want to deploy.
Click Create deployment.
Select the Manual tab.
Input the entry point of your function under Entrypoint. For the example above, it would be main.dart.
Upload code.tar.gz.
Select Activate deployment after build to use your new function.
Click Create to deploy your function.

loud grove
#

I create the function on one machine and appwrite on another, I thought for such cases manual deployment

obsidian parcel
loud grove
#

as it is installed, but it is not on this machine

obsidian parcel
loud grove
#

it doesn't work?

obsidian parcel
# loud grove it doesn't work?

It does, if you do a lot of other steps correctly. The CLI helps make sure things are done correctly because it does it automatically for you

#

Steps like writing the function correctly and tar'ing it correctly

obsidian parcel
loud grove
#

appwrite cli installed installed on the machine with appwrite

#

everything is very confusing
I expected a simple installation, not a quest)

obsidian parcel
obsidian parcel
loud grove
#

appwrite functions createDeployment --functionId=64ece25fa712e9afa728 --entrypoint='main.dart' --code="." --activate=true
ℹ Info Ignoring files using configuration from appwrite.json
$id : 64ece38205948a35a377
$createdAt : 2023-08-28T18:12:18.094+00:00
$updatedAt : 2023-08-28T18:12:18.094+00:00
resourceId : 64ece25fa712e9afa728
resourceType : functions
entrypoint : 'main.dart'
size : 3624
buildId :
activate : true
status :
buildStdout :
buildStderr :
buildTime : 0
✓ Success

#

status filed

#

Docker Error: mv: cannot stat "/usr/code/'main.dart'": No such file or directory

loud grove
#

I do everything on this dock

#

Docker Error: mv: cannot stat "/usr/code/'main.dart'": No such file or directory

obsidian parcel
loud grove
#

yes

#

what is this error?

#

Docker Error: mv: cannot stat "/usr/code/'main.dart'": No such file or directory

obsidian parcel
obsidian parcel
obsidian parcel
loud grove
#

this problem

obsidian parcel
loud grove
#

C:\Users\notik\IdeaProjects\starter>appwrite init function
? What would you like to name your function? gooh
? What ID would you like to have for your function? unique()
? What runtime would you like to use? Dart (dart-2.17)
✓ Success

#

C:\Users\notik\IdeaProjects\starter>appwrite deploy function
? Which functions would you like to deploy?
✓ Success Deployed 0 functions

obsidian parcel
loud grove
#

thank you very much, I finally understood what and how

#

everything is very confusing and broken GUI

#

whoever invented it can write quests and earn a lot of money from it

obsidian parcel
loud grove
#

yes deployment functions

obsidian parcel
white yew
#

Docker Error: Info: Compiling with sound null safety
server.dart:37:27: Error: Method not found: 'start'.
await user_code.start(request, response);
^^^^^
Error: AOT compilation failed

obsidian parcel