
Hello, I already added this to a comment in the functions domains post, but since it seems unrelated I'll create a proper topic here.
I get an error when trying to execute any function, "An internal curl error has occurred within the executor! Error Msg: Could not resolve host: 65e07b00bbed8\nError Code: 500" where the alphanumeric changes for each execution..
in the executor log i get the following: "Type: Exception" "Message: An internal curl error has occurred within the executor! Error Msg: Could not resolve host: 65e07f5d88add" "File: /usr/local/app/http.php" "Line: 1021"
I'm wondering if anyone knows where I should start looking to figure this one out? 🤷♂️ I have Appwrite version Version 1.4.13, running through coolify.
I have tried creating the function through CLI and github, both fail in the same way.

Ah, I should probably update the compose here, I used the default one produced by coolify this time around, the one I posted earlier was the standard one I found on the appwrite homepage, but it didn't play too nice with the coolify setup, this is the current one:


hmm, it seems they use traefik to reverse proxy resources created. https://coolify.io/docs/servers

Just to make sure, I created a function in node, ruby, php and python, and they all have the same issue 🙂

Yeah something is going wrong within appwrite, which is pretty weird

What did you do after changing the .env?

ah, so I don't actually change the env directly; I just changed the env variables in coolify, and it compiles a new .env as far as I understand 🙂
Haven't really done much more than clean up and restarted appwrite after that 🙂

I'm kind of unsure how coolify works, so I cannot help you that well with that

Totally fair 😅 I posted about this in their discord as well, but no response so far

What are the logs for
docker compose logs openruntimes-executor
?


ah, I ran the function again now, and did a new readout:


What's the function code?

import { Client } from 'node-appwrite';
// This is your Appwrite function
// It's executed each time we get a request
export default async ({ req, res, log, error }) => {
// Why not try the Appwrite SDK?
//
// const client = new Client()
// .setEndpoint('https://cloud.appwrite.io/v1')
// .setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID)
// .setKey(process.env.APPWRITE_API_KEY);
// You can log messages to the console
log('Hello, Logs!');
// If something goes wrong, log an error
error('Hello, Errors!');
// The `req` object contains the request data
if (req.method === 'GET') {
// Send a response with the res object helpers
// `res.send()` dispatches a string back to the client
return res.send('Hello, World!');
}
// `res.json()` is a handy helper for sending JSON
return res.json({
motto: 'Build like a team of hundreds_',
learn: 'https://appwrite.io/docs',
connect: 'https://appwrite.io/discord',
getInspired: 'https://builtwith.appwrite.io',
});
};

package.json:
{
"name": "starter-template",
"version": "1.0.0",
"description": "",
"main": "src/main.js",
"type": "module",
"scripts": {
"format": "prettier --write ."
},
"dependencies": {
"node-appwrite": "^9.0.0"
},
"devDependencies": {
"prettier": "^3.0.0"
}
}

weird

Looks like you're using an incorrect appwrite SDK version. Try with
11.1.1

So change
"node-appwrite": "^9.0.0"
To
"node-appwrite": "^11.1.1"

hmm, I updated the package.json, and ran npm install just to be sure, then deployed the function; but still got the same error :/ "An internal curl error has occurred within the executor! Error Msg: Could not resolve host: 65e23c46a33bf\nError Code: 500"
package.json:
{
"name": "starter-template",
"version": "1.0.0",
"description": "",
"main": "src/main.js",
"type": "module",
"scripts": {
"format": "prettier --write ."
},
"dependencies": {
"node-appwrite": "^11.1.1"
},
"devDependencies": {
"prettier": "^3.0.0"
}
}

just to check, I don't need any Environment variables on the function it self for it to be able to run? The ones in the picture I mean.

Do you get any different error in logs?

Here are the logs now, I think it's the same

What are the server specs?
Recommended threads
- Need help setting up this error is showi...
You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy. If you're the app developer, register the redirect URI in the Google Cl...
- Direct Upgrade from Appwrite v1.5.11 to ...
I'm on Appwrite v1.5.11. Can I upgrade directly to v1.6.2?
- Appwrite stopped working, I can't authen...
I'm having an issue with Appwrite. It was working fine just a while ago, but suddenly it stopped working for me and can't authenticate accounts. I even went bac...
