Subject: | Random Loggin Successfull |
Date: | Tue, 16 Feb 2016 08:55:11 -0430 |
To: | bug-net-sugarcrm [...] rt.cpan.org |
From: | Joel Gómez <joelgomezb [...] gmail.com> |
Hi Again,
I tried this code:
use Net::SugarCRM;
use Data::Dumper;
package Test;
use Crypt::Digest::MD5 qw( :all );
our $login='admin';
our $pass=md5_hex('admin');
our $url='http://localhost/SugarCE/service/v4_1/rest.php';
package MyPackage;
my $s = Net::SugarCRM->new(url=>$Test::url, restuser=>$Test::login,
restpasswd=> $Test::pass
);
print Dumper($s);
And perfect login but i run it again (2, 3, 4 consecutives times) launch
this error:
$VAR1 =
'{"application":"net_sugarcrm","user_auth":{"password":"21232f297a57a5a743894a0e4a801fc3","user_name":"admin"}}';
2016/02/16 08:47:15 Error getting id <200 OK> fetching $VAR1 =
'{"name":"Invalid Login","number":10,"description":"Login attempt failed
please check the username and password"}';
2016/02/16 08:47:15 at /home/joelgomezb/perl5/lib/perl5/Net/SugarCRM.pm
line 356.
2016/02/16 08:47:15
Net::SugarCRM::_rest_request(Net::SugarCRM=HASH(0x2b41ad8), "login",
"{\"application\":\"net_sugarcrm\",\"user_auth\":{\"password\":\"21232f"...)
called at /home/joelgomezb/perl5/lib/perl5/Net/SugarCRM.pm line 418
2016/02/16 08:47:15 Net::SugarCRM::login(Net::SugarCRM=HASH(0x2b41ad8))
called at /home/joelgomezb/perl5/lib/perl5/Net/SugarCRM.pm line 314
2016/02/16 08:47:15
Net::SugarCRM::sessionid(Net::SugarCRM=HASH(0x2b41ad8)) called at
/home/joelgomezb/perl5/lib/perl5/Net/SugarCRM.pm line 586
2016/02/16 08:47:15
Net::SugarCRM::get_module_entries(Net::SugarCRM=HASH(0x2b41ad8), "Cases",
"") called at SugarCRM2.pl line 14
Error getting id <200 OK> fetching $VAR1 = '{"name":"Invalid
Login","number":10,"description":"Login attempt failed please check the
username and password"}';
at /home/joelgomezb/perl5/lib/perl5/Net/SugarCRM.pm line 356.
Net::SugarCRM::_rest_request(Net::SugarCRM=HASH(0x2b41ad8),
"login",
"{\"application\":\"net_sugarcrm\",\"user_auth\":{\"password\":\"21232f"...)
called at /home/joelgomezb/perl5/lib/perl5/Net/SugarCRM.pm line 418
Net::SugarCRM::login(Net::SugarCRM=HASH(0x2b41ad8)) called at
/home/joelgomezb/perl5/lib/perl5/Net/SugarCRM.pm line 314
Net::SugarCRM::sessionid(Net::SugarCRM=HASH(0x2b41ad8)) called at
/home/joelgomezb/perl5/lib/perl5/Net/SugarCRM.pm line 586
Net::SugarCRM::get_module_entries(Net::SugarCRM=HASH(0x2b41ad8),
"Cases", "") calle
Very random when it's login o not!!!
any suggestions??
THX..
--
www.joelgomez.org.ve
Linux User #435411