UP-NextPush / server-app

UnifiedPush provider for Nextcloud - server application - Moved to https://codeberg.org/NextPush/uppush
GNU Affero General Public License v3.0
67 stars 8 forks source link

array_key_exists(): Argument #2 ($array) must be of type array, null given #20

Closed Bubu closed 2 years ago

Bubu commented 2 years ago

Found this exception in the logs:

{
  "reqId": "9d59oKXM8RvViz9tz1pU",
  "level": 3,
  "time": "2022-07-05T08:19:20+00:00",
  "remoteAddr": "89.204.139.201",
  "user": "--",
  "app": "index",
  "method": "GET",
  "url": "/index.php/apps/uppush/device/<uuid>",
  "message": "array_key_exists(): Argument #2 ($array) must be of type array, null given in file /usr/share/webapps/nextcloud/lib/public/AppFramework/Controller.php line 121",
  "userAgent": "okhttp/4.9.3",
  "version": "24.0.2.1",
  "exception": {
    "Exception": "Exception",
    "Message": "array_key_exists(): Argument #2 ($array) must be of type array, null given in file /usr/share/webapps/nextcloud/lib/public/AppFramework/Controller.php line 121",
    "Code": 0,
    "Trace": [
      {
        "file": "/usr/share/webapps/nextcloud/lib/private/AppFramework/App.php",
        "line": 172,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/usr/share/webapps/nextcloud/lib/private/Route/Router.php",
        "line": 298,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/usr/share/webapps/nextcloud/lib/base.php",
        "line": 1023,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/usr/share/webapps/nextcloud/index.php",
        "line": 36,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
    "Line": 165,
    "Previous": {
      "Exception": "TypeError",
      "Message": "array_key_exists(): Argument #2 ($array) must be of type array, null given",
      "Code": 0,
      "Trace": [
        {
          "file": "/usr/share/webapps/nextcloud/lib/public/AppFramework/Controller.php",
          "line": 121,
          "function": "array_key_exists"
        },
        {
          "file": "/usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 237,
          "function": "getResponderByHTTPHeader",
          "class": "OCP\\AppFramework\\Controller",
          "type": "->"
        },
        {
          "file": "/usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 133,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/usr/share/webapps/nextcloud/lib/private/AppFramework/App.php",
          "line": 172,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/usr/share/webapps/nextcloud/lib/private/Route/Router.php",
          "line": 298,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::"
        },
        {
          "file": "/usr/share/webapps/nextcloud/lib/base.php",
          "line": 1023,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->"
        },
        {
          "file": "/usr/share/webapps/nextcloud/index.php",
          "line": 36,
          "function": "handleRequest",
          "class": "OC",
          "type": "::"
        }
      ],
      "File": "/usr/share/webapps/nextcloud/lib/public/AppFramework/Controller.php",
      "Line": 121
    },
    "CustomMessage": "--"
  }
}