+ Start a Discussion
Ramesh Naidu PRamesh Naidu P 

how to resolve error 503 in salesforce API

how to resolve error 503 in salesforce API. please help me
salesforce mesalesforce me
this error 503  is Too many requests in an hour.
HTTP/1.1 400 Bad Request
Date: Fri, 22 May 2015 17:32:10 GMT
Set-Cookie: BrowserId=D_3feNw7RYmP4DA;Path=/;Domain=.salesforce.com;Expires=Tue, 21-Jul-2015 17:32:10 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked

[ {
  "errorCode" : "INVALID_ID_FIELD",
  "message" : "Invalid identifier: 0D5D0000000XZoHKAW"
} ]

Ramesh Naidu PRamesh Naidu P
i didn't get any response from salesforce. i had print curl information it gives the 503 status code
Ramesh Naidu PRamesh Naidu P
many requests is accepted in salesforce APi
salesforce mesalesforce me
take this one also....
public class AccountUpdater {

  public static void updateAccount(String id, String name) {

    //construct an HTTP request
    HttpRequest req = new HttpRequest();

    //send the request
    Http http = new Http();
    HttpResponse res = http.send(req);

    //check the response
    if (res.getStatusCode() == 200) {

      //update account
      Account acc = new Account(Id=id);
      acc.Description = res.getBody();
      update acc;
    } else {
      System.debug('Callout failed: ' + res);

Ramesh Naidu PRamesh Naidu P
$soap_request = '<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    <n1:login xmlns:n1="urn:partner.soap.sforce.com">

    $header = array(
        "Content-type: text/xml;charset=\"utf-8\"",
        "SOAPAction: login");
    $soap_do = curl_init();

    curl_setopt($soap_do, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($soap_do, CURLOPT_URL,            "https://login.salesforce.com/services/Soap/u/34.0" );
    curl_setopt($soap_do, CURLOPT_RETURNTRANSFER, true );
    curl_setopt($soap_do, CURLOPT_POST,           true );
    curl_setopt($soap_do, CURLOPT_POSTFIELDS,     $soap_request);
    curl_setopt($soap_do, CURLOPT_HTTPHEADER,     $header);

    $result = curl_exec($soap_do);
Ramesh Naidu PRamesh Naidu P
above code working some servers. its not working . it gives the 503 status
Ramesh Naidu PRamesh Naidu P
what is max number of requests servered by salesforce