activity icon indicating copy to clipboard operation
activity copied to clipboard

Object type is undefined

Open janvlug opened this issue 1 year ago • 2 comments

In the log I see thousands of this message:

{"reqId":"ZlhT360-U5JpRH92Fv4AbwAADxo","level":3,"time":"2024-05-30T10:24:32+00:00","remoteAddr":"a.b.c.d","user":"username","app":"activity","method":"GET","url":"/ocs/v2.php/apps/dashboard/api/v2/widget-items?widgets%5B%5D=activity","message":"Object type is undefined","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0","version":"28.0.5.1","exception":{"Exception":"OCP\RichObjectStrings\InvalidObjectExeption","Message":"Object type is undefined","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/RichObjectStrings/Validator.php","line":93,"function":"getDefinition","class":"OCP\RichObjectStrings\Definitions","type":"->"},{"file":"/var/www/nextcloud/lib/private/RichObjectStrings/Validator.php","line":80,"function":"validateParameter","class":"OC\RichObjectStrings\Validator","type":"->"},{"file":"/var/www/nextcloud/apps/activity/lib/GroupHelper.php","line":85,"function":"validate","class":"OC\RichObjectStrings\Validator","type":"->"},{"file":"/var/www/nextcloud/apps/activity/lib/GroupHelper.php","line":61,"function":"addEvent","class":"OCA\Activity\GroupHelper","type":"->"},{"file":"/var/www/nextcloud/apps/activity/lib/Data.php","line":248,"function":"addActivity","class":"OCA\Activity\GroupHelper","type":"->"},{"file":"/var/www/nextcloud/apps/activity/lib/Dashboard/ActivityWidget.php","line":161,"function":"get","class":"OCA\Activity\Data","type":"->"},{"file":"/var/www/nextcloud/apps/dashboard/lib/Controller/DashboardApiController.php","line":142,"function":"getItemsV2","class":"OCA\Activity\Dashboard\ActivityWidget","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getWidgetItemsV2","class":"OCA\Dashboard\Controller\DashboardApiController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"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":315,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/ocs/v1.php","line":65,"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/public/RichObjectStrings/Definitions.php","Line":677,"message":"Object type is undefined","exception":[],"CustomMessage":"Object type is undefined"},"id":"665853ee84829"}

[activity] Error: Object type is undefined GET /ocs/v2.php/apps/dashboard/api/v2/widget-items?widgets%5B%5D=activity from a.b.c.d by at 30 mei 2024 12:24:32

Version info: Nextcloud Hub 7 28.0.5 Activity: 2.20.0

janvlug avatar May 30 '24 10:05 janvlug

json log message:

{
  "reqId": "ZlhT360-U5JpRH92Fv4AbwAADxo",
  "level": 3,
  "time": "2024-05-30T10:24:32+00:00",
  "remoteAddr": "a.b.c.d",
  "user": "username",
  "app": "activity",
  "method": "GET",
  "url": "/ocs/v2.php/apps/dashboard/api/v2/widget-items?widgets%5B%5D=activity",
  "message": "Object type is undefined",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0",
  "version": "28.0.5.1",
  "exception": {
    "Exception": "OCP\\RichObjectStrings\\InvalidObjectExeption",
    "Message": "Object type is undefined",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/lib/private/RichObjectStrings/Validator.php",
        "line": 93,
        "function": "getDefinition",
        "class": "OCP\\RichObjectStrings\\Definitions",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/RichObjectStrings/Validator.php",
        "line": 80,
        "function": "validateParameter",
        "class": "OC\\RichObjectStrings\\Validator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/activity/lib/GroupHelper.php",
        "line": 85,
        "function": "validate",
        "class": "OC\\RichObjectStrings\\Validator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/activity/lib/GroupHelper.php",
        "line": 61,
        "function": "addEvent",
        "class": "OCA\\Activity\\GroupHelper",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/activity/lib/Data.php",
        "line": 248,
        "function": "addActivity",
        "class": "OCA\\Activity\\GroupHelper",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/activity/lib/Dashboard/ActivityWidget.php",
        "line": 161,
        "function": "get",
        "class": "OCA\\Activity\\Data",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/dashboard/lib/Controller/DashboardApiController.php",
        "line": 142,
        "function": "getItemsV2",
        "class": "OCA\\Activity\\Dashboard\\ActivityWidget",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 230,
        "function": "getWidgetItemsV2",
        "class": "OCA\\Dashboard\\Controller\\DashboardApiController",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 137,
        "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": 315,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/ocs/v1.php",
        "line": 65,
        "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/public/RichObjectStrings/Definitions.php",
    "Line": 677,
    "message": "Object type is undefined",
    "exception": [],
    "CustomMessage": "Object type is undefined"
  },
  "id": "665853ee84829"
}{
  "reqId": "ZlhT360-U5JpRH92Fv4AbwAADxo",
  "level": 3,
  "time": "2024-05-30T10:24:32+00:00",
  "remoteAddr": "83.87.39.90",
  "user": "jan",
  "app": "activity",
  "method": "GET",
  "url": "/ocs/v2.php/apps/dashboard/api/v2/widget-items?widgets%5B%5D=activity",
  "message": "Object type is undefined",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0",
  "version": "28.0.5.1",
  "exception": {
    "Exception": "OCP\\RichObjectStrings\\InvalidObjectExeption",
    "Message": "Object type is undefined",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/lib/private/RichObjectStrings/Validator.php",
        "line": 93,
        "function": "getDefinition",
        "class": "OCP\\RichObjectStrings\\Definitions",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/RichObjectStrings/Validator.php",
        "line": 80,
        "function": "validateParameter",
        "class": "OC\\RichObjectStrings\\Validator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/activity/lib/GroupHelper.php",
        "line": 85,
        "function": "validate",
        "class": "OC\\RichObjectStrings\\Validator",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/activity/lib/GroupHelper.php",
        "line": 61,
        "function": "addEvent",
        "class": "OCA\\Activity\\GroupHelper",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/activity/lib/Data.php",
        "line": 248,
        "function": "addActivity",
        "class": "OCA\\Activity\\GroupHelper",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/activity/lib/Dashboard/ActivityWidget.php",
        "line": 161,
        "function": "get",
        "class": "OCA\\Activity\\Data",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/dashboard/lib/Controller/DashboardApiController.php",
        "line": 142,
        "function": "getItemsV2",
        "class": "OCA\\Activity\\Dashboard\\ActivityWidget",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 230,
        "function": "getWidgetItemsV2",
        "class": "OCA\\Dashboard\\Controller\\DashboardApiController",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 137,
        "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": 315,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/ocs/v1.php",
        "line": 65,
        "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/public/RichObjectStrings/Definitions.php",
    "Line": 677,
    "message": "Object type is undefined",
    "exception": [],
    "CustomMessage": "Object type is undefined"
  },
  "id": "665853ee84829"
}

janvlug avatar May 30 '24 10:05 janvlug

https://github.com/nextcloud/activity/issues/1738#issuecomment-2274389629

joshtrichards avatar Aug 07 '24 21:08 joshtrichards

Closing due to no further info received to make this actionable. Chances are this has already been addressed in the relevant app.

joshtrichards avatar Nov 24 '24 15:11 joshtrichards