runtime error

Exit code: 1. Reason: 2024-10-16 02:32:32 - Created default config file at /home/user/app/.chainlit/config.toml Traceback (most recent call last): File "/home/user/.local/bin/chainlit", line 8, in <module> sys.exit(cli()) ^^^^^ File "/home/user/.local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/.local/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/home/user/.local/lib/python3.11/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/.local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/.local/lib/python3.11/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/.local/lib/python3.11/site-packages/chainlit/cli/__init__.py", line 154, in chainlit_run run_chainlit(target) File "/home/user/.local/lib/python3.11/site-packages/chainlit/cli/__init__.py", line 55, in run_chainlit load_module(config.run.module_name) File "/home/user/.local/lib/python3.11/site-packages/chainlit/config.py", line 282, in load_module spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/home/user/app/app.py", line 24, in <module> os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY") ~~~~~~~~~~^^^^^^^^^^^^^^^^^^ File "<frozen os>", line 684, in __setitem__ File "<frozen os>", line 758, in encode TypeError: str expected, not NoneType

Container logs:

Fetching error logs...