Back

function execution Error: getaddrinfo ENOTFOUND hostname

  • 0
  • Self Hosted
rohan
6 May, 2023, 10:36

Hi im trying to get the listDocuments and getting this error.

TypeScript
    at Client.call (/usr/code-start/node_modules/node-appwrite/lib/client.js:177:23)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Databases.listDocuments (/usr/code-start/node_modules/node-appwrite/lib/services/databases.js:1002:16)
    at async module.exports (/usr/code-start/src/index.js:60:16)
    at async /usr/local/src/server.js:68:13```
TL;DR
The user is encountering an "Error: getaddrinfo ENOTFOUND hostname" when trying to execute the `listDocuments` function. One suggestion is to make sure that `client.setEndpoint()` has been called. The user tried setting variables manually and it resolved the issue.
Drake
6 May, 2023, 14:10

You have not called client.setEndpoint()

rohan
7 May, 2023, 02:28

oh thanks i set it manually using variables and its working now

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