F
Filament3mo ago
MikeG

Vapor timeout on 1 panel

Hey, I'm super stuck on an issue and can't seem to figure out what it is... I'm using laravel vapor, and I'm using filament for my entire project. I have multiple panels which all work, except for my central admin panel for managing everything. It used to be working but now suddenly (somehow) broke. After investigating, it seems Lambda is timing out the request
2024-03-31T15:44:44.402Z 49a7709a-4e3e-4127-ac0e-b9787df6c84b Task timed out after 60.06 seconds
2024-03-31T15:44:44.402Z 49a7709a-4e3e-4127-ac0e-b9787df6c84b Task timed out after 60.06 seconds
I havn't really changed anything on the central filament panel side of things, and it's happening to all routs associated with that panel. Even the Dashboard one which has no widgets or anything. I'll include the entire panel provider config below, any ideas on how to further debug this :/?
class CentralPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->id('central')
->path('central-admin')
->colors([
'primary' => Color::Amber,
])
->authGuard('admin')
->discoverResources(in: app_path('Filament/Central/Resources'), for: 'App\\Filament\\Central\\Resources')
->discoverPages(in: app_path('Filament/Central/Pages'), for: 'App\\Filament\\Central\\Pages')
->pages([
Pages\Dashboard::class,
])
->navigationItems([

NavigationItem::make('Vapor UI')
->url('/vapor-ui', shouldOpenInNewTab: true)
->group('System Tools')
->sort(1),

NavigationItem::make('Telescope')
->url('/telescope', shouldOpenInNewTab: true)
->group('System tools')
->sort(2),
])
->plugins([
BreezyCore::make()
->myProfile(
shouldRegisterUserMenu: true, // Sets the 'account' link in the panel User Menu (default = true)
shouldRegisterNavigation: true, // Adds a main navigation item for the My Profile page (default = false)
navigationGroup: 'Profile Settings', // Sets the navigation group for the My Profile page (default = null)
hasAvatars: false, // Enables the avatar upload form component (default = false)
slug: 'my-profile'
)
->enableTwoFactorAuthentication()
])
->login()
//->discoverWidgets(in: app_path('Filament/Central/Widgets'), for: 'App\\Filament\\Central\\Widgets')
->widgets([
Widgets\AccountWidget::class,
Widgets\FilamentInfoWidget::class,
])
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
]);
}
}
class CentralPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->id('central')
->path('central-admin')
->colors([
'primary' => Color::Amber,
])
->authGuard('admin')
->discoverResources(in: app_path('Filament/Central/Resources'), for: 'App\\Filament\\Central\\Resources')
->discoverPages(in: app_path('Filament/Central/Pages'), for: 'App\\Filament\\Central\\Pages')
->pages([
Pages\Dashboard::class,
])
->navigationItems([

NavigationItem::make('Vapor UI')
->url('/vapor-ui', shouldOpenInNewTab: true)
->group('System Tools')
->sort(1),

NavigationItem::make('Telescope')
->url('/telescope', shouldOpenInNewTab: true)
->group('System tools')
->sort(2),
])
->plugins([
BreezyCore::make()
->myProfile(
shouldRegisterUserMenu: true, // Sets the 'account' link in the panel User Menu (default = true)
shouldRegisterNavigation: true, // Adds a main navigation item for the My Profile page (default = false)
navigationGroup: 'Profile Settings', // Sets the navigation group for the My Profile page (default = null)
hasAvatars: false, // Enables the avatar upload form component (default = false)
slug: 'my-profile'
)
->enableTwoFactorAuthentication()
])
->login()
//->discoverWidgets(in: app_path('Filament/Central/Widgets'), for: 'App\\Filament\\Central\\Widgets')
->widgets([
Widgets\AccountWidget::class,
Widgets\FilamentInfoWidget::class,
])
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
]);
}
}
2 Replies
MikeG
MikeG3mo ago
At this point I'm just hoping someone has any additional ideas for debugging, because I cant really log anything Also additional info, not happening on my Dev environement.... Even though its the same code and infrastructure....
mike
mike2mo ago
@MikeG - Is this on the Dashboard view or on a List view? What does your vapor.yml look like? Have you tried installing Laravel Telescope? You may need to add an index somewhere.