Nextcloud version: 29.0.7
Talk Server version: 19.0.9
There is a problem when a talk program logs an error message to the user:
Could not post message: Request failed with status code 500
The following error can also be seen in the log:
Exception hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/nextcloud/lib/private/Security/Crypto.php' line 149
More complete details of the log are as follows:
{
"reqId": "hbHaAbpmiKQYoLxZqWff",
"level": 3,
"time": "2024-09-25T19:45:48+03:30",
"remoteAddr": "212.86.84.121",
"user": "mammad",
"app": "no app in context",
"method": "POST",
"url": "/ocs/v2.php/apps/spreed/api/v1/chat/ry28mr9x",
"message": "hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/nextcloud/lib/private/Security/Crypto.php' line 149",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0",
"version": "29.0.7.1",
"exception": {
"Exception": "Exception",
"Message": "hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/nextcloud/lib/private/Security/Crypto.php' line 149",
"Code": 0,
"Trace": [
{
"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
"line": 184,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Route/Router.php",
"line": 331,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/nextcloud/ocs/v1.php",
"line": 66,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/nextcloud/ocs/v2.php",
"line": 23,
"args": [
"/var/www/nextcloud/ocs/v1.php"
],
"function": "require_once"
}
],
"File": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"Line": 170,
"Previous": {
"Exception": "ValueError",
"Message": "hash_hkdf(): Argument #2 ($key) cannot be empty",
"Code": 0,
"Trace": [
{
"file": "/var/www/nextcloud/lib/private/Security/Crypto.php",
"line": 149,
"function": "hash_hkdf"
},
{
"file": "/var/www/nextcloud/lib/private/Security/Crypto.php",
"line": 123,
"function": "decryptWithoutSecret",
"class": "OC\\Security\\Crypto",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/nextcloud/lib/private/Security/IdentityProof/Manager.php",
"line": 117,
"function": "decrypt",
"class": "OC\\Security\\Crypto",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/nextcloud/lib/private/Security/IdentityProof/Manager.php",
"line": 133,
"function": "retrieveKey",
"class": "OC\\Security\\IdentityProof\\Manager",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/notifications/lib/Push.php",
"line": 320,
"function": "getKey",
"class": "OC\\Security\\IdentityProof\\Manager",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/notifications/lib/Push.php",
"line": 192,
"function": "pushToDevice",
"class": "OCA\\Notifications\\Push",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/nextcloud/apps/notifications/lib/App.php",
"line": 99,
"function": "flushPayloads",
"class": "OCA\\Notifications\\Push",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Notification/Manager.php",
"line": 276,
"function": "flush",
"class": "OCA\\Notifications\\App",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/spreed/lib/Chat/ChatManager.php",
"line": 399,
"function": "flush",
"class": "OC\\Notification\\Manager",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/spreed/lib/Controller/ChatController.php",
"line": 254,
"function": "sendMessage",
"class": "OCA\\Talk\\Chat\\ChatManager",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 232,
"function": "sendMessage",
"class": "OCA\\Talk\\Controller\\ChatController",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 138,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
"line": 184,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Route/Router.php",
"line": 331,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/nextcloud/ocs/v1.php",
"line": 66,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/nextcloud/ocs/v2.php",
"line": 23,
"args": [
"/var/www/nextcloud/ocs/v1.php"
],
"function": "require_once"
}
],
"File": "/var/www/nextcloud/lib/private/Security/Crypto.php",
"Line": 149
},
"message": "hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/nextcloud/lib/private/Security/Crypto.php' line 149",
"exception": [],
"CustomMessage": "hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/nextcloud/lib/private/Security/Crypto.php' line 149"
},
"id": "66f43751a48a7"
}
Thank you for providing a solution for this error