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:
So if you don't add the dependency, it works fine?
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
Any thoughts? Should I add some configuration to appwrite or import the new libury somehow
Weird...can you share your deps.gradle file? I'll have to play around with it
@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
result of docker logs appwrite-executor is:
IT's interesting what happaning here... File: /usr/src/code/app/executor.php [Error] Line: 541
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
@Steven Correct!
Recommended threads
- Tips for Debugging Appwrite Functions Lo...
Hi everyone! 👋 I have an Appwrite Function running locally with Docker, but I’m struggling to debug it because execution doesn’t reach the breakpoints I set. ...
- AttributeError: 'Context' object has no ...
I'm getting an error executing my function. I'm not able to replicate this locally since I have to use a mock context. Is there a way to debug this kind of erro...
- SyntaxError: The requested module 'node-...
I am trying to use appwrite functions and in the function i am creating rows but i got this error when i executed the funtion. As i checked docs there TablesDB...