Rank 2: Process
Hi! I have created a function for appwrite in dart. My problem is, no matter how simple the function is and no matter what I write in the main.dart file, I always get the following error in Appwrite Console:
Docker Error: Killed
Resolving dependencies...
+ collection 1.17.0 (1.17.2 available)
+ matcher 0.12.12 (0.12.16 available)
+ meta 1.9.1
+ path 1.8.3
+ pub_semver 2.1.4
+ pubspec 2.3.0
+ quiver 3.2.1
+ source_span 1.9.1 (1.10.0 available)
+ stack_trace 1.10.0 (1.11.0 available)
+ string_scanner 1.1.1 (1.2.0 available)
+ term_glyph 1.2.1
+ uri 1.0.0
+ yaml 3.1.1 (3.1.2 available)
Downloading pubspec 2.3.0...
Downloading uri 1.0.0...
Downloading yaml 3.1.1...
Downloading string_scanner 1.1.1...
Downloading path 1.8.3...
Downloading quiver 3.2.1...
Downloading collection 1.17.0...
Downloading pub_semver 2.1.4...
Downloading source_span 1.9.1...
Downloading term_glyph 1.2.1...
Downloading matcher 0.12.12...
Downloading stack_trace 1.10.0...
Downloading meta 1.9.1...
That's all I get. When clicking on "Raw Data", I get the following output:
{"message": "Not Found","code": 404,"type": "general_route_not_found","version": "1.3.7"}My appwrite function looks like this:
import 'package:dart_appwrite/dart_appwrite.dart';
void main(final req, final res) { Client client = Client(); Users users = Users(client);
client .setEndpoint('http://localhost/v1') .setProject('[PROJECT_ID]') .setKey( '[MY_KEY]') ;
print(req); final userId = req;
Future result = users.delete( userId: userId, );
result.then((response) { print(response); }).catchError((error) { print(error.response); });}