Skip Menu |

This queue is for tickets about the Catalyst-Model-REST CPAN distribution.

Report information
The Basics
Id: 71543
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Catalyst-Model-REST

People
Owner: KAARE [...] cpan.org
Requestors: dean [...] fragfest.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Doesnt handle 404 correctly?
Hi there By change i put the wrong url in to my model based on your Model::REST This is the error i receive from catalyst --- Caught exception in LanPOS::Controller::registration->initlan "Attribute (data) does not pass the type constraint because: Validation failed for 'HashRef' with value undef at /usr/share/perl5/Catalyst/Model/REST.pm line 84 --- my sub routine is basically --- sub get_events { my $self = shift; my $res = $self->get('lans', {}); my $code = $res->code; die "Couldn't get the lans list, code was $code" unless $code == 200; my $data = $res->data; --- Thank you for writing this module, it has been very helpful thus far!
If the response isn't consistent with the content-type (or there is none), it could fail when creating a response object. I've tried to make it more fault resistent there. Please try 0.24 from CPAN.