Back

[SOLVED] Could not resolve host

  • 0
  • Functions
MatiasLGonzalez
10 Feb, 2023, 20:14

Appwrite is up and running again, will try to make everything through the appwrite cli

TL;DR
The user had a problem with resolving the host, resulting in an internal curl error. The issue was caused by a discrepancy in the network environment variable. Additionally, there was a problem with the code format that could have led to a connection timeout error. The solution was to make tweaks in the `.env` file. A bug with a specific version caused the function deployment to not work after running the `appwrite deploy function` command. The user speculated that there might be an issue with either Node or Git versions. Troubleshooting was done to address the problem with Git. The user also suggested trying to initialize the function in another folder if
MatiasLGonzalez
10 Feb, 2023, 20:17

Hmm

MatiasLGonzalez
10 Feb, 2023, 20:17

It seems like it's trying to cd into https://github.com/appwrite/functions-starter

VincentGe
10 Feb, 2023, 20:19

Can you try initing the function in another folder?

VincentGe
10 Feb, 2023, 20:20

It does look like it doesn't have access to that folder

VincentGe
10 Feb, 2023, 20:20

πŸ‘€

Drake
10 Feb, 2023, 20:24

What's in your functions folder?

Drake
10 Feb, 2023, 20:25

And what version of node do you have?

MatiasLGonzalez
10 Feb, 2023, 20:25

Nothing currently

Drake
10 Feb, 2023, 20:25

Can you go in that my awesome folder and run that git clone command?

Drake
10 Feb, 2023, 20:26

And what version of node do you have?

MatiasLGonzalez
10 Feb, 2023, 20:26
MatiasLGonzalez
10 Feb, 2023, 20:27

Yep, definitely something wrong with git, let me troubleshoot that and will be back

Drake
10 Feb, 2023, 20:27

Maybe it's not node...maybe it's git

MatiasLGonzalez
10 Feb, 2023, 20:30

Smh Ubuntu πŸ€¦πŸ»β€β™‚οΈ

Drake
10 Feb, 2023, 20:30

lol bug with that specific version πŸ˜‚

MatiasLGonzalez
10 Feb, 2023, 20:40

Created the function succesfully:

But I ran appwrite deploy function and it seems that nothing happened

MatiasLGonzalez
10 Feb, 2023, 20:41
Drake
10 Feb, 2023, 20:41

press space to select which functions to deploy

MatiasLGonzalez
10 Feb, 2023, 20:42

Lmao my bad

MatiasLGonzalez
10 Feb, 2023, 20:45

Noice

MatiasLGonzalez
10 Feb, 2023, 20:47

So what's the tweak needed in the .env file, just to sum things up

Drake
10 Feb, 2023, 20:51

the runtimes network env var. by default, it's appwrite_runtimes, but since your files were in a folder named appwrite-be, the network was appwrite-be_runtimes. So this was the problem that resulted in the following error:

An internal curl error has occurred within the executor! Error Msg: Could not resolve host: traspaso-63e655c39fe6727b25e4

The other problem you had was the format of the code. that would have probably resulted in a connection timed out error

MatiasLGonzalez
10 Feb, 2023, 20:56

I see, thank you, and thanks everyone else for your time πŸ™Œ

MatiasLGonzalez
10 Feb, 2023, 22:26

[SOLVED] Could not resolve host

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