Problem with errors
Hi, I'm new to railway and github and idk much about it. I transferred all the code from replit to github and all the stuff, but the Bot doesn't come online. How can i see errors in my code?
69 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ok ty
I'll try
I cant find it
The 3rd one
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Wait
I jist saw view
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
stat .tmp/build/2417da00-72db-438d-be83-b5ea32980ae8/main.py/Dockerfile: not a directory
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
That's al
All
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
No
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ok
Ty
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
This or the webpage
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Did u find anything
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ah ye
Did you ping?
@KonstTheoGR please send a screenshot of the build logs as well. does your program work when launched locally?
it worked on replit
please send a screenshot of the build logs
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Can you try redeploying
Wdym
Do the whole thing again?
Yeah. Like push a new change to deploy again
Alr
I'll try tomorrow
I redeployed
Doesn't seem to work
File "main.py", line 720
botrun()
^
SyntaxError: invalid syntax
The deploy logs
X10 times
Oh i found it I think during the file transfer between replit and github syntax error was creqted
Will it restart by itself?
Finally it went online ty
However it doesn't reply to my commands
And it doesn't log an error in deploy logs
Application doesn't respond
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
1) discord-py - https://github.com/railwayapp/starters/tree/master/examples/discord-py
2) discordgo - https://github.com/railwayapp/starters/tree/master/examples/discordgo
3) discordjs-typescript - https://github.com/railwayapp/starters/tree/master/examples/discordjs-typescript
4) discordjs - https://github.com/railwayapp/starters/tree/master/examples/discordjs
I use nextcord
.
Yeah i saw it afterwards
Install packages using pip install -r requirements.txt
Start the bot using python main.py
Where can i run it
Also is Procfile mandatory
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ok
I'm doing everything correct what should I do
But still doesn't respond
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
No
Should it be
It still goes online tho
I'll try publishing it
Still doesn't work
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ah lol
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Of github or railway projext
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Ok
GitHub
GingerBot/main.py at 8131c07a55e7553c2a9f770189e9a9798d007a8e · kon...
Contribute to konsttheogr/GingerBot development by creating an account on GitHub.
The interaction is sent to the code and it's used, but the response does not reach discord
Code is run tho
Ran*
I think this may be an error of nextcord
It may be outdated but idk
I solved it
Idr how but I did
Ty
Also how can i change a project's name
It's posh-can and the other I don't remember
you can change the project name in the project settings
Ok
I couldn't find info about the funding system however
How much do I pay monthly
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
It's not mentioned or I just don't see the price
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Click learn how credits are calculated?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Yes
So that's how it's calculated
I mean it isn't stable
I still didn't get it
About the dev plan
You’re right, it isn’t stable
you pay for the CPU and RAM that you use, minus 5$ of credit
Ah ok
you can see the estimated usage of your projects if you scroll down on the usage page
Ik
@A Dumb another question I didn't understand how to set the port for requests (FastApi)
If you mean the port that the app should be listening on, you can set that manually in your code or set the PORT environment variable
Ok ty and the link ngl?
not sure what you mean
the port is a 4 digit number
Ik
I dont get a link where the app is connected
Like 0.0.0.0
have you exposed your app to the internet?
It's private
Oh it must be public
😩