-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
When someone tries to access a file that doesn't exist in our app (.e.g https://app.test/build/assets/main-DXQ67tRB.css) and it returns a 404, an exception is logged:
Error /public/index.php in ?
Call to a member function getDomain() on null
/vendor/laravel/pulse/src/Recorders/Concerns/LivewireRoutes.php in TiMacDonald\Pulse\Recorders\ValidationErrors::resolveRoutePath at line 20
*/
protected function resolveRoutePath(Request $request): array
{
/** @var Route */
$route = $request->route();
$path = $route->getDomain().Str::start($route->uri(), '/');
$via = $route->getActionName();
if ($route->named('*livewire.update')) {
$snapshot = json_decode($request->input('components.0.snapshot'), flags: JSON_THROW_ON_ERROR);
resolveRoutePath
is executed before shouldIgnore
so we can't ignore it, but don't know if that would work either since it's not a route but a path to a resource. Should it return early in the closure and halt execution if route is null
?
zeinab-mofidi
Metadata
Metadata
Assignees
Labels
No labels