Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object type is undefined #1694

Open
janvlug opened this issue May 30, 2024 · 2 comments
Open

Object type is undefined #1694

janvlug opened this issue May 30, 2024 · 2 comments

Comments

@janvlug
Copy link

janvlug commented May 30, 2024

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
Copy link
Author

janvlug commented May 30, 2024

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"
}

@joshtrichards
Copy link
Member

#1738 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants