#Dotenv
49 messages · Page 1 of 1 (latest)
@oak cove you forget to setup the requirements.txt
this is node.js, there is no requirements.txt
if you are unsure about something let somebody else offer their help
you need to manually install the package with the node package manger
you can google for its name
ah i remember something
about pebblehost
why are you using dotenv anyways
you should just paste your settings directly into your code
don't quote me on this but I remember seombody saying you cannot use .env on pebble
no
@oak cove if you have a valid package.json file your dependencies should be installed automatically
they already added it into the node package manager
both those methods work but only one is needed
if you have sensitive information you can keep them in separate files if you want to keep yourself from accidentally copying it
It might just be that the address isn't reachable but there was a problem with undici and the new built-in fetch, something do with with DNS and IPv6
Bug Description When trying to fetch a URL a fetch failed error is thrown with the code as code: 'UND_ERR_CONNECT_TIMEOUT' , This error is thrown at a request that barely takes 5 - 6 second...
What Node.js verison are you using?
16
@oak cove, you just advanced to level 1 !
Is the connection timeout error of sql?
no im not using a database
try 20
If it still doesn't work, use something like the node-fetch package instead of native fetch for any requests you make
Why can't we btw?
.env files are so common and used by everyone mostly
i think its something to do with the / commands maybe?
You can use .env files
@oak cove When does the error shoots? Does it register any slash commands?
Yeah it starts refreshing them
so that works properly?
You can use, console.log() at different points in your code and trace down where the error is coming on your code. it will help us a lot if we can know the code
Started Refreshing Application (/) Commands
(this is the point where the server fails)
Sucessfully reloading application (/) Commands
so probably at your command handler?
yeah, but I have the right nodes installed, I removed the slash commands and just used a normal prefix, and I just got a error again
I recommend you taking help from discord.gg/djs
Have you tried taking help from here @oak cove ?