MikeG
MikeG
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
Thank you for getting me on the right path @toeknee ❤️
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
Fixed the issue, was completely not related to filament.. I adapted the base template view on my application which created a specific edge case...
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
You'd think it would be fully infrastructure related, but then again, if I hit those routes when im not authenticated, it works fine (i.e it goes to the filament login page for that panel) ... And its working fine on Dev which is the EXACT same infra setup (through Laravel Vapor)
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
So its not related to the data itself perse
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
Locally, I AM able to load up the admin panel even with the production database
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
@toeknee Ok you've already been major help ❤️ You gave me the idea to hook up my local machine to the data on the production server
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
And as you can see from this code above, its just a normal panel :/ I dont see anything that would truely be querying SQL. Perhaps authenticate?
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
Our production data is much larger ofcourse, so it must be something related to SQL. But then again, if I remove all resources on the panel, it still doesnt work. So its not coming from a resource
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
Ye so this is also a rabbit hole i've gone down. Mainly because, on our dev server (using the exact same infra) its working fine (both those central panels). Its only broken on Production
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
really appriciate it
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
Thx for replying btw ❤️
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
Ye we use Sentry, which also doesnt pick it up 😭 It seems completely infrastructure related because of it just not picking up any of the logging, but its weird that it only happens when your logged in and only on these 2 filament panels that are on our central domain and does not impact any of our tenant aware panels
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
Any other debugging ideas by any chance? I've ran out of options @toeknee and am desperate 😂
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
So i'v made a middleware and set it at the very beginning, somehow that's not even being hit
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
Oh, also, IT DOES hit login. Only after logging in it will fail (doesnt matter which resource you visit)
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
If it helps:
public function panel(Panel $panel): Panel
{
return $panel
->id('partner')
->path('partner')
->authGuard('partner')
->colors([
'primary' => Color::Amber,
])
->brandName('Partners')
->login()
->discoverResources(in: app_path('Filament/Partner/Resources'), for: 'App\\Filament\\Partner\\Resources')
->discoverPages(in: app_path('Filament/Partner/Pages'), for: 'App\\Filament\\Partner\\Pages')
->pages([
Pages\Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/Partner/Widgets'), for: 'App\\Filament\\Partner\\Widgets')
->widgets([
])
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
]);
}
public function panel(Panel $panel): Panel
{
return $panel
->id('partner')
->path('partner')
->authGuard('partner')
->colors([
'primary' => Color::Amber,
])
->brandName('Partners')
->login()
->discoverResources(in: app_path('Filament/Partner/Resources'), for: 'App\\Filament\\Partner\\Resources')
->discoverPages(in: app_path('Filament/Partner/Pages'), for: 'App\\Filament\\Partner\\Pages')
->pages([
Pages\Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/Partner/Widgets'), for: 'App\\Filament\\Partner\\Widgets')
->widgets([
])
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
]);
}
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
Just cant seem to figure this one out due to basically not logging opportunities
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
It's causing big damage and headache as our its our main admin panel & affiliate marketing portals that are down 😦
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
Only on these 2 panels though on the central domain, the 2 endpoints (login & register) that don't use filament work fine
30 replies
FFilament
Created by MikeG on 5/23/2024 in #❓┊help
Desperately trying to fix gateway timeout on central filament panels
Just times out after the aws API gateway timeout limit
30 replies