laravel-debugbar icon indicating copy to clipboard operation
laravel-debugbar copied to clipboard

What is this stacked request?

Open ryanmortier opened this issue 8 months ago • 10 comments

Every time I hard reload, this stacked request shows up. As you can see it's an old request (the time). Have I turned something on by accident? How do I get rid of this?

Image

ryanmortier avatar Mar 04 '25 20:03 ryanmortier

http://phpdebugbar.com/docs/ajax-and-stack.html#stacked-data https://github.com/barryvdh/laravel-debugbar/blob/7fa0a6526e7b3e82e104a0995d289a638771a5db/tests/DebugbarBrowserTest.php#L129-L137

parallels999 avatar Mar 04 '25 21:03 parallels999

I don't think this was showing a few months ago. Has something changed?

ryanmortier avatar Mar 05 '25 13:03 ryanmortier

I think that is probably from your session, or it's a redirect. When you visit / and it redirects to maintanance, you actually have 2 requests, but never see the first. So that is stacked.

barryvdh avatar Mar 06 '25 08:03 barryvdh

I do have a redirect on the / route just to sign in but then I never hit that again.

Route::get('/', function () {
    Auth::login(User::first()); // just for local dev

    return Redirect::to(Filament::getPanel('maintenance')->getUrl());
});

ryanmortier avatar Mar 06 '25 13:03 ryanmortier

@barryvdh Is there a better way to empty the "stacked data" then to logout/login (destroy the session) ?

I have a multi-language website, / redirect to either /fr or /en On each subsequent webpage, the stack data will be shown. And if I go again on the root url, another "stacked" entry is created. The only way currently seems to destroy the session.

Clicking "clear" in the "request history" panel of the debugbar doesn't get rid of it (since it in the session I think)

felabrecque avatar Mar 06 '25 19:03 felabrecque

Which version of Debugbar and Laravel?

barryvdh avatar Mar 07 '25 13:03 barryvdh

Laravel: 10.48.28 Debugbar: 3.15.2

felabrecque avatar Mar 07 '25 14:03 felabrecque

I'm reopening because as of now this is completely unusable for me.

Image

My request starts at 6 (a hard reload). Something has broken in the last month or two.

Laravel: v11.44.1 Debugbar: v3.15.2

ryanmortier avatar Mar 13 '25 14:03 ryanmortier

Are you doing some custom session handling? Which session driver do you use?

barryvdh avatar Mar 13 '25 14:03 barryvdh

Nothing custom, using database driver.

edit: and sorry, I didn't mean to overstate the usability. I appreciate the package and it's usable, it's just an annoyance.

SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null
SESSION_SECURE_COOKIE=true

ryanmortier avatar Mar 13 '25 14:03 ryanmortier