#BUG
57 messages · Page 1 of 1 (latest)
Project ID: N/A
It is most likely an issue on Railway's end, since they had an incident posted in #🚨|incidents reguarding build errors. Try building your application again, since the issues with Railway should be resolved. If your build still fails, try building it locally.
i just deployed my first node js project with it but after some few mintues it keepss crashing. NB: this works well locally
Please provide any relevent logs and a project id
@hallow wagon
when i click on check logs it shows me the current buld
could the error be coming from my node.js
you need to tell your app to listen on the value provided in the eviroment variable PORT
how do i do that please
google. how to read environment variables < insert your language here >
didn't find anything useful but when i restart the bot it's works well
@hallow wagon i really don't understand why my app keeps crashing and the logs don't help much
please help me out
Beacuse its not listening on the port provided by the environment variable PORT
Without the relevant code snippets I can't tell really
where is the code that runs on rail way server please help me out
const port = process.env.PORT || 9000; looks alright. Does it even start?
Locally yes
Yes but on railway what are the logs?
i also have this slight issue not serious but worth nothing, railway logs me out occasionally
i'm logged out now i can't log in
Why not
it keeps say failed to fetch when i try logging in
ok
cause i just restarted it
I seem to be able to login
Ah yea.
might be me network
yeah but after a while it crashes
Will need the logs
If it crashes after a while that will be a code issue
Unfortunately we can't really help with that
Look for the appropriate stack traces to find your issue
Can you confirm you still get this or not
when it crashes thi is the erorr i get
Right. So you just need to fix the crash ig
not even a look to see if it's a syntax issue
cause i'm new to this
Unfortunately I don't have the bandwidth to look at everyone's project in depth. It sounds like an uncaught exception is being throw causing the app to crash ?
Then railway restarts your project. Right?
Also I've just realised you have committed your node modules. You should remove them idealy
If I had to guess it's one of these lines throwing an error
https://github.com/oojoseph67/nodejs-defi/blob/master/index.js#L153
https://github.com/oojoseph67/nodejs-defi/blob/master/index.js#L109
https://github.com/oojoseph67/nodejs-defi/blob/master/index.js#L50
https://github.com/oojoseph67/nodejs-defi/blob/master/index.js#L18
Your also commiting your API key which you should now rotate as everyone can see it
yes
i can't locate services
On the canvas click the web service in the center of your screen