You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught TypeError: Rollbar\Payload\Person::__construct(): Argument #4 ($extra) must be of type array, App\Models\User given, called in /var/www/vendor/rollbar/rollbar/src/DataBuilder.php on line 949 #175
[2025-04-25 13:25:45] local.ERROR: Uncaught TypeError: Rollbar\Payload\Person::__construct(): Argument #4 ($extra) must be of type array, App\Models\User given, called in /var/www/vendor/rollbar/rollbar/src/DataBuilder.php on line 949 and defined in /var/www/vendor/rollbar/rollbar/src/Payload/Person.php:18
Stack trace:
#0 /var/www/vendor/rollbar/rollbar/src/DataBuilder.php(949): Rollbar\Payload\Person->__construct('18', NULL, '[email protected]', Object(App\Models\User))
#1 /var/www/vendor/rollbar/rollbar/src/DataBuilder.php(380): Rollbar\DataBuilder->getPerson()
#2 /var/www/vendor/rollbar/rollbar/src/Config.php(798): Rollbar\DataBuilder->makeData('error', Object(Illuminate\Database\Eloquent\ModelNotFoundException), Array)
#3 /var/www/vendor/rollbar/rollbar/src/RollbarLogger.php(433): Rollbar\Config->getRollbarData('error', Object(Illuminate\Database\Eloquent\ModelNotFoundException), Array)
#4 /var/www/vendor/rollbar/rollbar/src/RollbarLogger.php(256): Rollbar\RollbarLogger->getPayload('c04def903df748b4890e65135ff05500', 'error', Object(Illuminate\Database\Eloquent\ModelNotFoundException), Array)
#5 /var/www/vendor/rollbar/rollbar/src/Handlers/ExceptionHandler.php(27): Rollbar\RollbarLogger->report('error', Object(Illuminate\Database\Eloquent\ModelNotFoundException), Array, true)
#6 [internal function]: Rollbar\Handlers\ExceptionHandler->handle(Object(Illuminate\Database\Eloquent\ModelNotFoundException))
#7 {main}
thrown {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Uncaught TypeError: Rollbar\\Payload\\Person::__construct(): Argument #4 ($extra) must be of type array, App\\Models\\User given, called in /var/www/vendor/rollbar/rollbar/src/DataBuilder.php on line 949 and defined in /var/www/vendor/rollbar/rollbar/src/Payload/Person.php:18
on a few occassions, I ignored it, simply assuming that it is #171, but it turned its not.
I experience the issue on rollbar/rollbar 4.1.1 and rollbar/rollbar-laravel 8.1.2.