Bonjour,
J’utilise ce super plugin depuis 9 mois et il semble que depuis la dernière maj de Nextcloud, le dialogue ne se fait plus entre Jeedom et Talk.
J’ai fait un rollback de mon Nextcloud/Talk pour confirmer, et le plugin refonctionne en version inférieure.
Est-ce que quelq’un d’autre utilisant le nctalk rencontre également le problème depuis la dernière MAJ de Nextcloud ?
Sinon voici le log en mode Debug du demon :
[2022-09-18 11:15:04]INFO : Start demond
[2022-09-18 11:15:04]INFO : Log level : debug
[2022-09-18 11:15:04]INFO : Socket port : 52029
[2022-09-18 11:15:04]INFO : Socket host : localhost
[2022-09-18 11:15:04]INFO : PID file : /tmp/jeedom/nc_talk/deamon.pid
[2022-09-18 11:15:04]INFO : Apikey : 123apikey123
[2022-09-18 11:15:04]INFO : Device : auto
[2022-09-18 11:15:04]INFO : User : fakeuser
[2022-09-18 11:15:04]INFO : Password : 12345-12345-12345-12345-12345
[2022-09-18 11:15:04]INFO : URL : https://nextcloud.domain.com
[2022-09-18 11:15:04]INFO : tps : 5
[2022-09-18 11:15:04]DEBUG : Writing PID 23963 to /tmp/jeedom/nc_talk/deamon.pid
[2022-09-18 11:15:04]DEBUG : Init request module v2.28.0
[2022-09-18 11:15:04]DEBUG : Starting new HTTP connection (1): 127.0.0.1:80
[2022-09-18 11:15:04]DEBUG : http://127.0.0.1:80 "GET /plugins/nc_talk/core/php/jeenc_talk.php?apikey=123apikey123 HTTP/1.1" 200 0
[2022-09-18 11:15:04]DEBUG : Socket interface started
[2022-09-18 11:15:04]DEBUG : LoopNetServer Thread started
[2022-09-18 11:15:04]DEBUG : Listening on: [localhost:52029]
[2022-09-18 11:15:05]DEBUG : Client connected to [127.0.0.1:58020]
[2022-09-18 11:15:05]DEBUG : Message read from socket: b'{"eq_clear":"1","apikey":"123apikey123","eq_id":"561","talk_id":"6t8mgfr4"}'
[2022-09-18 11:15:05]DEBUG : Client disconnected from [127.0.0.1:58020]
[2022-09-18 11:15:09]DEBUG : Message received in socket JEEDOM_SOCKET_MESSAGE
[2022-09-18 11:15:09]DEBUG : talk 6t8mgfr4 added to 561
[2022-09-18 11:15:09]DEBUG : https://nextcloud.domain.com
[2022-09-18 11:15:09]DEBUG : 6t8mgfr4
[2022-09-18 11:15:09]DEBUG : Starting new HTTPS connection (1): nextcloud.domain.com:443
[2022-09-18 11:15:10]DEBUG : https://nextcloud.domain.com:443 "GET /ocs/v2.php/apps/spreed/api/v1/chat/6t8mgfr4 HTTP/1.1" 200 0
[2022-09-18 11:15:10]ERROR : Fatal error : no element found: line 1, column 0
[2022-09-18 11:15:10]INFO : Traceback (most recent call last):
File "/var/www/html/plugins/nc_talk/resources/nc_talkd/nc_talkd.py", line 198, in
listen()
File "/var/www/html/plugins/nc_talk/resources/nc_talkd/nc_talkd.py", line 78, in listen
msg = ET.fromstring(response.content).find('data').find('element')
File "/usr/lib/python3.7/xml/etree/ElementTree.py", line 1316, in XML
return parser.close()
File "", line None
xml.etree.ElementTree.ParseError: no element found: line 1, column 0
[2022-09-18 11:15:10]DEBUG : Shutdown
[2022-09-18 11:15:10]DEBUG : Removing PID file /tmp/jeedom/nc_talk/deamon.pid
[2022-09-18 11:15:10]DEBUG : LoopNetServer Thread stopped
[2022-09-18 11:15:10]DEBUG : Exit 0`
Et ce qui ce passe sur nextcloud dans le journal :
{"reqId":"truwJx3y5BNXhq5hrgAz","level":3,"time":"2022-09-18T09:15:10+00:00","remoteAddr":"192.168.0.254","user":"fakeuser","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/spreed/api/v1/chat/6t8mgfr4","message":"TypeError: XMLWriter::writeElement(): Argument #2 ($content) must be of type ?string, stdClass given at /var/www/html/lib/private/AppFramework/OCS/BaseResponse.php#148","userAgent":"python-requests/2.28.0","version":"24.0.5.1","data":{"app":"PHP"},"id":"6326e844a499c"}