Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't deploy to Heroku #7

Open
a040900 opened this issue May 4, 2022 · 0 comments
Open

Can't deploy to Heroku #7

a040900 opened this issue May 4, 2022 · 0 comments

Comments

@a040900
Copy link

a040900 commented May 4, 2022

Hi,
when I want to use the deploy button, it's not working.

after I check what happen on internet, I saw this:
https://stackoverflow.com/questions/71892543/heroku-and-github-items-could-not-be-retrieved-internal-server-error

Looks like Heroku disconnect with github for secure reason until can fix the secure problem.

but wehn I try to deploy with heroku-CLI (also modify the .env.sample and rename to .env) and use python3 bot.py to start the bot, it always show my this on log:

Traceback (most recent call last):
File "/app/bot.py", line 24, in
APP_ID = config("APP_ID", default=None, cast=int)
File "/app/.heroku/python/lib/python3.10/site-packages/decouple.py", line 243, in call
return self.config(*args, **kwargs)
File "/app/.heroku/python/lib/python3.10/site-packages/decouple.py", line 105, in call
return self.get(*args, **kwargs)
File "/app/.heroku/python/lib/python3.10/site-packages/decouple.py", line 99, in get
return cast(value)
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

I don't know how to fix it. Please help me.

my .env.sample file content is:
APP_ID=16917856
API_HASH=86711f61999884res2ae76cff0cdb84c2
FROM_CHANNEL=-1544916992
TO_CHANNEL=-1783999972
SESSION=1BVtsOHwBuyLEg0Kt6mBCr0L-AV3j8ZzfdjHhQAyEyeqSlFNURvg0uwA29NFecKr_KLhkr-0SKHUIdEjOhaaTGnTyzapXWzzAMt8QXlG6xiRTiqtUyKFpMxMWYitkSkpfJKbd66bI5RZ3ysBXNyEGYRjL5DvFQEIPwNUfhDm5eO_pmj8WwmxfDRTIwHPlId23cJbDBILPkZkS8hoH1vyjmmNdY_HAsvziILu_C-OEXPgZ3qyp_LgaDF6-D517SZkYJjflzg5SEMlHgF3uafbx_n0wv1hwMcmDo7LQ3o-eADr1AOX6Mob_K6f-eKtxD626SOjRiez34-pbGd_cBBtc0EaMSdOU7m8=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant