Hi all, I have Appwrite Version 1.3.1. and I use Kotlin SDK to write a functions. There is a problem with adding ANY additional library to deps.gradle except default (io.appwrite:sdk-for-kotlin and com.google.code.gson:gson). If I add smth new, for example
'com.google.firebase:firebase-admin:8.1.0' I'm having an error when trying to run this function
An internal curl error has occurred within the executor! Error Msg: Could not resolve host: 6446faed6d9d0987c0f9-654502ab8425908548e5
It looks like there is no possibility to download any "non default" library...
I'm using CLI to deploy function and my appwrite.json looks like:
Summary
The user is experiencing issues with adding additional libraries to their Appwrite project using the Kotlin SDK. Without the additional libraries, the project works fine, but adding them causes an internal curl error when running the function. They have shared their docker-compose file and have tried a suggested solution from a GitHub discussion, but it did not work for them. They are asking for thoughts on whether they need to configure Appwrite or import the new library in a different way. Another user suggests trying to add the dependencies in the deps.gradle file, and the user confirms that it works for the default libraries but not for any new ones. The user is seeking help
Drake
Nov 4, 2023, 15:19
So if you don't add the dependency, it works fine?
woolfer
Rank 1: Thread
Nov 4, 2023, 16:21
yes, with
implementation 'io.appwrite:sdk-for-kotlin:1.2.0'
implementation 'com.google.code.gson:gson:2.9.0'
it works good, any new ones, I have got an error
woolfer
Rank 1: Thread
Nov 5, 2023, 09:53
Any thoughts? Should I add some configuration to appwrite or import the new libury somehow
Drake
Nov 5, 2023, 17:11
Weird...can you share your deps.gradle file? I'll have to play around with it
IT's interesting what happaning here... File: /usr/src/code/app/executor.php
[Error] Line: 541
Drake
Nov 13, 2023, 20:59
Did you say you're only having a problem if you add a dependency? And it works fine if you don't add any additional dependencies? If so, that comment is unrelated to your problem