Skip to content

Returning a promise from before_dispatch results in Inactivity timeout #2156

Answered by aimass
aimass asked this question in Q&A
Discussion options

You must be logged in to vote

This worked:

$c->app->routes->dispatch($c);

I put this where the "### WHAT CAN I CALL HERE..." comment is and it works in my case.

But this did not work:

$c->app->routes->continue($c)

Any ideas why? I would think that continue() would be the right call in a filter but maybe this is more like starting a new request. Does anybody know exactly why continue() doesn't work in this case?

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@aimass
Comment options

@aimass
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by aimass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants