How to resolve the error of test.Salesforce login?

420    Asked by DavidEDWARDS in SQL Server , Asked on Feb 7, 2023

 I am having a hard time during code retrieval from source org through ANT. I don't have proxy enabled and the username and password+security token is also correct but still I am getting below error


C:UsersxxxDownloadssalesforce_ant_41.0samplebuild.xml:34: Failed to login: Failed to send request to https://test.salesforce.com/services/Soap/u/41.0

Answered by Ishida Sugiyama

The fastest way to check the ant command error of test.salesforce login, try to execute ant -verbose in command. It will show you the error details.


For my case, I upgraded my JDK and I forgot to import the sandbox SSL cert into the new JVM, it threw "Failed to login" error whenever I tried to run ant deploy. What I did was - checked the verbose and found out the handshake failure, after I imported the cert, it worked.


Your Answer

Interviews

Parent Categories