postgresql issue with discord bot I am setting up

node:os:347
throw new ERR_SYSTEM_ERROR(ctx);
^
SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_os_get_passwd returned ENOENT (no such file or directory)
at new SystemError (node:internal/errors:234:5)
at new NodeError (node:internal/errors:337:7)
at Object.userInfo (node:os:347:11)
at parseOptions (/home/container/node_modules/postgres/lib/index.js:463:89)
at Postgres (/home/container/node_modules/postgres/lib/index.js:43:19)
at Object.<anonymous> (/home/container/src/database.js:4:13)
at Module._compile (node:internal/modules/cjs/loader:1099:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
code: 'ERR_SYSTEM_ERROR',
info: {
errno: -2,
code: 'ENOENT',
message: 'no such file or directory',
syscall: 'uv_os_get_passwd'
},
errno: [Getter/Setter],
syscall: [Getter/Setter]
node:os:347
throw new ERR_SYSTEM_ERROR(ctx);
^
SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_os_get_passwd returned ENOENT (no such file or directory)
at new SystemError (node:internal/errors:234:5)
at new NodeError (node:internal/errors:337:7)
at Object.userInfo (node:os:347:11)
at parseOptions (/home/container/node_modules/postgres/lib/index.js:463:89)
at Postgres (/home/container/node_modules/postgres/lib/index.js:43:19)
at Object.<anonymous> (/home/container/src/database.js:4:13)
at Module._compile (node:internal/modules/cjs/loader:1099:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
code: 'ERR_SYSTEM_ERROR',
info: {
errno: -2,
code: 'ENOENT',
message: 'no such file or directory',
syscall: 'uv_os_get_passwd'
},
errno: [Getter/Setter],
syscall: [Getter/Setter]
This is the full error I have a .env file with all the credentials set correctly unsure as to why I am getting this error.
3 Replies
d.js toolkit
d.js toolkit4mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
treble/luna
treble/luna4mo ago
not djs related, #other-js-ts
[Apple_Jack]
[Apple_Jack]4mo ago
alright will post there