FileNotFoundError: [Errno 2] No such file or directory: 'secrets/ejabberd_secrets.txt' #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Traceback (most recent call last):
File "/opt/ejabberd/bots/proves/lib/python3.8/site-packages/ejabberdapi/Ejabberdapi.py", line 32, in init
self.__api_base_url = self.__get_parameter("api_base_url", self.__secrets_config_file)
File "/opt/ejabberd/bots/proves/lib/python3.8/site-packages/ejabberdapi/Ejabberdapi.py", line 259, in __get_parameter
with open( file_path ) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'secrets/ejabberd_secrets.txt'
Ejabberd's API setup and its related admin access token must be added to EjabberAPI class/library.
Fixed by upgrading EjabberAPI package:
pip install EjabberdAPI --upgrade