function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Angry PandaAngry Panda 

REST API not responding?

My php app that has been working fine for months is down today. 

 try {
        $mylogin = $mySforceConnection->login($sfuser, $sfpass.$sftoken);    
    } catch (Exception $e){
         $result['exception'] = $e;
    }

$result is now returning:
"exception": {
    "faultstring": "Could not connect to host",
    "faultcode": "HTTP"
}

If I enter "http://soap.sforce.com/" in my browser I get host not found.  It's not just me, http://downforeveryone.com/soap.sforce.com/ says it's down for everyone.

Is the API really down?  Workbench works fine for me.

 
Best Answer chosen by Angry Panda
Daniel BallingerDaniel Ballinger
Are you getting a specific error message back? It might be related to Salesforce gradually removing TLS 1.0 support. 

See Salesforce disabling TLS 1.0 (https://help.salesforce.com/apex/HTViewSolution?id=000221207)

All Answers

Daniel BallingerDaniel Ballinger
You should be sending you initial login requests to https://login.salesforce.com/services/Soap/c/24.0/. The API version can be changed if required.

Where did you get the URL "http://soap.sforce.com/" from? As far as I know this is only used in the namespaces of the WSDL.

Finally, it might be worth checking trust.salesforce.com (http://trust.salesforce.com/) for any known issues.
Angry PandaAngry Panda
I'm using the php toolkit which handles the login.  It's been working for the last few months just fine.  I haven't seen that there has been an update to the toolkit.

Yes, I found soap.sforce.com in the php toolkit so thought to check if that was working.
Daniel BallingerDaniel Ballinger
Are you getting a specific error message back? It might be related to Salesforce gradually removing TLS 1.0 support. 

See Salesforce disabling TLS 1.0 (https://help.salesforce.com/apex/HTViewSolution?id=000221207)
This was selected as the best answer