502 Bad Gateway Table polling

No description
3 Replies
| Frozen Mind |
| Frozen Mind |OP4w ago
public static function table(Table $table): Table
{
return $table
->modifyQueryUsing(fn(Builder $query) => ...)
->columns(UserRequestTemplate::table())
->filters([])
->defaultSort('created_at', 'desc')
->actions([
ActionGroup::make([
Tables\Actions\ViewAction::make(),
Tables\Actions\EditAction::make(),
]),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
FormAction::make('Accept')
->modalHeading('Accept Request')
->color('success')
->requiresConfirmation()
->icon('heroicon-o-check-circle')
->form([
TextInput::make('password')
->label('Password')
->password()
->rules('current_password')
->required()
])->action(function ($record) {
...
})
]),
])->poll('10s');
}
public static function table(Table $table): Table
{
return $table
->modifyQueryUsing(fn(Builder $query) => ...)
->columns(UserRequestTemplate::table())
->filters([])
->defaultSort('created_at', 'desc')
->actions([
ActionGroup::make([
Tables\Actions\ViewAction::make(),
Tables\Actions\EditAction::make(),
]),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
FormAction::make('Accept')
->modalHeading('Accept Request')
->color('success')
->requiresConfirmation()
->icon('heroicon-o-check-circle')
->form([
TextInput::make('password')
->label('Password')
->password()
->rules('current_password')
->required()
])->action(function ($record) {
...
})
]),
])->poll('10s');
}
toeknee
toeknee4w ago
That's not a filament error but a timeout with the server, so you need to check why you are getting a 504. Dig down in what you are doing. Is there a lot of data and things are poorly optimised in your DB etc.
| Frozen Mind |
| Frozen Mind |OP4w ago
Thanks! I'll check it

Did you find this page helpful?