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

Closed
opened 3 months ago by spla · 2 comments
spla commented 3 months ago
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 3 months ago
spla self-assigned this 3 months ago
Poster
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.
Poster
Owner

Fixed by upgrading EjabberAPI package:

pip install EjabberdAPI --upgrade

Fixed by upgrading EjabberAPI package: `pip install EjabberdAPI --upgrade`
spla closed this issue 3 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Referència: spla/xmpp#3
Loading…
There is no content yet.