
TypeScript
Error getting current user: TypeError: fetch failed
at node:internal/deps/undici/undici:12345:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _Client.call (webpack-internal:///(rsc)/./node_modules/.pnpm/node-appwrite@13.0.0/node_modules/node-appwrite/dist/client.mjs:272:22)
at async Databases.getDocument (webpack-internal:///(rsc)/./node_modules/.pnpm/node-appwrite@13.0.0/node_modules/node-appwrite/dist/services/databases.mjs:1667:12)
at async getUserDB (webpack-internal:///(rsc)/./src/lib/actions/users/get-user.ts:12:22)
at async getCurrentUser (webpack-internal:///(rsc)/./src/lib/actions/users/get-current-user.ts:19:22)
at async Home (webpack-internal:///(rsc)/./src/app/(public)/page.tsx:15:18) {
cause: Error: getaddrinfo ENOTFOUND domain-aaa.store
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -3007,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'domain-aaa.store'
}
}
I had this error a few times in development, can that be probelmatic in production or maybe there is some bug or issue or time incosistencies that i should match or dunno, please help me to solve this issue, i am using Nextjs
TL;DR
Developers are encountering a ENOTFOUND error related to fetching the current user on a domain address. The issue appears to be with DNS lookup failing for the domain. This error might cause problems in production. To resolve this, ensure the domain address is correct and properly configured for fetching requests.Recommended threads
- Authentication and Sign-In Functionality
when i am trying to find the accounts.read permission in the api permissions it dosent show Go to "API Keys" in the left sidebar 4. Find the API key that matc...
- GitHub connection failed
I am running a self-hosted Appwrite with Coolify. Everything is running smoothly so far and I wanted to starte develop functions. Trying to connect github with ...
- create subdomain for function
I have deployed my react project on Appwrite using Sites feature. I have added custom DNS on namecheap. I want to create new sub domains for my functions on Ap...
