title: A non-HTTP 200 response was received (400) for URL https://developerservices2.apple.com/services/xxx
body: <p>Has someone run into this problem in Xcode? </p>
  
  <p>I was trying to run a sample iOS project on real device with personal team. with automatically manage signing on. But Xcode show the error: </p>
  
  <blockquote>
    <p>Communication with Apple failed
    A non-HTTP 200 response was received (400) for URL <a href="https://developerservices2.apple.com/services/QH65B2/ios/submitDevelopmentCSR.action?clientId=xxxxxxxx" rel="nofollow noreferrer">https://developerservices2.apple.com/services/QH65B2/ios/submitDevelopmentCSR.action?clientId=xxxxxxxx</a></p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/PT8nE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PT8nE.png" alt=""></a></p>
  
  <p>At first I thought this is a problem with apple's server. But 4 days later I still have this problem in my Xcode.</p>
  
  <p>There are similar topics on apple developer forum but with no replies</p>
  
  <p>here is the request failed detail</p>
  
  <blockquote>
    <p>2018-11-29 02:00:01 +0000 IDEProvisioningLedgerEntry: 2018-11-29
    02:00:01 +0000 IDEProvisioningLedgerEntry: Sending request
    7D28B80A-3C7B-4535-A776-92FB191DF18B to
    <a href="https://developerservices2.apple.com/services/QH65B2/ios/submitDevelopmentCSR.action?clientId=xxxxxxxx" rel="nofollow noreferrer">https://developerservices2.apple.com/services/QH65B2/ios/submitDevelopmentCSR.action?clientId=xxxxxxxx</a>
    for account weizhou.xxx@xxx.com. Payload: {
        Accept = "text/x-xml-plist";
        "Accept-Encoding" = "gzip, deflate";
        "Content-Length" = 1516;
        "Content-Type" = "text/x-xml-plist";
        DSESSIONID = 177fh3khme0oc4ih6aqiqjrplffc4ntjniqpiifj9hlfll77puo6;
        "User-Agent" = Xcode;
        "X-Apple-App-Info" = "com.apple.gs.xcode.auth";
        "X-Apple-GS-Token" = "AAAABLwIAAAAAFv9R0QRDWdzLnhjb2RlLmF1dGi9ALpO7vMavQV+BpusdOu2LPR9H0ZfEWnrOA/LVa6umyhuVLw0Qlp+S+0pECPe3Ag/87je9/r1yX0kaiU3aZXBfC7lLzrO1Uyqw6RBXzUKAE3RylC/yyR6amg6M0xFcHTQ2NUNGBST6UB6E7ABqQF970AuMVFE";
        "X-Apple-I-Client-Time" = "2018-11-29T02:00:01Z";
        "X-Apple-I-Identity-Id" = "001813-08-84bec2e6-c49c-468f-b046-5c73b7098776";
        "X-Apple-I-Locale" = "en_CN";
        "X-Apple-I-MD" = "AAAABQAAABDtg6G3vHzGPwm3p4Xf/gxUAAAAAQ==";
        "X-Apple-I-MD-LU" = 5E67C8EC865A7D1B5D2D9DF4C4E0B94DAE6CC38031E39D6E0BD85C20A6262282;
        "X-Apple-I-MD-M" = "zYf50UanS29ND7NL21VIyva+k49SRqLRI7kOAY76AfIvGfPBYDhsA1iUY+xRXGuotqtrKz1Kmm4RreIZ";
        "X-Apple-I-MD-RINFO" = 17106176;
        "X-Apple-I-TimeZone" = "GMT+8";
        "X-MMe-Client-Info" = "  ";
        "X-Mme-Device-Id" = "C30C07C8-C8CA-5F2E-9DC8-70AC10B934F6";
        "X-Xcode-Version" = "10.1 (10B61)"; } {
        "DTDK_Platform" = ios;
        clientId = xxxxxxxx;
        csrContent = "-----BEGIN CERTIFICATE REQUEST-----\nMIICRTCCAS0CAQAwADCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKhR\nFsNrgoA44yDw2z2FhGnommbnAuEfY/GQhjbfo2uqKyOvJnMIfn5fc4LNK20/Vhs4\nSAIDSJFYIWmlq2Ryof1bRY523Gllz8BQgoI+u9lFw6mK3kq9tIaUJ2cCwdEvOxkY\nDg9VbTUYQ7fM37Bvc49WWKHMHJsJzqOIA9rPHJNzNqIFf9Euj25ezl5JJpWdx4LM\nQbOM8x6CijHDE0PeEtnvswXOKkH1/UlMs0AjdL9LlezynfVK320ZAe+2Af5zo2PN\nhH1knWdwHKE5lznbJAZ5boKvwoc2l6uKQp5JqFwznWQaj0CK1PQ6YbeNHaub+sUh\nTcnl62AbLH0GR7Je/NkCAwEAAaAAMA0GCSqGSIb3DQEBBQUAA4IBAQAXiTPOkM5R\nXa6FJnCEtr3CR95w364T3Fqv9siIZmq6E6YRJr55jMsE718MZasd359EupurrF2h\nBcV9hazty7JxIxdVbZuO0XsOjYEwjJ03n2U50JVMkXckxxqP5E2NC8QA+Y5VTxWH\nragBA32I5vr68qmbwDB2sMUleChgJ5InqRa0FAmTe0FBn3Kk2UfXy3qmRALsEJIx\nmWsThlY3545uRNLSTYsSolFsGIII2+2z6c5cWLEF371pyFI8DiQuRUFbnXm1pwix\nSuekfKOVez8bWPmffVBQ65QeABeo/+Tf2D3AKBLut7WuTeb+lKU5Z9TK64it8YEQ\nXRem8vVxrBnt\n-----END
    CERTIFICATE REQUEST-----\n";
        machineId = "xxxxxxxxxxxxx";
        machineName = "weizhou.xxxx\U7684iMac";
        protocolVersion = QH65B2;
        requestId = "7D28B80A-3C7B-4535-A776-92FB191DF18B";
        teamId = xxxxxxxxx; }</p>
    
    <p>2018-11-29 02:00:02 +0000 IDEProvisioningLedgerEntry: 2018-11-29
    02:00:02 +0000 IDEProvisioningLedgerEntry: Received response for
    7D28B80A-3C7B-4535-A776-92FB191DF18B @
    <a href="https://developerservices2.apple.com/services/QH65B2/ios/submitDevelopmentCSR.action?clientId=XABBG36SBA" rel="nofollow noreferrer">https://developerservices2.apple.com/services/QH65B2/ios/submitDevelopmentCSR.action?clientId=XABBG36SBA</a>.
    Error = Error Domain=DVTPortalResponseErrorDomain Code=0
    "Communication with Apple failed"
    UserInfo={NSLocalizedDescription=Communication with Apple failed,
    NSLocalizedRecoverySuggestion=A non-HTTP 200 response was received
    (400) for URL
    <a href="https://developerservices2.apple.com/services/QH65B2/ios/submitDevelopmentCSR.action?clientId=XABBG36SBA" rel="nofollow noreferrer">https://developerservices2.apple.com/services/QH65B2/ios/submitDevelopmentCSR.action?clientId=XABBG36SBA</a>}</p>
    
    <p>2018-11-29 02:00:02 +0000 IDEProvisioningLedgerEntry: 2018-11-29
    02:00:02 +0000 IDEProvisioningLedgerEntry: Response payload: HTTP 400
    Bad Request</p>
  </blockquote>