R
Railway11mo 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
Percy11mo ago
Project ID: N/A
Fragly
Fragly11mo ago
that is very strange 🤔
Marsen
MarsenOP11mo ago
how to fix this? 🥹🥲
descentchirag909
descentchirag90911mo ago
Is there any subfolder in your github repo where main code is there
Marsen
MarsenOP11mo 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
descentchirag90911mo ago
It should be requirements.txt i guess
Marsen
MarsenOP11mo ago
What exactly?
descentchirag909
descentchirag90911mo ago
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
MarsenOP11mo ago
Sorry, I have a requirements.txt file
Marsen
MarsenOP11mo ago
No description
descentchirag909
descentchirag90911mo ago
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
MarsenOP11mo ago
maybe you know who can help?
Adam
Adam11mo ago
This is a railway issue, wait a few minutes and try again
Marsen
MarsenOP11mo ago
I've been trying for several weeks now
Adam
Adam11mo ago
Please walk me through the steps of what you're doing to get this error
Marsen
MarsenOP11mo ago
Adam
Adam11mo ago
Mind sharing the repo you're deploying?
Marsen
MarsenOP11mo ago
give me your nickname so I can add you
Adam
Adam11mo ago
ItsGoldeneyes
Marsen
MarsenOP11mo ago
+ received a request?
Adam
Adam11mo ago
Yep got it I forked your repo and am able to deploy it. Have you authenticated your github account with railway?
Marsen
MarsenOP11mo ago
yes
Adam
Adam11mo ago
Go to account settings: https://railway.app/account Remove your GIthub acocunt Add it back Try that out
Marsen
MarsenOP11mo ago
what did you do?
Adam
Adam11mo ago
Nothing, just forked and deployed it
Marsen
MarsenOP11mo ago
Marsen
MarsenOP11mo ago
did not help
Brody
Brody11mo 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
MarsenOP11mo ago
how to do it?
Brody
Brody11mo ago
from the new project button, it's just as easy as deploying from a github repo
Marsen
MarsenOP11mo ago
Thanks, this helped!
Brody
Brody11mo ago
where you able to deploy your code?
Marsen
MarsenOP11mo ago
I did not understand the question
Adam
Adam11mo ago
Did your deploy successfully complete
Fragly
Fragly11mo ago
@Marsen ( ping for visibility )
Marsen
MarsenOP11mo ago
Yes. thanks ♥
Want results from more Discord servers?
Add your server