ERROR: Error loading ASGI app. Could not import module "main".
karusytt
FREEOP

2 months ago

Im making a flight dispatch bot for discord and im using railway to host it and that error always shows up no matter what, after it crashes.

$10 Bounty

8 Replies

medim
MODERATOR

2 months ago

This looks like a start command issue.
Is the repo public? I can take a look at it.


medim

This looks like a start command issue.Is the repo public? I can take a look at it.

karusytt
FREEOP

2 months ago


karusytt

https://github.com/Karusytt/discord.bot

karusytt
FREEOP

2 months ago

i miss clicked the button that marks it as resolved, it's not


karusytt

i miss clicked the button that marks it as resolved, it's not

From within your Railway Environment, click on the Service for your Deployment, Click on the Settings tab on the top right, scroll to the Deploy section, & the item should be Custom Start Command; set it as: python bot.py, & then redeploy your Service.


symmetricalboy

From within your Railway Environment, click on the Service for your Deployment, Click on the Settings tab on the top right, scroll to the Deploy section, & the item should be Custom Start Command; set it as: python bot.py, & then redeploy your Service.

karusytt
FREEOP

2 months ago

The ASGI error is resolved but the bot still dosen't send

Attachments


~~Well your script is technically running without issue, so that isn't really a Railway problem so much as a you problem, & I'm not sure that that really belongs on Central Station... it's an issue with you & your code. what you wrote is running without issue. (lol, i know, i'm a jerk. don't worry, i'll still help ya. joy emoji)

I think it would be best served if we could chat in the Discord Server about it, as i believe you need some detailed Discord Bot guidance here. is it possible for you to move there?

https://discord.gg/htTtNwZ9u9

ping me on the server @symmetricalboy if you are able.~~


@karusytt :
Scratch that. I now think that Ive misunderstood the point & context of bounties, when I look a little further.
I am writing you some corrections & assistance for you already. I think I have your bot fixed. uncertain a bit. I need to connect it to my Discord Developer site really quickly & check it actually does what it says on the tin.
Sorry again for the above. I will get right back to you.


symmetricalboy

@karusytt : Scratch that. I now think that Ive misunderstood the point & context of bounties, when I look a little further.I am writing you some corrections & assistance for you already. I think I have your bot fixed. uncertain a bit. I need to connect it to my Discord Developer site really quickly & check it actually does what it says on the tin.Sorry again for the above. I will get right back to you.

karusytt
FREEOP

2 months ago

Alright thanks


Loading...