# REST-API: Eine vorhandene Verbindung wurde vom Remotehost geschlossen

**URL:** <https://forum.shopware.com/t/rest-api-eine-vorhandene-verbindung-wurde-vom-remotehost-geschlossen/53939>\
**Category:** Programmierung\
**Created:** [6. Juli 2018 um 17:03 UTC](https://forum.shopware.com/t/rest-api-eine-vorhandene-verbindung-wurde-vom-remotehost-geschlossen/53939 "2018-07-06T17:03:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leontodo](https://avatars.discourse-cdn.com/v4/letter/l/e9bcb4/32.png) [@Leontodo](https://forum.shopware.com/u/Leontodo)\
**Post date:** [6. Juli 2018 um 17:03 UTC](https://forum.shopware.com/t/rest-api-eine-vorhandene-verbindung-wurde-vom-remotehost-geschlossen/53939/1 "2018-07-06T17:03:05Z")

</div>

Wir verbinden mit unsere Software mehrere&nbsp;Shops. Bei einem Shop kommt bei der Verbindung die Meldung: “Von der Übertragungsverbindung können keine Daten gelesen werden: Eine vorhandene Verbindung wurde vom Remotehost geschlossen.”&nbsp; Alle anderen funktionieren einwandfrei. Alle haben die gleiche Version von Shopware SW 5.4.5. Alle haben die gleiche PHP/MySQL/JSON Version. Alle sind SSL.&nbsp; Einziger Unterschied: Es ist ein&nbsp;anderer Provider. Hat jemand eine Idee dazu?

---

<div class="post-metadata">

**Author:** ![BestShopPossible](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@BestShopPossible](https://forum.shopware.com/u/BestShopPossible)\
**Post date:** [9. Juli 2018 um 08:14 UTC](https://forum.shopware.com/t/rest-api-eine-vorhandene-verbindung-wurde-vom-remotehost-geschlossen/53939/2 "2018-07-09T08:14:17Z")

</div>

Warum fragst du hier und nicht beim Provider?

---

<div class="post-metadata">

**Author:** ![Leontodo](https://avatars.discourse-cdn.com/v4/letter/l/e9bcb4/32.png) [@Leontodo](https://forum.shopware.com/u/Leontodo)\
**Post date:** [9. Juli 2018 um 08:20 UTC](https://forum.shopware.com/t/rest-api-eine-vorhandene-verbindung-wurde-vom-remotehost-geschlossen/53939/3 "2018-07-09T08:20:14Z")

</div>

Weil lt. Provider alles OK&nbsp;ist. Hätte ja sein&nbsp;können, dass jemand hier das gleiche Problem mal hatte und eine Lösung weiß.&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![Leontodo](https://avatars.discourse-cdn.com/v4/letter/l/e9bcb4/32.png) [@Leontodo](https://forum.shopware.com/u/Leontodo)\
**Post date:** [9. Juli 2018 um 09:45 UTC](https://forum.shopware.com/t/rest-api-eine-vorhandene-verbindung-wurde-vom-remotehost-geschlossen/53939/4 "2018-07-09T09:45:30Z")

</div>

Gelöst: Bei dem Provider muss das Protokoll gesetzt werden.

ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
