Hi Everyone,
Long time Dancer user, currently migrating a system over to Dancer2 from Dancer and not really into using Dancer2::Session::DBIC so I am converting some of the Dancer::Session::DBI over with what I need. I am reaching out because I am at a point where I don't know what else to do to make this work. It seems to be generating sessions into my database table but with no session_data, only id's. Right after I would login this error pops up.
Console:
Exception caught in 'core.app.after_request' filter: Hook error: flush() called outside streaming response at /home/scott/perl5/lib/perl5/Dancer2/Core/Role/DSL.pm line 76.
Web:
Internal Server Error
Exception caught in 'core.app.after_request' filter: Hook error: flush() called outside streaming response at /home/scott/perl5/lib/perl5/Dancer2/Core/Role/DSL.pm line 76.
at /home/scott/perl5/lib/perl5/Dancer2/Core/App.pm line 35.
at /home/scott/perl5/lib/perl5/Dancer2/Core/Role/Hookable.pm line 115.
I don't have a repo yet but a gist will work
Code:
https://gist.github.com/scottscreations/5bf8f3a027f328dc0733f6d3683ccb8e
Thanks,
Scott