Re: [Catalyst] Bug in old Advent example of async/websockets code?

2015-02-23 Thread John Napiorkowski
Last I checked it worked however there's no version of this in the catalyst 
test repo.  If you can help me figure out how to bake a test for this (even if 
it needs to be an optional developer only test) I'd greatly appreciate it. 

 On Sunday, February 22, 2015 7:09 PM, Toby Corkindale t...@dryft.net 
wrote:
   

 Hi,
I've been trying to replicate the use of WebSockets in Catalyst, by
following the example from the Advent calendar a year and a bit ago.
ie.
https://github.com/perl-catalyst/2013-Advent-Staging/blob/master/Websocket-Echo/lib/MyApp/Controller/Root.pm

In my experience, it isn't actually working properly -- I get the
Echo Initiated message, but then an instant disconnect.

Looking at the code, I'm highly suspicious of the $hd variable -- it
doesn't get stored anywhere, and according to the AnyEvent docs, I
think that means it will get DESTROYed once it goes out of scope. ie.
Immediately.

That fits the behaviour I'm seeing, although I think I've had it work
for me randomly at times as well, so...  I don't know.

I wondered if anyone here has thoughts on the matter?

Cheers,
Toby

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


   ___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Bug in old Advent example of async/websockets code?

2015-02-23 Thread John Napiorkowski
try the code here: jjn1056/Perl-Catalyst-AsyncExample and let me know if that's 
busted, it would give me something to go on.
|   |
|   |  |   |   |   |   |   |
| jjn1056/Perl-Catalyst-AsyncExamplePerl-Catalyst-AsyncExample - maybe some 
sort of async with catalyst |
|  |
| View on github.com | Preview by Yahoo |
|  |
|   |

 ___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Error: You requested a stash, but one does not exist

2015-02-23 Thread John Napiorkowski
Johannes,
We're going to need a ton more info to help.  The likely reason is that about 9 
months ago the stash was moved to the middleware layer, which makes it context 
bound and you are asking for the stash in application scope.  We need to know 
stuff like what version you upgraded from and configuration info, etc.  How all 
the log trace looks up to the error is also needed.
Please review the changlog, upgrading and delta pods as well, since that might 
assist.
jnap 

 On Monday, February 23, 2015 3:14 AM, Johannes Kilian jo.kil...@gmx.de 
wrote:
   

 Hi there, I just set up a new virtual machine with WinServer 2012. I've 
installed Strawberry Perl 5.20.1 and installed all needed modules from CPAN. My 
Catalyst-Application starts up correctly (no error seen) as Catalyst Standalone 
Server. Trying to access via Webbrowser (http://localhost:3000) runs into an 
error: Caught exception in Engine: You requested a stash, but one does not 
exist at .\site\lib\Catalyst.pm line 517. The very same application runs 
without any complaints on my old VM (Win2003 Server, Strawberry Perl 5.18.0)  
Any ideas whats going wrong? Johannes
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


   ___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Error: You requested a stash, but one does not exist

2015-02-23 Thread Johannes Kilian
Hi there,



I just set up a new virtual machine with WinServer 2012. Ive installed Strawberry Perl 5.20.1 and installed all needed modules from CPAN.



My Catalyst-Application starts up correctly (no error seen) as Catalyst Standalone Server. Trying to access via Webbrowser (http://localhost:3000) runs into an error:



Caught exception in Engine: You requested a stash, but one does not exist at .sitelibCatalyst.pm line 517.



The very same application runs without any complaints on my old VM (Win2003 Server, Strawberry Perl 5.18.0)





Any ideas whats going wrong?



Johannes

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Where best to store database connection information?

2015-02-23 Thread Adam Witney

Thanks guys for all the helpful ideas!


From: abhishek jain [mailto:abhishek.netj...@gmail.com]
Sent: 18. februára 2015 6:27
To: 'The elegant MVC web framework'
Subject: Re: [Catalyst] Where best to store database connection information?

Hi,

But this seems a bit of a security
problem having the main password in a text file like this,
especially if it goes into git.


What i do is i will modify the password on production manually and successive 
update / pull will not modify the password,  and i will also not commit the 
change in git / svn. Barring this config change it is a bad habbit to modify 
anything on production, Let me know if someone disagrees.

Also  in case you need a solution where the config file is password protected 
not a part of main repository then you will need external svn repo i guess (in 
case of svn ) , might be a better svn / repo config question.
Thanks
Abhishek


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/