phax-bot-1 just restart
Sky84 opened this issue · comments
Sky84 commented
Hey, the phax-bot-1 just keep restarting everytime.
I'm on windows with docker
This is the Traceback
Missing Twitch client id secret
Traceback (most recent call last):
File "/usr/local/lib/python3.8/runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/local/lib/python3.8/runpy.py", line 144, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/local/lib/python3.8/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/app/phaxbot/web/__init__.py", line 24, in <module>
import_module(f'..{mod}.web', __name__)
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/app/phaxbot/chat_overlay/web/__init__.py", line 11, in <module>
from ...bot import user
File "/app/phaxbot/bot/__init__.py", line 18, in <module>
helix = Helix(config.CLIENT_ID, config.CLIENT_SECRET)
File "/usr/local/lib/python3.8/site-packages/twitch/helix/helix.py", line 36, in __init__
bearer_token = requests.post(f"https://id.twitch.tv/oauth2/token"
KeyError: 'access_token'
EDIT : ok I understand, i need so set env variable for the apps to load. But where I set theses variables ?
EDIT2 : Ok, with the help of google, I know now we need to set up env variable in .env