Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Some useful links to gather information about your Nextcloud Talk installation:
Information about Signaling server: /index.php/index.php/settings/admin/talk#signaling_server
Information about TURN server: /index.php/settings/admin/talk#turn_server
Information about STUN server: /index.php/settings/admin/talk#stun_server
Nextcloud version (eg, 24.0.1): Nextcloud Hub 6 (27.1.4)
Talk Server version (eg, 14.0.2): 17.1.3
Custom Signaling server configured: no
Custom TURN server configured: no
Custom STUN server configured: no
In case the web version of Nextcloud Talk is involved:
Operating system (eg, Windows/Ubuntu/…): Ubuntu 22.04.1 LTS
Browser name and version (eg, Chrome v101): brave 160
In case mobile Nextcloud Talk apps are involved: no
Talk iOS version (eg, 14.0.2): x
Talk Android version (eg, 14.0.2): x
The issue you are facing:
i can react emoji with API in python. I try to react to a message with wich is translated in ’ ^=^q^m’
Is this the first time you’ve seen this error? (Y/N):y
Steps to replicate it:
from nc_py_api import *
nc = Nextcloud(nextcloud_url=“https://192.168.x.x”, npa_nc_cert=False, nc_auth_user=“xxx”>
conv_bot_test = “xxxxxx”
message = “”
msg_react = nc.talk.get_message_reactions(message=153, conversation=conv_bot_test)
print(msg_react) # ’ ^=^q^m’
nc.talk.react_to_message(153, ’ ^=^q^m’, conv_bot_test)
The output of your Nextcloud log in Admin > Logging or errors in nextcloud.log in /var/www/:
x
The output of your Apache/nginx/system log in /var/log/____
:
x
Your browser log if relevant (python output):
Traceback (most recent call last):
File "/home/xxx/bots/testbot/test.py", line 9, in <module>
nc.talk.react_to_message(153, ":)", conv_bot_test)
File "/home/xxx/.local/lib/python3.11/site-packages/nc_py_api/_talk_api.py", line 343, in react_to_message
r = self._session.ocs("POST", self._ep_base + f"/api/v1/reaction/{token}/{message_id}", params=params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/xxx/.local/lib/python3.11/site-packages/nc_py_api/_session.py", line 216, in ocs
return self._ocs(method, f"{quote(path)}?{urlencode(params, True)}", headers, data=data_bytes, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/xxx/.local/lib/python3.11/site-packages/nc_py_api/_session.py", line 236, in _ocs
check_error(response.status_code, info)
File "/home/xxx/.local/lib/python3.11/site-packages/nc_py_api/_exceptions.py", line 62, in check_error
raise NextcloudException(code, reason=codes(code).phrase, info=info)
nc_py_api._exceptions.NextcloudException: [400] Bad Request <request: method=POST, url=https://192.168.1.x.x/ocs/v2.php/apps/spreed/api/v1/reaction/xxx/153?reaction=%3A%29&format=json>