Back

Maven repository configuration

  • 1
  • Self Hosted
  • Functions
woolfer
4 Nov, 2023, 10:21

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:

TL;DR
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
4 Nov, 2023, 15:19

So if you don't add the dependency, it works fine?

woolfer
4 Nov, 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
5 Nov, 2023, 09:53

Any thoughts? Should I add some configuration to appwrite or import the new libury somehow

Drake
5 Nov, 2023, 17:11

Weird...can you share your deps.gradle file? I'll have to play around with it

woolfer
6 Nov, 2023, 09:40

@Steven My docker-compose It looks like a solution https://github.com/appwrite/appwrite/discussions/4671#discussioncomment-4138707 but did not help to me, I still have the error: An internal curl error has occurred within the executor! Error Msg: Could not resolve host: 6446faed6d9d0987c0f9-6548a7e2222921f56e28

woolfer
6 Nov, 2023, 11:44

result of docker logs appwrite-executor is:

woolfer
6 Nov, 2023, 12:06

IT's interesting what happaning here... File: /usr/src/code/app/executor.php [Error] Line: 541

Drake
13 Nov, 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

woolfer
16 Nov, 2023, 09:01

@Steven Correct!

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more