FileNotFoundError: [Errno 2] No such file or directory: 'secrets/ejabberd_secrets.txt' #3

Closed
opened 2022-08-29 12:26:08 +02:00 by spla · 2 comments
Owner

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'

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'
spla added the
bug
label 2022-08-29 12:26:08 +02:00
spla self-assigned this 2022-08-29 12:26:18 +02:00
Author
Owner

Ejabberd's API setup and its related admin access token must be added to EjabberAPI class/library.

Ejabberd's API setup and its related admin access token must be added to EjabberAPI class/library.
Author
Owner

Fixed by upgrading EjabberAPI package:

pip install EjabberdAPI --upgrade

Fixed by upgrading EjabberAPI package: `pip install EjabberdAPI --upgrade`
spla closed this issue 2022-08-29 12:43:47 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: spla/xmpp#3
No description provided.