title: App Store Connect Operation Error: Could not connect to Apple's web service
body: <p>I have been trying to upload my app archive to App Store connect for the past 3 days. In the beginning, there was a problem with the iTMSTransporter and I had to manually install it from iTunes Connect. Now it fails when I try to upload it. This is the error that comes up.</p>
  
  <p><a href="https://i.stack.imgur.com/HSpJD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HSpJD.png" alt="enter image description here"></a></p>
  
  <p>I have tried googling about this problem and I couldn't find a solution that worked for me. I tried using application loader instead of organiser to upload and I still came across the same error. I also tried to not include bitcode when I uploaded the archive and it didn't work. When I use application loader, it seems that the error occurs when it is comparing metadata with the App Store. I am not really sure of what that means but maybe that may be the problem? It would be really helpful if I could get some help with this problem. Thanks in advance.</p>
  
  <p>Edit 1:
  I tried looking into the diagnostic report and this is what I got.</p>
  
  <pre><code>[2019-04-16 02:49:44 SGT] &lt;main&gt; DBG-X:   parameter Version = 1.11.0
  [2019-04-16 02:49:44 SGT] &lt;main&gt; DBG-X:   parameter iTMSTransporterMode = upload
  [2019-04-16 02:49:44 SGT] &lt;main&gt;  INFO: id = 20190416024944-407
  [2019-04-16 02:49:44 SGT] &lt;main&gt;  INFO: iTMSTransporter Correlation Key: 2a7ba74f-8686-4003-8d70-4793622d6094
  [2019-04-16 02:49:44 SGT] &lt;main&gt;  WARN: Web service received a server status of: HTTP/1.1 502 Bad Gateway
  [2019-04-16 02:49:44 SGT] &lt;main&gt;  WARN: Web service response received: &lt;html&gt;
              &lt;head&gt;
                  &lt;title&gt;502 Bad Gateway&lt;/title&gt;
              &lt;/head&gt;
              &lt;body&gt;
              &lt;h1&gt;502 Bad Gateway&lt;/h1&gt;
              &lt;p&gt;Socks5ProtocolException(&amp;quot;SOCKS5 mode failure: SocksError(&amp;#x27;Invalid SOCKS version. Expected 0x05, got 0x43&amp;#x27;,)&amp;quot;,)&lt;/p&gt;
              &lt;/body&gt;
          &lt;/html&gt;
  [2019-04-16 02:49:44 SGT] &lt;main&gt; DBG-X: Apple's web service operation returned
  [2019-04-16 02:49:44 SGT] &lt;main&gt; DBG-X: Sleeping for 4680 ms
  [2019-04-16 02:49:49 SGT] &lt;main&gt; DBG-X: Done sleeping
  [2019-04-16 02:49:49 SGT] &lt;main&gt; ERROR: Could not connect to Apple's web service.
  [2019-04-16 02:49:49 SGT] &lt;main&gt; ERROR: Communication error. Please use diagnostic mode to check connectivity.
  [2019-04-16 02:49:49 SGT] &lt;main&gt;  INFO: JSON:{"msg":{"phase":"Upload","count":2,"description":"Operation failed","index":2},"messageType":"VerifyProgress"}
  [2019-04-16 02:49:49 SGT] &lt;main&gt; DBG-X: Returning 1
  </code></pre>