[Mojolicious] Re: Migrated to CENTOS now IO::Socket::SSL failing

2024-08-06 Thread Victor Sergeev
/Socket/SSL.pm'; > > > > > $VAR161 = 'Net/SSLeay.pm'; > > $VAR162 = '/var/home/tyeeapps/ > support.thetyee.ca/www/local/lib/perl5/x86_64-linux/Net/SSLeay.pm'; > > > Any ideas? I've tried reinstalling those modules in the sytem-wide pe

Re: [Mojolicious] Migrated to CENTOS now IO::Socket::SSL failing

2024-08-06 Thread Dotan Dimet
Hey Bryan, I think you need to install the development package for OpelSSL for your distro, in CENTOS you might want to run yum install -y openssl-devel and then try and install IO::Socket::SSL again with your local Perl From: mojolicious@googlegroups.com on behalf of Bryan Carney Date

Re: [Mojolicious] Migrated to CENTOS now IO::Socket::SSL failing

2024-08-06 Thread Alexander Karelas
I believe the forum has migrated here: https://github.com/mojolicious/mojo/discussions On 02/08/2024 22:43, Bryan Carney wrote: Anyone still alive here? I migrated everything from a Gentoo server to a CENTOS server. Inclding all local libraries, and for some reason an SSL connection is

[Mojolicious] Migrated to CENTOS now IO::Socket::SSL failing

2024-08-06 Thread Bryan Carney
version and same setup as on the old server! -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this

[Mojolicious] Re: How to post request body with Mojo::UserAgent?

2023-10-29 Thread jay m
hi, your code works for me with Mojolicious 8.12 -- i got the expected response back from postman-echo.com: { "args": {}, "data": "", "files": {}, "form": { "code": "whatever", "grant_type": &

[Mojolicious] How to post request body with Mojo::UserAgent?

2023-10-27 Thread Yuichi Tsunoda
"x-amzn-trace-id": "Root=1-653c253d-2bee01d92fa16ed279d4b219", "content-type": "application/x-www-form-urlencoded", "authorization": "Basic xx" }, "json": null, "url": "https://postman-echo.com/post&quo

Re: [Mojolicious] Is it possible to make Mojolicious::Plugin::DefaultHelpers::redirect_to method act same as nginx proxy_pass module?

2022-02-12 Thread Stefan Adams
9:27 AM Pavel Serikov wrote: > I need to redirect requests to particular IP address depending on > requested url. > > E.g. > example.com/foo -> 172.22.0.6:80 > example.com/bar -> 172.22.0.7:80 > etc. > > Is it possible with Mojolicious out-of-the-box? > > -- > Yo

[Mojolicious] Is it possible to make Mojolicious::Plugin::DefaultHelpers::redirect_to method act same as nginx proxy_pass module?

2022-02-07 Thread Pavel Serikov
I need to redirect requests to particular IP address depending on requested url. E.g. example.com/foo -> 172.22.0.6:80 example.com/bar -> 172.22.0.7:80 etc. Is it possible with Mojolicious out-of-the-box? -- You received this message because you are subscribed to the Google

Re: [Mojolicious] How to manage Mojo::Pg if database do not respond at all

2022-02-02 Thread Mail Delivery Subsystem
ntime env >>>> is: $config->{'environment'}\n} >>>> . qq{Verify correct >>>> setting in $conf->{'app_config'}\n}; >>>> >>>> $log->log

Re: [Mojolicious] Can I get a return value outside of Promise?

2022-02-02 Thread Mail Delivery Subsystem
michelmartin...@yahoo.com Le jeudi 5 août 2021 à 17:39:01 UTC+2, Vincent Tondellier a écrit : > Hi, > > > On 2021-08-04, 11:30:43 CEST Dingbing Liw wrote: > > I am refactoring my mojolicious app. > > Is there any way to use promise and keep the same return value? > &g

Re: [Mojolicious] Can I get a return value outside of Promise?

2021-08-05 Thread 'Vincent Tondellier' via Mojolicious
Hi, On 2021-08-04, 11:30:43 CEST Dingbing Liw wrote: > I am refactoring my mojolicious app. > Is there any way to use promise and keep the same return value? You can use async/await for this. See https://metacpan.org/dist/Mojolicious/view/lib/Mojolicious/Guides/Cookbook.pod#async/await

[Mojolicious] Can I get a return value outside of Promise?

2021-08-04 Thread Dingbing Liw
Hi, all. I am refactoring my mojolicious app. Is there any way to use promise and keep the same return value? For example: My original method: sub some_method { my $a = block_function_a(); my $b = block_function_b(); my $c = block_function_c(); ### for example many Mojo::Pg search

Re: [Mojolicious] Systemd "Can't locate Mojo/Base.pm in @INC"

2021-04-30 Thread Dan Book
method as lib::relative for creating arbitrary file paths relative to the current file: https://metacpan.org/pod/Path::This With an up to date Mojolicious, curfile can of course solve both these problems. -Dan On Fri, Apr 30, 2021 at 10:50 AM llaro...@gmail.com wrote: > Thanks to both of

Re: [Mojolicious] Systemd "Can't locate Mojo/Base.pm in @INC"

2021-04-30 Thread llaro...@gmail.com
16:41:48 vl-vm-sr824.lb.videotron.ca systemd[1]: start request > repeated too quickly for ccdapi.service > > Apr 28 16:41:48 vl-vm-sr824.lb.videotron.ca systemd[1]: Failed to start > MY CCDAPI LAB. > > -- Subject: Unit ccdapi.service has failed > > -- Defined-By: systemd >

Re: [Mojolicious] Systemd "Can't locate Mojo/Base.pm in @INC"

2021-04-29 Thread Dmitry L.
for ccdapi.service > Apr 28 16:41:48 vl-vm-sr824.lb.videotron.ca systemd[1]: Failed to start MY > CCDAPI LAB. > -- Subject: Unit ccdapi.service has failed > -- Defined-By: systemd > > > So I've double-checked Mojo::Base exists ... > > [ccdapi@vl-vm-sr824 ~]

Re: [Mojolicious] Systemd "Can't locate Mojo/Base.pm in @INC"

2021-04-29 Thread Dan Book
Yes, or install and use https://metacpan.org/pod/lib::relative On Thu, Apr 29, 2021 at 1:55 PM llaro...@gmail.com wrote: > "curfile" is not exported by the Mojo::File module > > should I update Mojolicious ? > > On Thursday, 29 April 2021 at 09:45:05 UTC-4 llaro...@gma

Re: [Mojolicious] Systemd "Can't locate Mojo/Base.pm in @INC"

2021-04-29 Thread llaro...@gmail.com
"curfile" is not exported by the Mojo::File module should I update Mojolicious ? On Thursday, 29 April 2021 at 09:45:05 UTC-4 llaro...@gmail.com wrote: > Thanks, I'll give it a try today ! Looks like FindBin but Mojolicious' way > > On Wednesday, 28 April 2021 at 20

Re: [Mojolicious] Systemd "Can't locate Mojo/Base.pm in @INC"

2021-04-29 Thread llaro...@gmail.com
Thanks, I'll give it a try today ! Looks like FindBin but Mojolicious' way On Wednesday, 28 April 2021 at 20:55:21 UTC-4 gri...@gmail.com wrote: > You have to add the path that contains the Methods directory, not the > Methods directory itself. > > If it's deplo

Re: [Mojolicious] Systemd "Can't locate Mojo/Base.pm in @INC"

2021-04-28 Thread Dan Book
You have to add the path that contains the Methods directory, not the Methods directory itself. If it's deployed relative to your script, consider adding it like in this example: https://metacpan.org/pod/Mojolicious::Guides::Growing#Script # add directory script is in use lib cu

Re: [Mojolicious] Systemd "Can't locate Mojo/Base.pm in @INC"

2021-04-28 Thread llaro...@gmail.com
api.service >> holdoff time over, scheduling restart. >> Apr 28 16:41:48 vl-vm-sr824.lb.videotron.ca systemd[1]: start request >> repeated too quickly for ccdapi.service >> Apr 28 16:41:48 vl-vm-sr824.lb.videotron.ca systemd[1]: Failed to start >> MY CCDAPI LAB. >>

Re: [Mojolicious] Systemd "Can't locate Mojo/Base.pm in @INC"

2021-04-28 Thread Dan Book
On Wed, Apr 28, 2021 at 5:28 PM llaro...@gmail.com wrote: > And I have added the path with "use lib qw(/my/path/) such as > > [ccdapi@vl-vm-sr824 ~]$ head ./VM01/PROD/v1/ccdapi.pl > use lib qw(/srv/ccdapi/perl5/lib/perl5/); > use Mojolicious::Lite; > Make sure to remove t

Re: [Mojolicious] Systemd "Can't locate Mojo/Base.pm in @INC"

2021-04-28 Thread Dan Book
d[1]: Failed to start > MY CCDAPI LAB. > -- Subject: Unit ccdapi.service has failed > -- Defined-By: systemd > > > So I've double-checked Mojo::Base exists ... > > [ccdapi@vl-vm-sr824 ~]$ find . | grep 'Mojo.*Base.pm' > ./VM01/PROD/perl5/lib/perl5/Mojo/Base

[Mojolicious] Systemd "Can't locate Mojo::Base in @INC"

2021-04-28 Thread llaro...@gmail.com
l5/lib/perl5/Mojo/Base.pm ./VM01/perl5/lib/perl5/Mojo/Base.pm ./temp/report/bin/lib/Mojo/Base.pm ./.cpan/build/Mojolicious-7.37-yGj97y/blib/lib/Mojo/Base.pm ./.cpan/build/Mojolicious-7.37-yGj97y/lib/Mojo/Base.pm ./.perlbrew/libs/perl-5.24.0@ccdapi/lib/perl5/Mojo/Base.pm ./perl5/lib/perl5/Mojo/Base.pm An

[Mojolicious] Systemd "Can't locate Mojo/Base.pm in @INC"

2021-04-28 Thread llaro...@gmail.com
.pm ./temp/report/bin/lib/Mojo/Base.pm ./.cpan/build/Mojolicious-7.37-yGj97y/blib/lib/Mojo/Base.pm ./.cpan/build/Mojolicious-7.37-yGj97y/lib/Mojo/Base.pm ./.perlbrew/libs/perl-5.24.0@ccdapi/lib/perl5/Mojo/Base.pm ./perl5/lib/perl5/Mojo/Base.pm And I have added the path with "use lib qw(/my/

Re: [Mojolicious] multiple concurrent event loops

2021-02-19 Thread Dan Book
://github.com/mojolicious/mojo/discussions -Dan On Fri, Feb 19, 2021 at 6:01 PM Felipe Gasper wrote: > Hello, > > In a PR thread yesterday Sebastian mentioned that Mojo allows > multiple concurrent event loops. > > When and why would someone want su

[Mojolicious] multiple concurrent event loops

2021-02-19 Thread Felipe Gasper
"Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/EED46BD6-1A44-4B7C-B5C9-50A4D276D17B%40felipegasper.com.

[Mojolicious] Re: GitHub Discussions

2020-12-19 Thread Sebastian Riedel
Since everybody seems to like GitHub Discussions so far, we are going to use that as our default forum for a bit. And https://forum.mojolicious.org will redirect to it. -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious"

Re: [Mojolicious] find comments (Mojo::Dom)

2020-12-09 Thread Lars Madsen
gt; > -- > You received this message because you are subscribed to a topic in the > Google Groups "Mojolicious" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/mojolicious/mtNMaldt6qI/unsubscribe. > To unsubscribe from this group and al

[Mojolicious] find comments (Mojo::Dom)

2020-12-09 Thread dal...@gmail.com
is message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mojolic

[Mojolicious] GitHub Discussions

2020-12-08 Thread Sebastian Riedel
GitHub added a new feature for discussions. It could be a decent alternative to Google Groups. We are going to test it for a bit to see how it goes. Maybe give it a try with your next question. https://github.com/mojolicious/mojo/discussions -- sebastian -- You received this message

[Mojolicious] Re: Using something like HTTP::Exception for exception handling

2020-12-07 Thread Robert Rothenberg
As per discussion in https://github.com/mojolicious/mojo/issues/1622, one can use something like $c->reply->exception('Division by zero!')->rendered(400) On Friday, November 27, 2020 at 8:54:33 AM UTC Robert Rothenberg wrote: > I should be more specific. In a

Re: [Mojolicious] Optimistic Framework hopes

2020-11-27 Thread Stefan Adams
Mojolicious is a fantastic framework and the very popular Mojo::Pg <https://docs.mojolicious.org/Mojo/Pg> will absolutely have you excel at your Postgresql work. Indeed, read the tutorials and guides -- they have all the answers. The documentation is thorough and precise. I also ver

[Mojolicious] Re: Using something like HTTP::Exception for exception handling

2020-11-27 Thread Robert Rothenberg
gt;>> `reply.exception` helper to use a specific template/layout when there are >>> errors? >>> >> >> >> https://docs.mojolicious.org/Mojolicious/Guides/Rendering#Rendering-exception-and-not_found-pages >> >> -- >> sebastian >> >

Re: [Mojolicious] Hypnotoad ? Required

2020-11-26 Thread Dan Book
roxy seem like preferred setup or Elzar for > Windows > > I guess I'll go down the hypnotoad path and see where it takes me > Thanks > > On Thursday, November 26, 2020 at 11:07:01 AM UTC-8 Scotticles wrote: > >> https://docs.mojolicious.org/Mojolicious/Guides/Cookbook#DEP

Re: [Mojolicious] Hypnotoad ? Required

2020-11-26 Thread bs.machine...@gmail.com
ess I'll go down the hypnotoad path and see where it takes me >> Thanks >> >> On Thursday, November 26, 2020 at 11:07:01 AM UTC-8 Scotticles wrote: >> >>> https://docs.mojolicious.org/Mojolicious/Guides/Cookbook#DEPLOYMENT >>> >>> On Thu, Nov

Re: [Mojolicious] Hypnotoad ? Required

2020-11-26 Thread Scott H
Elzar for > Windows > > I guess I'll go down the hypnotoad path and see where it takes me > Thanks > > On Thursday, November 26, 2020 at 11:07:01 AM UTC-8 Scotticles wrote: > >> https://docs.mojolicious.org/Mojolicious/Guides/Cookbook#DEPLOYMENT >> >> On

Re: [Mojolicious] Hypnotoad ? Required

2020-11-26 Thread bs.machine...@gmail.com
So Hypnotoad or Apache mod_proxy seem like preferred setup or Elzar for Windows I guess I'll go down the hypnotoad path and see where it takes me Thanks On Thursday, November 26, 2020 at 11:07:01 AM UTC-8 Scotticles wrote: > https://docs.mojolicious.org/Mojolicious/Guides/Cookbook#DE

Re: [Mojolicious] Hypnotoad ? Required

2020-11-26 Thread Scott H
https://docs.mojolicious.org/Mojolicious/Guides/Cookbook#DEPLOYMENT On Thu, Nov 26, 2020 at 11:55 AM bs.machine...@gmail.com < bs.machinemanagem...@gmail.com> wrote: > Not sure I have this right. > Is hypnotoad required to use mobolicious, or can I use Apache? > > -- > You

[Mojolicious] Hypnotoad ? Required

2020-11-26 Thread bs.machine...@gmail.com
Not sure I have this right. Is hypnotoad required to use mobolicious, or can I use Apache? -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojoliciou

[Mojolicious] Re: Using something like HTTP::Exception for exception handling

2020-11-26 Thread Robert Rothenberg
emplate/layout when there are >> errors? >> > > > https://docs.mojolicious.org/Mojolicious/Guides/Rendering#Rendering-exception-and-not_found-pages > > -- > sebastian > -- You received this message because you are subscribed to the Google Groups "Mojolic

[Mojolicious] Re: Using something like HTTP::Exception for exception handling

2020-11-25 Thread Sebastian Riedel
> > Likewise, is a plugin or documented method for overriding the > `reply.exception` helper to use a specific template/layout when there are > errors? > https://docs.mojolicious.org/Mojolicious/Guides/Rendering#Rendering-exception-and-not_found-pages -- sebastian -- Yo

[Mojolicious] Using something like HTTP::Exception for exception handling

2020-11-25 Thread Robert Rothenberg
because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/d67

Re: [Mojolicious] Re: perlbrew fails, IO::Socket::SSL, perhaps my paths or @INC ?

2020-11-23 Thread Andrew
ngs: 1:00:55 - Commit & Bash's Exclamation Mark Error 1:01:38 - Empty Folders and Git 1:02:09 - Perl 7 Announcement! 1:02:31 - Things not covered: 1:02:35 - Branches 1:02:54 - Gitlab & Continuous Integration - Original Message - From: Michael W. J. West To: moj

Re: [Mojolicious] Re: perlbrew fails, IO::Socket::SSL, perhaps my paths or @INC ?

2020-11-22 Thread Michael W. J. West
ich cpanm`) >> >> If the shebang of cpanm looks like '/usr/bin/env perl', it should be >> compatible with perlbrew, in termss of how >> version-switching works. If the shebang of cpanm looks like >> '/usr/bin/perl', or any path that pins to a particualr i

Re: [Mojolicious] Re: perlbrew fails, IO::Socket::SSL, perhaps my paths or @INC ?

2020-11-22 Thread Michael W. J. West
perlbrew. No mather what perlbrew version you > switched to, that 'cpanm' command always > install modules to one single place and is unrelated to perlbrew,, > basically. > > If that seems to be the case, you could try invoking `perlbrew > install-cpanm`, which should down

[Mojolicious] Re: perlbrew fails, IO::Socket::SSL, perhaps my paths or @INC ?

2020-11-22 Thread gugod
a copy cpanm and save it right next to `perlbrew` executable. usually here: ~/perl5/perlbrew/bin/cpanm the shebang line of this one is slightly modified so it should be compatible with how perlbrew do version-switching . -- You received this message because you are subscribed to the

[Mojolicious] Optimistic Framework hopes

2020-11-22 Thread bs.machine...@gmail.com
obile interfaces as well. I'll be going through the turorials, but also like to hear first hand suggestions for understanding the framework. Best, Bret Stern -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this grou

Re: [Mojolicious] perlbrew fails, IO::Socket::SSL, perhaps my paths or @INC ?

2020-11-21 Thread Andrew
ain. Good luck! =). - Original Message - From: Michael W. J. West To: Mojolicious Sent: Friday, November 20, 2020 6:34 PM Subject: [Mojolicious] perlbrew fails, IO::Socket::SSL, perhaps my paths or @INC ? I want to use perlbrew, but it fails. success with system perl: perl -

[Mojolicious] Re: perlbrew fails, IO::Socket::SSL, perhaps my paths or @INC ?

2020-11-20 Thread Michael W. J. West
> -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.g

[Mojolicious] Re: perlbrew fails, IO::Socket::SSL, perhaps my paths or @INC ?

2020-11-20 Thread Sebastian Riedel
Publishing logs from our IRC channel is against the rules. I'm just giving you a warning for now, please don't do that again. -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and s

Re: [Mojolicious] Problem with hypnotoad

2020-11-20 Thread Joseph Fridy
d will increase the count of processes by one. Apparently > forever. > > regards, > > Joe Fridy > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send

[Mojolicious] perlbrew fails, IO::Socket::SSL, perhaps my paths or @INC ?

2020-11-20 Thread Michael W. J. West
t http://www.perl.org/, the Perl Home Page. westmj@penguin:~$ perl -Mojo -E 'say g("mojolicious.org")->dom->at("title")->text' Mojolicious - Perl real-time web framework westmj@penguin:~$ perlbrew switch perl-5.32.0 westmj@penguin:~$ perl -Mojo -E 'say

Re: [Mojolicious] Problem with hypnotoad

2020-11-20 Thread Joseph Fridy
Fridy -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.go

Re: [Mojolicious] Problem with hypnotoad

2020-11-20 Thread Joseph Fridy
orked from it - request handlers should > retrieve a new connection from your connection manager so they can connect > anew if needed). > > -Dan > > On Thu, Nov 19, 2020 at 4:57 PM Joseph Fridy wrote: > >> I have recently transitioned from solo development to beta testing fo

Re: [Mojolicious] Problem with hypnotoad

2020-11-19 Thread Dan Book
have recently transitioned from solo development to beta testing for a > Mojolicious::Lite application. Upon this transition, I switched from my > casual use of morbo to hypnotoad. In order to not change my nginx > configuration, I had hypnotoad listen on port 3000. The application > ap

Re: [Mojolicious] Problem with hypnotoad

2020-11-19 Thread Scott H
hypnotoad /home/scott/mojoapp/script /myapp KillMode=process WorkingDirectory=/home/scott/mojoapp [Install] WantedBy=multi-user.target On Thu, Nov 19, 2020 at 2:57 PM Joseph Fridy wrote: > I have recently transitioned from solo development to beta testing for a > Mojolicious::Lite appli

[Mojolicious] Problem with hypnotoad

2020-11-19 Thread Joseph Fridy
I have recently transitioned from solo development to beta testing for a Mojolicious::Lite application. Upon this transition, I switched from my casual use of morbo to hypnotoad. In order to not change my nginx configuration, I had hypnotoad listen on port 3000. The application appeared and I

Re: [Mojolicious] Suggestions how to avoid "Useless use of private variable in void context" ?

2020-11-16 Thread Dan Book
>> > There is this hint in the FAQ about keeping a strong reference to the >> transaction object $tx around, so that the message "Transaction already >> destroyed" does not appear in the logs: >> > >> > >> https://docs.mojolicious.org/Mojolicious/Gui

Re: [Mojolicious] Suggestions how to avoid "Useless use of private variable in void context" ?

2020-11-16 Thread Dan Book
> On Nov 16, 2020, at 8:08 AM, Edward Baudrez > wrote: > > > > Hello list > > > > There is this hint in the FAQ about keeping a strong reference to the > transaction object $tx around, so that the message "Transaction already > destroyed" does not appe

Re: [Mojolicious] Suggestions how to avoid "Useless use of private variable in void context" ?

2020-11-16 Thread Felipe Gasper
round, so that the message "Transaction already > destroyed" does not appear in the logs: > > https://docs.mojolicious.org/Mojolicious/Guides/FAQ#What-does-Transaction-already-destroyed-mean > > However, that yields a warning, viz. "Useless use of private variable

[Mojolicious] Suggestions how to avoid "Useless use of private variable in void context" ?

2020-11-16 Thread Edward Baudrez
Hello list There is this hint in the FAQ about keeping a strong reference to the transaction object $tx around, so that the message "Transaction already destroyed" does not appear in the logs: https://docs.mojolicious.org/Mojolicious/Guides/FAQ#What-does-Transaction-already-dest

RE: [Mojolicious] Re: csrf vs testing

2020-11-05 Thread dcook
was advised to ensure CSRF protection as well as secure strict cookies. David Cook Software Engineer Prosentient Systems 72/330 Wattle St Ultimo, NSW 2007 Australia Office: 02 9212 0899 Online: 02 8005 0595 From: mojolicious@googlegroups.com On Behalf Of Sebastian Riedel Sent

Re: [Mojolicious] Re: csrf vs testing

2020-11-05 Thread Lars Madsen
; You received this message because you are subscribed to a topic in the > Google Groups "Mojolicious" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/mojolicious/Cngym3QNeQs/unsubscribe. > To unsubscribe from this group and all it

[Mojolicious] Re: csrf vs testing

2020-11-03 Thread Sebastian Riedel
These CSRF protection features are mostly legacy features these days for backwards compatibility. Now we have SameSite cookies, to which modern browsers default. -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubs

[Mojolicious] csrf vs testing

2020-11-03 Thread dal...@gmail.com
This might be an obvious question, but I haven't found a good answer I'm rewriting our old webapplications into Mojolicious. Goes just fine. Might as well add csrf protection (exactly when is csrf tokens recommended?) But then how do we test with csrf protection (via $v = $v->

[Mojolicious] I need some help to dig into Mojo::Pg::PubSub

2020-11-01 Thread Nacho B
}, 'pg' => $VAR1->{'pg'}, 'dbh' => bless( {}, 'DBI::db' ), 'handle' => \*Mojo::Pg::Database::__ANONIO__, 'listen' =&

Re: [Mojolicious] Re: Mojo::Log and UTF-8

2020-10-31 Thread Dan Book
8 and I want see nice messages instead of >>> ХабР>>> >> >> UTF-8 *is* bytes. If you are encoding already encoded UTF-8 then you are >> double encoding. >> >> -- >> sebastian >> > -- > You received this message because you are subs

Re: [Mojolicious] Re: Mojo::Log and UTF-8

2020-10-31 Thread kon...@gmail.com
and I want see nice messages instead of ХабР>> > > UTF-8 *is* bytes. If you are encoding already encoded UTF-8 then you are > double encoding. > > -- > sebastian > -- You received this message because you are subscribed to the Google Groups "Mojolicious"

Re: [Mojolicious] Re: Mojo::Log and UTF-8

2020-10-31 Thread kon...@gmail.com
ady encoded UTF-8 then you are > double encoding. > > -- > sebastian > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+uns

Re: [Mojolicious] Re: Mojo::Log and UTF-8

2020-10-31 Thread Sebastian Riedel
lready encoded UTF-8 then you are double encoding. -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.

Re: [Mojolicious] Re: Mojo::Log and UTF-8

2020-10-31 Thread kon...@gmail.com
Mojo::Log; >>>> my $log = new Mojo::Log; >>>> print "Просто принт\n"; >>>> $log->info('тест лога'); >>>> === cut mojolog === >>>> >>>> yields fine results on all my servers but one. >>>> >

Re: [Mojolicious] Cancel in-flight HTTP request?

2020-10-26 Thread Felipe Gasper
error from the client logic? I’ve looked over the ones that seem like they might be related, but I’ve not found it. Thank you both! cheers, -Felipe -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group

RE: [Mojolicious] Re: Ways of rendering a stream

2020-10-25 Thread dcook
Thanks for your reply, Sebastian. After I sent my email, I figured that the drain callback must be the only way. I just had to brush off the Node.js memories and then it all made enough sense. I think it was just confusing because a lot of Mojolicious code can be written in a direct style

Re: [Mojolicious] Cancel in-flight HTTP request?

2020-10-23 Thread Felipe Gasper
response to you that that was what was going on there. (And my mojo isn’t new enough to have the nifty new unhandled-rejection warning.) I’ll look into this (and Sebastian’s as well). Thank you! -FG -- You received this message because you are subscribed to the Google Groups "M

Re: [Mojolicious] Cancel in-flight HTTP request?

2020-10-23 Thread Dmitry L.
romise doesn't have `completed` method your are calling You have to build Mojo::Transaction via $ua->build_tx and do ->completed on it -- //wbr, Dmitry L. -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe

Re: [Mojolicious] Cancel in-flight HTTP request?

2020-10-23 Thread Sebastian Riedel
You can set a response error on the transaction to cancel it safely. That's what the Mojolicious tests use. -- sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails f

Re: [Mojolicious] Cancel in-flight HTTP request?

2020-10-23 Thread Felipe Gasper
>> doesn’t appear to affect the underlying HTTP request.) >> >>Thank you! >> >> cheers, >> -Felipe >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Mojolicious" group. >> To unsub

Re: [Mojolicious] Cancel in-flight HTTP request?

2020-10-23 Thread Dmitry L.
he promise, of course, can be pre-resolved/rejected, but that > doesn’t appear to affect the underlying HTTP request.) > > Thank you! > > cheers, > -Felipe > > -- > You received this message because you are subscribed to the Google Groups > "Mojol

[Mojolicious] Cancel in-flight HTTP request?

2020-10-23 Thread Felipe Gasper
! cheers, -Felipe -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web vi

[Mojolicious] Re: Ways of rendering a stream

2020-10-23 Thread Sebastian Riedel
> > Typically, with a stream, you'd just write the HTTP headers, and then just > start writing out your content. I don't understand why it's so challenging > with Mojolicious. I figured finalizing the response headers would be what I > needed, but now I have no id

[Mojolicious] Ways of rendering a stream

2020-10-23 Thread David Cook
Hi all, I've read through all the documentation that I can find, and I'm having trouble understanding how Mojolicious renders streams. I have seen https://docs.mojolicious.org/Mojolicious/Guides/Rendering#Streaming, but is the drain callback really the only solution? It's

[Mojolicious] Re: How to "connect" embedded user agent to application being tested?

2020-10-22 Thread Sebastian Riedel
s with its own Mojo::UserAgent instance as an attribute. Then make the full service base URL configurable and just set it to $app->foo_service->ua->server->url. Or similar... you get the idea. -- sebastian -- You received this message because you are subscribed to the Google G

[Mojolicious] How to "connect" embedded user agent to application being tested?

2020-10-22 Thread Edward Baudrez
- use Mojo::Base -strict; use Test::Mojo; use Test::More; { package MyApp; use Mojo::Base 'Mojolicious'; sub startup { my $self = shift; $self->routes->get('/welcome' => sub { shift-&

Re: [Mojolicious] How to manage Mojo::Pg if database do not respond at all

2020-10-13 Thread Nacho B
\n} >>> . qq{Verify correct >>> setting in $conf->{'app_config'}\n}; >>> >>> $log->logdie($msg); >>> } >>> else { >>>

Re: [Mojolicious] How to manage Mojo::Pg if database do not respond at all

2020-10-11 Thread Mike Lieman
# didn't >> $log->debug("DB PING: $conf->{'db'} is up"); >> return $MOJOMYSQL; >> }; >> >> } # sub mojomysql >> >> On Thu, Oct 8, 2020 at 2:44 AM Nacho B wrote: >> >>&

Re: [Mojolicious] How to manage Mojo::Pg if database do not respond at all

2020-10-11 Thread Mike Lieman
$log->logdie($msg); >> } >> else { >> # didn't >> $log->debug("DB PING: $conf->{'db'} is up"); >> return $MOJOMYSQL; >> }; >> >> } # su

Re: [Mojolicious] How to manage Mojo::Pg if database do not respond at all

2020-10-11 Thread Nacho B
and everything is >> great. >> >> But I do not how to manage the case in which database server is down and >> no response is arriving. >> >> I presume that I should insert a timeout somewhere, in the promise, but I >> do not know how. >> >>

Re: [Mojolicious] Trouble with Mojolicious::Guides::Grow

2020-10-10 Thread Dan Book
This is not a perl module, it's a documentation page that comes with the Mojolicious distribution. You can install it by installing any module in that distribution, such as Mojolicious. -Dan On Sat, Oct 10, 2020 at 4:39 PM marckp wrote: > > Hello community, > > I am new to M

[Mojolicious] Trouble with Mojolicious::Guides::Grow

2020-10-10 Thread marckp
Hello community, I am new to Mojolicious. My os is centos 8. I'm having difficulty installing Mojolicious::Guides::Grow. The neither install commands succeed: > cpanm Mojolicious ! Finding Mojolicious::Guides::Growing on capnmtadb failed. ! Finding Mojolicious::Guides::Growing () o

Re: [Mojolicious] How to manage Mojo::Pg if database do not respond at all

2020-10-08 Thread Mike Lieman
wn and > no response is arriving. > > I presume that I should insert a timeout somewhere, in the promise, but I > do not know how. > > > Nacho B. > > -- > You received this message because you are subscribed to the Google Groups > "Mojolicious"

[Mojolicious] How to manage Mojo::Pg if database do not respond at all

2020-10-07 Thread Nacho B
this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/m

[Mojolicious] Re: With Mojo::IOLoop's delay, timer, and recurring, can I use them in a promises's "then" clause?

2020-09-30 Thread Heiko Jansen
he job (of > the job id in step 2). > 6. Will test for the job result's values against my expected values (part > of Test::More). > > Step 3 is the reason for me to want to plant a delay in the 'then()' > section of the promise in step 1. > > > > > On Frid

[Mojolicious] Re: With Mojo::IOLoop's delay, timer, and recurring, can I use them in a promises's "then" clause?

2020-09-25 Thread Gordon Dollarnanda
t; hi, guys, > > Been reading up > https://docs.mojolicious.org/Mojo/IOLoop/Delay > https://docs.mojolicious.org/Mojolicious/Guides/Cookbook > and a few threads in the group. > > Apologies if i had missed this in advance but with Mojo::IOLoop's delay, > timer, and r

[Mojolicious] With Mojo::IOLoop's delay, timer, and recurring, can I use them in a promises's "then" clause?

2020-09-25 Thread Gordon Dollarnanda
hi, guys, Been reading up https://docs.mojolicious.org/Mojo/IOLoop/Delay https://docs.mojolicious.org/Mojolicious/Guides/Cookbook and a few threads in the group. Apologies if i had missed this in advance but with Mojo::IOLoop's delay, timer, and recurring, can I use them in a promises&#x

[Mojolicious] Re: Deprecating or Transferring Mojo::ACME

2020-09-22 Thread joel.a...@gmail.com
> Joel > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit

Re: [Mojolicious] Re: web cam websocket

2020-09-15 Thread Felipe Gasper
dshake. Chrome shows a console error with the response code. A 404, for example, yields: Error during WebSocket handshake: Unexpected response code: 404 -FG -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this

Re: [Mojolicious] Re: web cam websocket

2020-09-15 Thread Sebastian Riedel
> > An HTTP-level error response--maybe 426--would probably be most sensible. > What error would common browsers give in that case? -- Sebastian -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from

Re: [Mojolicious] Re: web cam websocket

2020-09-15 Thread Felipe Gasper
> On Sep 15, 2020, at 9:30 AM, Sebastian Riedel wrote: > > Given this, should Mojo even send a response? Or if it does, should it at > least warn “failed to negotiate subprotocol; sending handshake response > anyway”? > > So you want Mojolicious to cause a TCP l

Re: [Mojolicious] Re: web cam websocket

2020-09-15 Thread Sebastian Riedel
> > Given this, should Mojo even send a response? Or if it does, should it at > least warn “failed to negotiate subprotocol; sending handshake response > anyway”? > So you want Mojolicious to cause a TCP level connection error instead of letting the handshake fail properly? Th

Re: [Mojolicious] Re: web cam websocket

2020-09-15 Thread Felipe Gasper
er.com: >> That seems an odd error from Chrome, if that’s the fix .. was the browser >> sending a subprotocol in the handshake? >> >> -F >> >>>> On Sep 14, 2020, at 07:37, Mikhail wrote: >>>> >>> Thanks! Forever ♥ Mojolicious! >

  1   2   3   4   5   6   7   8   9   10   >