Trying to send a 'status 200' back to Stripe from a webhook, using D2
0.30000, perl 5.30.0 on Gentoo.
Using either:
status 200
Dancer2::Core::HTTP->status(200);
$self->app->response->status( '200' );
or indeed nothing (as D2 apparently sends a status anyway),
the result is:
Route exception: Undef did not pass type constraint "Num" (in
$self->{"status"}) at /usr/local/lib64/perl5/5.30.0/Dancer2/Core/DSL.pm
line 279 "Num" is a subtype of "LaxNum" "LaxNum" is a subtype of "Str"
"Str" is a subtype of "Value"
"Value" is a subtype of "Defined"
Undef did not pass type constraint "Defined" (in $self->{"status"})
"Defined" is defined as: (defined($_))
in /usr/local/lib64/perl5/5.30.0/Dancer2/Core/App.pm l. 1488
Cheers
Lyn
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users