When posting I get a 500 error.
<img width="2514" height="109" alt="Image" src…="https://github.com/user-attachments/assets/76a631b6-06a8-4102-9f1b-5600e1e30118" />
> {
> "reqId": "Bb3ltmuBtJeqrcaVuTkU",
> "level": 3,
> "time": "2026-05-14T13:07:02+00:00",
> "remoteAddr": "84.9.49.38",
> "user": "b.murphy",
> "app": "teamhub",
> "method": "POST",
> "url": "/apps/teamhub/api/v1/teams/rcPvKFOZf6yFN3qiKSQvklhprJL31uC/messages",
> "scriptName": "/index.php",
> "message": "Failed to create message",
> "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36",
> "version": "33.0.3.2",
> "exception": {
> "Exception": "Exception",
> "Message": "Failed to create message: Circle not found",
> "Code": 0,
> "Trace": [
> {
> "file": "/var/www/html/custom_apps/teamhub/lib/Controller/MessageController.php",
> "line": 56,
> "function": "createMessage",
> "class": "OCA\\TeamHub\\Service\\MessageService",
> "type": "->",
> "args": [
> "*** sensitive parameters replaced ***"
> ]
> },
> {
> "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
> "line": 205,
> "function": "createMessage",
> "class": "OCA\\TeamHub\\Controller\\MessageController",
> "type": "->",
> "args": [
> "*** sensitive parameters replaced ***"
> ]
> },
> {
> "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
> "line": 118,
> "function": "executeController",
> "class": "OC\\AppFramework\\Http\\Dispatcher",
> "type": "->",
> "args": [
> {
> "__class__": "OCA\\TeamHub\\Controller\\MessageController"
> },
> "createMessage"
> ]
> },
> {
> "file": "/var/www/html/lib/private/AppFramework/App.php",
> "line": 153,
> "function": "dispatch",
> "class": "OC\\AppFramework\\Http\\Dispatcher",
> "type": "->",
> "args": [
> {
> "__class__": "OCA\\TeamHub\\Controller\\MessageController"
> },
> "createMessage"
> ]
> },
> {
> "file": "/var/www/html/lib/private/Route/Router.php",
> "line": 321,
> "function": "main",
> "class": "OC\\AppFramework\\App",
> "type": "::",
> "args": [
> "OCA\\TeamHub\\Controller\\MessageController",
> "createMessage",
> {
> "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
> },
> {
> "_route": "teamhub.message.createmessage",
> "teamId": "*** sensitive parameters replaced ***"
> }
> ]
> },
> {
> "file": "/var/www/html/lib/base.php",
> "line": 1155,
> "function": "match",
> "class": "OC\\Route\\Router",
> "type": "->",
> "args": [
> "/apps/teamhub/api/v1/teams/rcPvKFOZf6yFN3qiKSQvklhprJL31uC/messages"
> ]
> },
> {
> "file": "/var/www/html/index.php",
> "line": 25,
> "function": "handleRequest",
> "class": "OC",
> "type": "::",
> "args": []
> }
> ],
> "File": "/var/www/html/custom_apps/teamhub/lib/Service/MessageService.php",
> "Line": 135,
> "message": "Failed to create message",
> "exception": "{\"class\":\"Exception\",\"message\":\"Failed to create message: Circle not found\",\"code\":0,\"file\":\"/var/www/html/custom_apps/teamhub/lib/Service/MessageService.php:135\",\"trace\":\"#0 /var/www/html/custom_apps/teamhub/lib/Controller/MessageController.php(56): OCA\\TeamHub\\Service\\MessageService->createMessage('rcPvKFOZf6yFN3q...', 'Monkfield and V...', '**5ft & 6ft Viv...', 'normal', 'normal', NULL)\\n#1 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(205): OCA\\TeamHub\\Controller\\MessageController->createMessage('rcPvKFOZf6yFN3q...', 'Monkfield and V...', '**5ft & 6ft Viv...', 'normal', 'normal', NULL)\\n#2 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(118): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\TeamHub\\Controller\\MessageController), 'createMessage')\\n#3 /var/www/html/lib/private/AppFramework/App.php(153): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\TeamHub\\Controller\\MessageController), 'createMessage')\\n#4 /var/www/html/lib/private/Route/Router.php(321): OC\\AppFramework\\App::main('OCA\\\\TeamHub\\\\Con...', 'createMessage', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\\n#5 /var/www/html/lib/base.php(1155): OC\\Route\\Router->match('/apps/teamhub/a...')\\n#6 /var/www/html/index.php(25): OC::handleRequest()\\n#7 {main}\"}",
> "CustomMessage": "Failed to create message"
> }
> }
> {
> "reqId": "Bb3ltmuBtJeqrcaVuTkU",
> "level": 3,
> "time": "2026-05-14T13:07:02+00:00",
> "remoteAddr": "84.9.49.38",
> "user": "b.murphy",
> "app": "teamhub",
> "method": "POST",
> "url": "/apps/teamhub/api/v1/teams/rcPvKFOZf6yFN3qiKSQvklhprJL31uC/messages",
> "scriptName": "/index.php",
> "message": "Error creating message - ",
> "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36",
> "version": "33.0.3.2",
> "exception": {
> "Exception": "OCA\\Circles\\Exceptions\\CircleNotFoundException",
> "Message": "Circle not found",
> "Code": 404,
> "Trace": [
> {
> "file": "/var/www/html/apps/circles/lib/Db/CircleRequest.php",
> "line": 392,
> "function": "getItemFromRequest",
> "class": "OCA\\Circles\\Db\\CircleRequestBuilder",
> "type": "->",
> "args": [
> {
> "__class__": "OCA\\Circles\\Db\\CoreQueryBuilder"
> }
> ]
> },
> {
> "file": "/var/www/html/apps/circles/lib/Service/CircleService.php",
> "line": 514,
> "function": "getCircle",
> "class": "OCA\\Circles\\Db\\CircleRequest",
> "type": "->",
> "args": [
> "*** sensitive parameters replaced ***",
> {
> "__class__": "OCA\\Circles\\Model\\FederatedUser"
> },
> {
> "__class__": "OCA\\Circles\\Model\\Probes\\CircleProbe"
> }
> ]
> },
> {
> "file": "/var/www/html/apps/circles/lib/CirclesManager.php",
> "line": 344,
> "function": "getCircle",
> "class": "OCA\\Circles\\Service\\CircleService",
> "type": "->",
> "args": [
> "*** sensitive parameters replaced ***",
> "*** sensitive parameters replaced ***"
> ]
> },
> {
> "file": "/var/www/html/custom_apps/teamhub/lib/Service/MessageService.php",
> "line": 113,
> "function": "getCircle",
> "class": "OCA\\Circles\\CirclesManager",
> "type": "->",
> "args": [
> "*** sensitive parameters replaced ***"
> ]
> },
> {
> "file": "/var/www/html/custom_apps/teamhub/lib/Controller/MessageController.php",
> "line": 56,
> "function": "createMessage",
> "class": "OCA\\TeamHub\\Service\\MessageService",
> "type": "->",
> "args": [
> "*** sensitive parameters replaced ***"
> ]
> },
> {
> "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
> "line": 205,
> "function": "createMessage",
> "class": "OCA\\TeamHub\\Controller\\MessageController",
> "type": "->",
> "args": [
> "*** sensitive parameters replaced ***"
> ]
> },
> {
> "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
> "line": 118,
> "function": "executeController",
> "class": "OC\\AppFramework\\Http\\Dispatcher",
> "type": "->",
> "args": [
> {
> "__class__": "OCA\\TeamHub\\Controller\\MessageController"
> },
> "createMessage"
> ]
> },
> {
> "file": "/var/www/html/lib/private/AppFramework/App.php",
> "line": 153,
> "function": "dispatch",
> "class": "OC\\AppFramework\\Http\\Dispatcher",
> "type": "->",
> "args": [
> {
> "__class__": "OCA\\TeamHub\\Controller\\MessageController"
> },
> "createMessage"
> ]
> },
> {
> "file": "/var/www/html/lib/private/Route/Router.php",
> "line": 321,
> "function": "main",
> "class": "OC\\AppFramework\\App",
> "type": "::",
> "args": [
> "OCA\\TeamHub\\Controller\\MessageController",
> "createMessage",
> {
> "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
> },
> {
> "_route": "teamhub.message.createmessage",
> "teamId": "*** sensitive parameters replaced ***"
> }
> ]
> },
> {
> "file": "/var/www/html/lib/base.php",
> "line": 1155,
> "function": "match",
> "class": "OC\\Route\\Router",
> "type": "->",
> "args": [
> "/apps/teamhub/api/v1/teams/rcPvKFOZf6yFN3qiKSQvklhprJL31uC/messages"
> ]
> },
> {
> "file": "/var/www/html/index.php",
> "line": 25,
> "function": "handleRequest",
> "class": "OC",
> "type": "::",
> "args": []
> }
> ],
> "File": "/var/www/html/apps/circles/lib/Db/CircleRequestBuilder.php",
> "Line": 93,
> "message": "Error creating message - ",
> "exception": "{\"class\":\"OCA\\Circles\\Exceptions\\CircleNotFoundException\",\"message\":\"Circle not found\",\"code\":404,\"file\":\"/var/www/html/apps/circles/lib/Db/CircleRequestBuilder.php:93\",\"trace\":\"#0 /var/www/html/apps/circles/lib/Db/CircleRequest.php(392): OCA\\Circles\\Db\\CircleRequestBuilder->getItemFromRequest(Object(OCA\\Circles\\Db\\CoreQueryBuilder))\\n#1 /var/www/html/apps/circles/lib/Service/CircleService.php(514): OCA\\Circles\\Db\\CircleRequest->getCircle('rcPvKFOZf6yFN3q...', Object(OCA\\Circles\\Model\\FederatedUser), Object(OCA\\Circles\\Model\\Probes\\CircleProbe))\\n#2 /var/www/html/apps/circles/lib/CirclesManager.php(344): OCA\\Circles\\Service\\CircleService->getCircle('rcPvKFOZf6yFN3q...', NULL)\\n#3 /var/www/html/custom_apps/teamhub/lib/Service/MessageService.php(113): OCA\\Circles\\CirclesManager->getCircle('rcPvKFOZf6yFN3q...')\\n#4 /var/www/html/custom_apps/teamhub/lib/Controller/MessageController.php(56): OCA\\TeamHub\\Service\\MessageService->createMessage('rcPvKFOZf6yFN3q...', 'Monkfield and V...', '**5ft & 6ft Viv...', 'normal', 'normal', NULL)\\n#5 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(205): OCA\\TeamHub\\Controller\\MessageController->createMessage('rcPvKFOZf6yFN3q...', 'Monkfield and V...', '**5ft & 6ft Viv...', 'normal', 'normal', NULL)\\n#6 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(118): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\TeamHub\\Controller\\MessageController), 'createMessage')\\n#7 /var/www/html/lib/private/AppFramework/App.php(153): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\TeamHub\\Controller\\MessageController), 'createMessage')\\n#8 /var/www/html/lib/private/Route/Router.php(321): OC\\AppFramework\\App::main('OCA\\\\TeamHub\\\\Con...', 'createMessage', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)\\n#9 /var/www/html/lib/base.php(1155): OC\\Route\\Router->match('/apps/teamhub/a...')\\n#10 /var/www/html/index.php(25): OC::handleRequest()\\n#11 {main}\"}",
> "CustomMessage": "Error creating message - "
> }
> }
<img width="2880" height="1752" alt="Image" src="https://github.com/user-attachments/assets/eaed97f1-ce23-4764-9d88-ab6f097af10e" />