Self hosted instance pub get socket error when deploying function
- 0
- Self Hosted
- Flutter
- Functions
I hv self hosted instance of appwrite i am trying to build a function manually but i am getting error socket error when it is trying to get pub dependencies i am using internet proxy and i hv configured docker to that proxy too, is there anything else to follow?
What do you mean by building the function manually?
From tar.gz file i am not setting any repository
How does the tar file looks like? I mean the scheme
are you on 1.5.x have you tried doing it using the CLI ?
Manual deployment should work anyways. I recommend CLI, but 🤷♂️
yes its not woking now after the upgrade to 1.5.x appwrite and 5.0.0 cli
Do you have 1.5.3?
yes
@Jake Do you have any ideas?
@D5 it create the function with the appwrite.json and aslo creates the code.tar.gz but does not push to the server
I took the .gz file and manually uploaded getiitng this error
Could not resolve host: appwrite-executor with status code 0
/usr/src/code/src/Executor/Executor.php:331
#0 /usr/src/code/src/Executor/Executor.php(91): Executor\Executor->call('POST', '/runtimes', Array, Array, true, 900)
#1 /usr/src/code/src/Appwrite/Platform/Workers/Builds.php(408): Executor\Executor->createRuntime('65f19ae2a51c1fe...', '655a57fe5fc72cc...', '/storage/functi...', 'openruntimes/da...', 'v3', true, 'lib/main.dart', '/storage/builds...', Array, 'tar -zxf /tmp/c...')
#2 [internal function]: Appwrite\Platform\Workers\Builds->Appwrite\Platform\Workers\{closure}()
#3 {main}
Not sure here 🤔 @Matej Bačo any ideas?
In tar there is a folder caled create_function in which there is lib folder and inside it there is main.dart file and inside the create_function there is pubspec.yaml file in which dart_appwrite sdk is mentioned and it gets downloaded by using dart pub get command and that command is giving me this error 🥲
Nd i am using 1.4
And what's your CLI version?
some how I fxed this after deleting the pref.json file
in .appwrite folder
4.2.2
Used CLI but still getting same socket error "Got socket error trying to find package pubspec at https://pub.dev.
I tried python starter function too but got an error
Still not solved
Recommended threads
- AppwriteException: Invalid query: Query ...
```js console.log(typeof interaction.user.id) console.log(interaction.user.id) const user_check = await TablesDB.listRows({ databaseId: "db", ...
- AppwriteException - Transaction with the...
I am using "node-appwrite" module and I have successfully created transaction id but when passing it to tablesDB.createRow function with some other required dat...
- Files access permissions
Am I right in understanding that file access permissions have been disabled (or broken again), and that shared access can now only be organized via tokens? Or i...