heroku-opus icon indicating copy to clipboard operation
heroku-opus copied to clipboard

heroku-opus not working with new discord.py build?

Open qtds35k opened this issue 2 years ago • 3 comments

Hi xrisk,

Thanks for the amazing heroku buildpack. I'm wondering if you're also experiencing some malfunction, if you've recently deployed new versions of apps that are using heroku-opus?

When I pushed a minimal modification the app (a voice bot) started failing. I noticed there's an update of discord.py build version at the beginning of deployment:

Successfully uninstalled discord.py-2.0.0a3738+g8360e4a
Successfully installed discord.py-2.0.0a3740+g9d3fa3d

I strongly suspect this is the cause, since the app works fine if I host it on my local machine. Unfortunately heroku logs doesn't show any exception for this failure (or I don't know how to surface this info) so that's all I got for now. By the way, is it possible to specify the old build version in requitement.txt?

Please let me know if you need anymore info, if you're interested in helping. Thanks for reading!

qtds35k avatar Mar 06 '22 09:03 qtds35k

Quick update: although I still cannot root cause the issue, I'm able to fix the functionality by specifying an Aug 27, 2021 commit of discord.py in requirement.txt as below:

git+https://github.com/Rapptz/discord.py@45d498c1b76deaf3b394d17ccf56112fa691d160#egg=discord.py

qtds35k avatar Mar 06 '22 10:03 qtds35k

hey, I’ll investigate and get back to you. I don’t have any discord.py apps running on Discord at the moment.

xrisk avatar Mar 06 '22 10:03 xrisk

Hey jfyi, this has been confirmed to be a bug in discord.py, and is claimed to be fixed by this commit. I will test this later today and close the issue after confirmation.

Update: Bug's not fixed at least for my application; changing it back to git+https://github.com/Rapptz/discord.py requirement.txt still produces the issue.

qtds35k avatar Mar 09 '22 02:03 qtds35k