You need to sign in to do that
Don't have an account?
Invalid login error with WWW::Salesforce
Whike installing the WWW::Salesforce module from CPAN, I got an invalid login error from Salesforce.
I double checked the ID, password and security token are correct. These have been used with another application written in Ruby.
Any ideas why this module for Perl is failing?
Output from CPAN:
cpan[1]> install WWW::Salesforce
(lots of messages about getting and building)
Enter username: **********
Enter password: **********
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/WWW-Salesforce....ok 1/29INVALID_LOGIN: Invalid username or password or locked out. at t/WWW-Salesforce.t line 22
t/WWW-Salesforce....NOK 2/29
# Failed test 'Login test'
# at t/WWW-Salesforce.t line 23.
FAILED--Further testing stopped.
make: *** [test_dynamic] Error 9
CAPOEIRAB/WWW-Salesforce-0.11.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports CAPOEIRAB/WWW-Salesforce-0.11.tar.gz
Failed during this command:
CAPOEIRAB/WWW-Salesforce-0.11.tar.gz : make_test NO
Just double-checking, you're appending the security token to the password, right?
Was curious, so I just took a look at the source, the line that logs in to SFDC is
and the entire config file consists of
so if you're sure the credentials are correct, it's almost certain that you're not appending the token.
Yes, I made sure that the security token is appended.
Further, I compared it against the configuration file for the existing Ruby app that makes updates to SF:
salesforce_production:
adapter: activesalesforce
username: ron@redacted.com
password: passwordSECURITYTOKEN
The username and password I supplied to the Perl test script are exactly the same as in the config for the Ruby app. (And yes, I double checked to make sure that when I change the username and password in the Ruby app, differenct SF accounts receive the updated data.)