R
Railway5mo ago
Marsen

error when deploy discord bot

I'm trying to publish my bot for discord, which is written in Python through a repository on Github, but I get the error "Cannot read properties of undefined (reading 'id')", but when I run it locally, the bot works, how can I fix this? original: Я пытаюсь опубликовать своего бота для дискорда который написан на пайтоне через репозиторий на гитхабе но получаю ошибку "Cannot read properties of undefined (reading 'id')", но когда запускаю локально - бот работает, как это исправить?
No description
36 Replies
Percy
Percy5mo ago
Project ID: N/A
Fragly
Fragly5mo ago
that is very strange 🤔
Marsen
Marsen5mo ago
how to fix this? 🥹🥲
descentchirag909
Is there any subfolder in your github repo where main code is there
Marsen
Marsen5mo ago
in my repository the following files: folder: pycache, file: procfile. requirements, script.py and runtime.txt в моем репозитории такие файлы: папка: pycache, файли: procfile. requirements, script.py and runtime.txt
descentchirag909
It should be requirements.txt i guess
Marsen
Marsen5mo ago
What exactly?
descentchirag909
Means the dependencies should be in requirements.txt instead of requirements, I don't know what is the actual extension on your side but as you written requirements only without specifying the extension that's why i told
Marsen
Marsen5mo ago
Sorry, I have a requirements.txt file
Marsen
Marsen5mo ago
No description
descentchirag909
It's quite confusing, i thought you are also facing the same problem as i was facing few hours before, but it's different Sorry
Marsen
Marsen5mo ago
maybe you know who can help?
Adam
Adam5mo ago
This is a railway issue, wait a few minutes and try again
Marsen
Marsen5mo ago
I've been trying for several weeks now
Adam
Adam5mo ago
Please walk me through the steps of what you're doing to get this error
Marsen
Marsen5mo ago
Adam
Adam5mo ago
Mind sharing the repo you're deploying?
Marsen
Marsen5mo ago
give me your nickname so I can add you
Adam
Adam5mo ago
ItsGoldeneyes
Marsen
Marsen5mo ago
+ received a request?
Adam
Adam5mo ago
Yep got it I forked your repo and am able to deploy it. Have you authenticated your github account with railway?
Marsen
Marsen5mo ago
yes
Adam
Adam5mo ago
Go to account settings: https://railway.app/account Remove your GIthub acocunt Add it back Try that out
Marsen
Marsen5mo ago
what did you do?
Adam
Adam5mo ago
Nothing, just forked and deployed it
Marsen
Marsen5mo ago
Marsen
Marsen5mo ago
did not help
Brody
Brody5mo ago
instead, create an empty project with an empty service in it, on that service first set your needed environment variables, then in its settings attach your github repo
Marsen
Marsen5mo ago
how to do it?
Brody
Brody5mo ago
from the new project button, it's just as easy as deploying from a github repo
Marsen
Marsen5mo ago
Thanks, this helped!
Brody
Brody5mo ago
where you able to deploy your code?
Marsen
Marsen5mo ago
I did not understand the question
Adam
Adam5mo ago
Did your deploy successfully complete
Fragly
Fragly5mo ago
@Marsen ( ping for visibility )
Marsen
Marsen5mo ago
Yes. thanks ♥