Open andrewsolomon opened 7 months ago
I get this error when I try to curl http://localhost:3000/
, but when I hit /foo
, I get exactly what's expected.
That error is telling you that it's trying to use TT to render a 404 page, but there's no template available to satisfy that, and so TT throws an exception.
FYI, if you are running that test case directly from the command line, you won't have https available.
Let me know if this solves things for you!
FYI, if you are running that test case directly from the command line, you won't have https available.
Sorry Jason, that was a typo on my part :-) fixed.
Now, I realise that my expectations are based on old documentation:
https://metacpan.org/release/SUKRIA/Dancer2-0.10/view/lib/Dancer2/Manual.pod#forward
Where's the updated documentation on forward
?
Updated docs are here: https://metacpan.org/dist/Dancer2/view/lib/Dancer2/Manual/Keywords.pod#forward
Implementation details have changed since then. That's very, very old now ;-)
Sorry, I couldn't work out whether the bug is in Dancer2 or Template Toolkit. Any idea how to test Template Toolkit independently?
Context
Code to replicate the issue
To demonstrate the bug
and this is what appears in the logs:
To dodge the bug
Just comment out this line: