Support the ongoing development of Laravel.io →
posted 3 years ago
Horizon

In horizon dashboard after session is expired there are endless polling witch returns 401 error. It's possible to stop api calls after it's returns 4XX error or redirect to my login page ?

Steps To Reproduce:

  1. Add auth middleware in horizon config.
  2. Login to horizon dashboard (jobs/completed page).
  3. Delete session data. Every 3 second it's making api call witch returns 401 error.
0
moderator

Hello @khamazaspyan

As far as I know that is currently not possible. Maybe you can create a PR to https://github.com/laravel/horizon that detect the error and stops the polling + adds a message for the user that the polling it stopped to poll the data.

I think it would be a nice addition.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.