slash-up
slash-up copied to clipboard
`slash-up sync` hangs forever during Heroku deployment
Déja vù, I'm here again with mystic hanging issues.
As titled, slash-up sync
does nothing for at least 40 minutes (didn't bother waiting any longer) when trying to deploy to Heroku. I have positive confirmation that the command is started by NPM, but after that, nothing happens. Adding the --debug
flag still prints nothing. Tried updating to latest slash-up and slash-create, neither had any effect.
We last deployed successfully with [email protected]
and [email protected]
on October 10th. This breakage has therefore happened somewhere between then and now. I will try again tomorrow to rule out Discord platform issues.
The only clue I have to go on at this stage is that the sync
command never gets as far https://github.com/Snazzah/slash-up/blob/master/src/commands/sync.ts#L134, since I tried adding beforeSync: 'block'
to the config, but still nothing would happen. It seems reasonable to assume it never makes it as far as https://github.com/Snazzah/slash-up/blob/master/src/commands/sync.ts#L126 either. I have a non-zero amount of commands, and it not stopping on "no commands" seems to suggest it doesn't make it as far as https://github.com/Snazzah/slash-up/blob/master/src/commands/sync.ts#L116 either. I have neither disableDelete
nor globalToGuild
enabled in the production environment (latter is enabled in dev, but I'm running slash-up sync
, which should mean it does not go into that branch), so it therefore stands to reason the script never enters neither https://github.com/Snazzah/slash-up/blob/master/src/commands/sync.ts#L108 nor https://github.com/Snazzah/slash-up/blob/master/src/commands/sync.ts#L99.
Summarily, bar the handler()
function not running at all, it seems the script is liable to hang somewhere here: https://github.com/Snazzah/slash-up/blob/master/src/commands/sync.ts#L95-L96
The strangest thing is that this works just fine locally.
That's all I've got to go on at this stage; happy to provide more help where I can. Thank you in advance for any help!