Re: [Catalyst] FastCGI: incomplete headers (0 bytes) received from server

2008-05-07 Thread Martin Ellison
The error is presumably because your fast cgi system has a timeout. Do you have some code that sometimes takes a long time to run? If it only happens about 1% of the time it may be normally just quicker than the limit, but occasionally going over. 2008/5/7 John Goulah [EMAIL PROTECTED]: On

Re: [Catalyst] Dispatching with Chained vs HTTP method

2008-05-07 Thread Toby Corkindale
On Wed, May 07, 2008 at 03:57:07PM +1000, Toby Corkindale wrote: [snip] $id = POST transaction $amount = GET /user/1/account_balance $amount2 = GET /user/2/account_balance PUT /user/1/account_balance/$amount-1 PUT /user/2/account_balance/$amount+1 Whoops, that should read: PUT

[Catalyst] Wikipedia article improvement?

2008-05-07 Thread Martin Ellison
The Wikipedia article on Catalyst ( http://en.wikipedia.org/wiki/Catalyst_%28software%29) could do with some improvement and updating. -- Regards, Martin ([EMAIL PROTECTED]) IT: http://methodsupport.com Personal: http://thereisnoend.org ___ List:

Re: [Catalyst] Dispatching with Chained vs HTTP method

2008-05-07 Thread Zbigniew Lukasiak
On Wed, May 7, 2008 at 7:57 AM, Toby Corkindale [EMAIL PROTECTED] wrote: Hi Adam, On Wed, May 07, 2008 at 03:30:12PM +1000, Adam Clarke wrote: On 07/05/2008, at 11:05 AM, Toby Corkindale wrote: Ah, I was thinking of transactions vs a REST API, eg: PUT

Re: [Catalyst] Dispatching with Chained vs HTTP method

2008-05-07 Thread Adam Clarke
On 07/05/2008, at 3:57 PM, Toby Corkindale wrote: On Wed, May 07, 2008 at 03:30:12PM +1000, Adam Clarke wrote: The solution suggested in Restful Web Services is to POST to a factory resource which creates you with a transaction resource. e.g. POST /transactions/account-transfer returns

Re: [Catalyst] Dispatching with Chained vs HTTP method

2008-05-07 Thread Toby Corkindale
On Wed, May 07, 2008 at 09:55:10AM +0200, Zbigniew Lukasiak wrote: On Wed, May 7, 2008 at 7:57 AM, Toby Corkindale [EMAIL PROTECTED] wrote: [snip] I wonder how one goes about implementing such a transaction on the server side.. One would not want to lock DB rows indefinitely, waiting for

Re: [Catalyst] Dispatching with Chained vs HTTP method

2008-05-07 Thread Toby Corkindale
On Wed, May 07, 2008 at 06:02:46PM +1000, Adam Clarke wrote: On 07/05/2008, at 3:57 PM, Toby Corkindale wrote: On Wed, May 07, 2008 at 03:30:12PM +1000, Adam Clarke wrote: The solution suggested in Restful Web Services is to POST to a factory resource which creates you with a transaction

[Catalyst] Strange UTF16 warning

2008-05-07 Thread Martin Ellison
I've got the same problem for the same reason (trying to return a JPEG). Presumably something thinks that it is getting text (Unicode) and picks up some special characters. Is there some equivalent of binmode for body? -- Regards, Martin ([EMAIL PROTECTED]) IT: http://methodsupport.com Personal:

Re: [Catalyst] Strange UTF16 warning

2008-05-07 Thread Martin Ellison
Sorry, my mailer did not quote the original post from Tue, 30 Oct 2007 17:10:07 -0800 I'm seeing warnings of the type UTF-16 surrogate 0xABCD in my logs that I'm not quite sure how to explain. I am familiar with the nature of the warning message, and I've tracked it to Catalyst::Engine-write --

Re: [Catalyst] Dispatching with Chained vs HTTP method

2008-05-07 Thread paddy
On Wed, May 07, 2008 at 08:38:18AM -0400, Garrett Goebel wrote: snip Also important is how to allow people to limit which sets of tuples and relationships are publically accessible. For production work the default should probably require the REST interfaces to be explicitly published.

[Catalyst] Catalyst / dbix-class / mysql / REST job

2008-05-07 Thread Mark Trostler
The job description is kinda crapy: http://jobs.perl.org/job/8624 But you can work in Sunnyvale, CA or Carslbad, CA. The backend in Catalyst/REST/DBIx::Class/MySQL. Frontends are currently command line/library using Moose and lots of AJAXy Javascript (using ExtJS - yah should be YUI

Re: [Catalyst] Catalyst / dbix-class / mysql / REST job

2008-05-07 Thread Christopher H. Laco
Mark Trostler wrote: The job description is kinda crapy: http://jobs.perl.org/job/8624 But you can work in Sunnyvale, CA or Carslbad, CA. The backend in Catalyst/REST/DBIx::Class/MySQL. Frontends are currently command line/library using Moose and lots of AJAXy Javascript (using ExtJS - yah

Re: [Catalyst] Anybody who fancies some LWP poking ...

2008-05-07 Thread Daniel McBrearty
Not sure who that's pointed at Matt, but if you mean me, sorry for that. In all honesty, if I could've worked out *what* needed fixing and where, I would have done so. What I did was at least try to indicate to people where the error was coming from and why, and what they might do temporarily in

Re: [Catalyst] Catalyst / dbix-class / mysql / REST job

2008-05-07 Thread Zbigniew Lukasiak
There were a few long threads on the subject of REST CRUD in Catalyst here. Maybe you would like to crowd source a bit - and make a competition for the code pieced that you need? Inspiration: http://www.ddj.com/architect/207404123?pgno=1 Cheers, Zbigniew On Wed, May 7, 2008 at 6:52 PM, Mark

RE: [Catalyst] FastCGI: incomplete headers (0 bytes) received fromserver

2008-05-07 Thread Ryan Pack
Thanks everyone for your replies. Turns out that this error had nothing to do with the problem I am trying to track down. I will post a new thread with a more appropriate subject line. Ryan Pack Programmer Genares Worldwide Reservations P. 817-722-2834 F. 817-442-0600

[Catalyst] Invalid session ids being generated

2008-05-07 Thread Ryan Pack
My Catalyst app is using Session::State::Cookie, Session::State::URI, and Session::Store::DBIC. We recently started using the param option in Session::State::URI. We were tacking the session id onto the base URL but now it is being included as a parameter. Anyways, when you first make a

RE: [Catalyst] Invalid session ids being generated

2008-05-07 Thread Ryan Pack
I forgot to include the error in the log: FastCGI: server /u/lxlib/BookingEngine/script/bookingengine_fastcgi.pl stderr: [error] Caught exception in engine DBIx::Class::Relationship::CascadeActions::update(): Can't update BookingEngine::Model::DBIC::BE::Session=HASH(0xd3f2620): row not found