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')", но когда запускаю локально - бот работает, как это исправить?
36 Replies
Project ID:
N/A
that is very strange 🤔
how to fix this? 🥹🥲
Is there any subfolder in your github repo where main code is there
in my repository the following files: folder: pycache, file: procfile. requirements, script.py and runtime.txt
в моем репозитории такие файлы: папка: pycache, файли: procfile. requirements, script.py and runtime.txt
It should be requirements.txt i guess
What exactly?
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
Sorry, I have a requirements.txt file
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
maybe you know who can help?
This is a railway issue, wait a few minutes and try again
I've been trying for several weeks now
Please walk me through the steps of what you're doing to get this error
Mind sharing the repo you're deploying?
give me your nickname so I can add you
ItsGoldeneyes
+
received a request?
Yep got it
I forked your repo and am able to deploy it. Have you authenticated your github account with railway?
yes
Go to account settings: https://railway.app/account
Remove your GIthub acocunt
Add it back
Try that out
what did you do?
Nothing, just forked and deployed it
did not help
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
how to do it?
from the new project button, it's just as easy as deploying from a github repo
Thanks, this helped!
where you able to deploy your code?
I did not understand the question
Did your deploy successfully complete
@Marsen ( ping for visibility )
Yes. thanks ♥