Neu Deserialize-Object Fehler beim Abgleich

janoschpelzer

Mitglied
7. August 2020
11
1
Hi,

ich kriege seit neustem diesen Fehler hier und kann ihn mir nicht ganz erklären:

Code:
Abgleich-Protokoll:
Bitte beachten Sie, dass JTL-Wawi federführend ist!
Im Shop-Backend vorgenommene Änderungen können nicht mehr automatisiert abgeglichen werden und führen somit zu Datenverlust.
Prüfe Endpointkonfiguration.
Abgleich gestartet für 'Test-Shop'.
Onlineshop-Abgleich beendet für 'Test-Shop'.


Fehler:
Exception: DeserializeObject-Error: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: P. Path '', line 0, position 0.
   bei Newtonsoft.Json.JsonTextReader.ParseValue()
   bei Newtonsoft.Json.JsonTextReader.ReadInternal()
   bei Newtonsoft.Json.JsonTextReader.Read()
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   bei Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   bei jtlCore.ControllerClasses.Connector.Core.Json.DeserializeObject[T](String json)

Json:ProductManufacturerShippingClassManufacturerProductProductProductProductManufacturerShippingClassManufacturerProductProductProduct{"jtlrpc":"2.0","id":"ae056227576d4eb4adb5a380d8555407","result":[{"id":["",1],"basePriceUnitId":["",0],"manufacturerId":["",1],"masterProductId":["",0],"measurementUnitId":["",0],"partsListId":["",0],"productTypeId":["",0],"shippingClassId":["",1],"unitId":["",0],"additionalHandlingTime":0,"asin":"","availableFrom":null,"basePriceDivisor":0,"basePriceFactor":0,"basePriceQuantity":0,"basePriceUnitCode":"","basePriceUnitName":"","considerBasePrice":false,"considerStock":true,"considerVariationStock":false,"creationDate":"2021-05-17T11:39:41+00:00","discountable":true,"ean":"","epid":"","hazardIdNumber":"","height":0,"isActive":true,"isBatch":false,"isBestBefore":false,"isbn":"","isDivisible":false,"isMasterProduct":false,"isNewProduct":false,"isSerialNumber":false,"isTopProduct":false,"keywords":"","length":0,"manufacturerNumber":"","manufacturer":{"id":["",1],"name":"Test Hersteller","sort":0,"urlPath":"","websiteUrl":"","i18ns":[]},"measurementQuantity":0,"measurementUnitCode":"","minBestBeforeDate":null,"minimumOrderQuantity":0,"minimumQuantity":0,"modified":"2021-05-17T11:46:52+00:00","newReleaseDate":"2021-05-17T11:37:33+00:00","nextAvailableInflowDate":null,"nextAvailableInflowQuantity":0,"note":"","originCountry":"","packagingQuantity":0,"permitNegativeStock":false,"productWeight":0,"purchasePrice":0,"recommendedRetailPrice":0,"serialNumber":"","shippingWeight":0,"sku":"1","sort":0,"stockLevel":{"stockLevel":42},"supplierDeliveryTime":0,"supplierStockLevel":0,"taric":"","unNumber":"","upc":"","vat":19,"width":0,"attributes":[],"categories":[],"checksums":[],"configGroups":[],"customerGroupPackagingQuantities":[],"fileDownloads":[],"i18ns":[{"languageIso":"de","deliveryStatus":"","description":"Lange Beschreibung","measurementUnitName":"","metaDescription":"","metaKeywords":"","name":"Test Schokolade","shortDescription":"Kurzbeschreibung","titleTag":"","unitName":"","urlPath":"","languageISO":"ger"}],"invisibilities":[],"mediaFiles":[],"partsLists":[],"prices":[{"id":["",0],"customerGroupId":["c2c6154f05b342d4b2da85e51ec805c9",1],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]},{"id":["",0],"customerGroupId":["b1d7b4cbe4d846f0b323a9d840800177",2],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]},{"id":["",0],"customerGroupId":["",0],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]}],"specialPrices":[],"specifics":[],"variations":[],"warehouseInfo":[]}],"error":null}
Artikel-Senden-Fehler: Bitte beachten Sie, dass zur Fehler-Diagnose ebenfalls die Log-Datei des Servers und das Abgleich-Log der JTL-Wawi notwendig sind!
DeserializeObject-Error: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: P. Path '', line 0, position 0.
   bei Newtonsoft.Json.JsonTextReader.ParseValue()
   bei Newtonsoft.Json.JsonTextReader.ReadInternal()
   bei Newtonsoft.Json.JsonTextReader.Read()
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   bei Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   bei jtlCore.ControllerClasses.Connector.Core.Json.DeserializeObject[T](String json)

Json:ProductManufacturerShippingClassManufacturerProductProductProductProductManufacturerShippingClassManufacturerProductProductProduct{"jtlrpc":"2.0","id":"ae056227576d4eb4adb5a380d8555407","result":[{"id":["",1],"basePriceUnitId":["",0],"manufacturerId":["",1],"masterProductId":["",0],"measurementUnitId":["",0],"partsListId":["",0],"productTypeId":["",0],"shippingClassId":["",1],"unitId":["",0],"additionalHandlingTime":0,"asin":"","availableFrom":null,"basePriceDivisor":0,"basePriceFactor":0,"basePriceQuantity":0,"basePriceUnitCode":"","basePriceUnitName":"","considerBasePrice":false,"considerStock":true,"considerVariationStock":false,"creationDate":"2021-05-17T11:39:41+00:00","discountable":true,"ean":"","epid":"","hazardIdNumber":"","height":0,"isActive":true,"isBatch":false,"isBestBefore":false,"isbn":"","isDivisible":false,"isMasterProduct":false,"isNewProduct":false,"isSerialNumber":false,"isTopProduct":false,"keywords":"","length":0,"manufacturerNumber":"","manufacturer":{"id":["",1],"name":"Test Hersteller","sort":0,"urlPath":"","websiteUrl":"","i18ns":[]},"measurementQuantity":0,"measurementUnitCode":"","minBestBeforeDate":null,"minimumOrderQuantity":0,"minimumQuantity":0,"modified":"2021-05-17T11:46:52+00:00","newReleaseDate":"2021-05-17T11:37:33+00:00","nextAvailableInflowDate":null,"nextAvailableInflowQuantity":0,"note":"","originCountry":"","packagingQuantity":0,"permitNegativeStock":false,"productWeight":0,"purchasePrice":0,"recommendedRetailPrice":0,"serialNumber":"","shippingWeight":0,"sku":"1","sort":0,"stockLevel":{"stockLevel":42},"supplierDeliveryTime":0,"supplierStockLevel":0,"taric":"","unNumber":"","upc":"","vat":19,"width":0,"attributes":[],"categories":[],"checksums":[],"configGroups":[],"customerGroupPackagingQuantities":[],"fileDownloads":[],"i18ns":[{"languageIso":"de","deliveryStatus":"","description":"Lange Beschreibung","measurementUnitName":"","metaDescription":"","metaKeywords":"","name":"Test Schokolade","shortDescription":"Kurzbeschreibung","titleTag":"","unitName":"","urlPath":"","languageISO":"ger"}],"invisibilities":[],"mediaFiles":[],"partsLists":[],"prices":[{"id":["",0],"customerGroupId":["c2c6154f05b342d4b2da85e51ec805c9",1],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]},{"id":["",0],"customerGroupId":["b1d7b4cbe4d846f0b323a9d840800177",2],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]},{"id":["",0],"customerGroupId":["",0],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]}],"specialPrices":[],"specifics":[],"variations":[],"warehouseInfo":[]}],"error":null}
Exception bei product.push:

DeserializeObject-Error: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: P. Path '', line 0, position 0.
   bei Newtonsoft.Json.JsonTextReader.ParseValue()
   bei Newtonsoft.Json.JsonTextReader.ReadInternal()
   bei Newtonsoft.Json.JsonTextReader.Read()
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   bei Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   bei jtlCore.ControllerClasses.Connector.Core.Json.DeserializeObject[T](String json)

Json:ProductManufacturerShippingClassManufacturerProductProductProductProductManufacturerShippingClassManufacturerProductProductProduct{"jtlrpc":"2.0","id":"ae056227576d4eb4adb5a380d8555407","result":[{"id":["",1],"basePriceUnitId":["",0],"manufacturerId":["",1],"masterProductId":["",0],"measurementUnitId":["",0],"partsListId":["",0],"productTypeId":["",0],"shippingClassId":["",1],"unitId":["",0],"additionalHandlingTime":0,"asin":"","availableFrom":null,"basePriceDivisor":0,"basePriceFactor":0,"basePriceQuantity":0,"basePriceUnitCode":"","basePriceUnitName":"","considerBasePrice":false,"considerStock":true,"considerVariationStock":false,"creationDate":"2021-05-17T11:39:41+00:00","discountable":true,"ean":"","epid":"","hazardIdNumber":"","height":0,"isActive":true,"isBatch":false,"isBestBefore":false,"isbn":"","isDivisible":false,"isMasterProduct":false,"isNewProduct":false,"isSerialNumber":false,"isTopProduct":false,"keywords":"","length":0,"manufacturerNumber":"","manufacturer":{"id":["",1],"name":"Test Hersteller","sort":0,"urlPath":"","websiteUrl":"","i18ns":[]},"measurementQuantity":0,"measurementUnitCode":"","minBestBeforeDate":null,"minimumOrderQuantity":0,"minimumQuantity":0,"modified":"2021-05-17T11:4


Der Fehler tritt auf wenn ich einen Abgleich mit meinem Connector starte. Mit dem Debugger sehe ich, dass die ProductController.php -> push Methode korrekt aufgerufen wird, hier der Code davon:

Code:
    public function push(AbstractDataModel $model): AbstractDataModel
    {
        if ($model instanceof Product) {
            // Upload product to shop code
            // ...
        }
        return $model;
    }

Es entsteht kein Fehler beim hochladen des Produktes und ich gebe einfach das Produkt-Model wieder zurück.
Ich benutze die Connector version 4.0.12
 

janoschpelzer

Mitglied
7. August 2020
11
1
Hier noch der komplette Abgleich- Log:

Code:
JTL-Wawi: StartForm()
JTL-Wawi: MainWindow != null
-- Connector-Konfiguration --
Import: False
Import Artikel/Kategorien: False
Artikel überschreiben: False
Import Bilder: False
Import Aufträge/Kunden: False

Upload: True
Upload Artikel komplett: True
Upload Artikel eingeschränkt: False
Upload Bilder: True

Nur zugeordnete Hersteller senden: False
Endpoint version: 0.1
Wawi-Version: 1.5.44.0
JTL-Wawi: Sync start
JTL-Wawi: Licence is valid
JTL-Wawi: InitCall OK
JTL-Wawi: Initialize model getters...
JTL-Wawi: ModelGetters OK
>>> global_data.pull: {
  "method": "global_data.pull",
  "params": {
    "limit": 50,
    "filters": {}
  },
  "jtlrpc": "2.0",
  "id": "a33465bb227d4f9d905419b3e0b3c4b8"
}
<<< global_data.pull: {"jtlrpc":"2.0","id":"a33465bb227d4f9d905419b3e0b3c4b8","result":[{"configGroups":[],"configItems":[],"crossSellingGroups":[],"currencies":[{"id":["56b0d7e12feb47838e2cd6c49f2cfd82",0],"delimiterCent":",","delimiterThousand":".","factor":1,"hasCurrencySignBeforeValue":false,"isDefault":true,"iso":"EUR","name":"Euro","nameHtml":"\u0026euro;"}],"customerGroups":[{"id":["c2c6154f05b342d4b2da85e51ec805c9",0],"applyNetPrice":false,"discount":0,"isDefault":true,"attributes":[],"i18ns":[{"languageIso":"","name":"Endkunde","languageISO":""}]},{"id":["b1d7b4cbe4d846f0b323a9d840800177",0],"applyNetPrice":true,"discount":0,"isDefault":false,"attributes":[],"i18ns":[{"languageIso":"","name":"Haendler","languageISO":""}]}],"languages":[{"languageIso":"ger","id":["1",0],"isDefault":true,"nameEnglish":"German","nameGerman":"Deutsch","languageISO":"ger"}],"measurementUnits":[],"productTypes":[],"shippingClasses":[],"shippingMethods":[{"id":["7adeec3fbbe942c6a8e910ead168703d",0],"name":"DHL Versand"}],"taxRates":[{"id":["f1ec9220f3f64049926a83f5ba8df985",0],"rate":19},{"id":["ec0a029a85554745aa42fb708d3c5c8c",0],"rate":7}],"units":[],"warehouses":[]}],"error":null}
(1465,7946 milliseconds)
>>> product.push: {
  "method": "product.push",
  "params": [
    {
      "entityType": "Product",
      "categories": [],
      "configGroups": [],
      "fileDownloads": [],
      "i18ns": [
        {
          "measurementUnitName": null,
          "unitName": null,
          "deliveryStatus": null,
          "productId": [
            "",
            1
          ],
          "languageISO": "ger",
          "name": "Test Schokolade",
          "description": "Lange Beschreibung",
          "shortDescription": "Kurzbeschreibung",
          "urlPath": "",
          "metaDescription": "",
          "titleTag": "",
          "metaKeywords": ""
        }
      ],
      "invisibilities": [],
      "mediaFiles": [],
      "prices": [
        {
          "customerId": [
            "",
            0
          ],
          "items": [
            {
              "productPriceId": [
                "",
                0
              ],
              "quantity": 0,
              "netPrice": 0.0
            }
          ],
          "customerGroupId": [
            "c2c6154f05b342d4b2da85e51ec805c9",
            1
          ],
          "sku": null,
          "vat": 19.0,
          "id": [
            "",
            0
          ],
          "productId": [
            "",
            1
          ]
        },
        {
          "customerId": [
            "",
            0
          ],
          "items": [
            {
              "productPriceId": [
                "",
                0
              ],
              "quantity": 0,
              "netPrice": 0.0
            }
          ],
          "customerGroupId": [
            "b1d7b4cbe4d846f0b323a9d840800177",
            2
          ],
          "sku": null,
          "vat": 19.0,
          "id": [
            "",
            0
          ],
          "productId": [
            "",
            1
          ]
        },
        {
          "customerId": [
            "",
            0
          ],
          "items": [
            {
              "productPriceId": [
                "",
                0
              ],
              "quantity": 0,
              "netPrice": 0.0
            }
          ],
          "customerGroupId": [
            "",
            0
          ],
          "sku": null,
          "vat": 19.0,
          "id": [
            "",
            0
          ],
          "productId": [
            "",
            1
          ]
        }
      ],
      "partsLists": [],
      "attributes": [],
      "specialPrices": [],
      "specifics": [],
      "warehouseInfo": [],
      "variations": [],
      "checksums": [],
      "varCombinations": [],
      "customerGroupPackagingQuantities": [],
      "stockLevel": {
        "productId": [
          "",
          1
        ],
        "stockLevel": 42.0,
        "sku": null
      },
      "supplierStockLevel": 0.0,
      "vat": 19.0,
      "basePriceFactor": 0.0,
      "supplierDeliveryTime": 0,
      "measurementUnitCode": "",
      "basePriceUnitCode": "",
      "basePriceUnitName": "",
      "minBestBeforeDate": null,
      "manufacturer": {
        "entityType": "Manufacturer",
        "i18ns": [],
        "id": [
          "",
          1
        ],
        "name": "Test Hersteller",
        "websiteUrl": "",
        "sort": 0,
        "urlPath": ""
      },
      "id": [
        "",
        1
      ],
      "sku": "1",
      "recommendedRetailPrice": 0.0,
      "note": "",
      "isActive": true,
      "minimumOrderQuantity": 0.0,
      "ean": "",
      "isTopProduct": false,
      "shippingWeight": 0.0,
      "isNewProduct": false,
      "isSerialNumber": false,
      "isDivisible": false,
      "considerStock": true,
      "permitNegativeStock": false,
      "minimumQuantity": 0.0,
      "purchasePrice": 0.0,
      "considerVariationStock": false,
      "modified": "2021-05-17T11:46:52Z",
      "considerBasePrice": false,
      "basePriceDivisor": 0.0,
      "keywords": "",
      "taric": "",
      "originCountry": "",
      "creationDate": "2021-05-17T11:39:41Z",
      "availableFrom": null,
      "sort": 0,
      "shippingClassId": [
        "",
        1
      ],
      "productWeight": 0.0,
      "manufacturerNumber": "",
      "serialNumber": "",
      "isbn": "",
      "unNumber": "",
      "hazardIdNumber": "",
      "asin": "",
      "masterProductId": [
        "",
        0
      ],
      "isMasterProduct": false,
      "packagingQuantity": 0.0,
      "partsListId": [
        "",
        0
      ],
      "upc": "",
      "productTypeId": [
        "",
        0
      ],
      "epid": "",
      "isBestBefore": false,
      "isBatch": false,
      "manufacturerId": [
        "",
        1
      ],
      "measurementUnitId": [
        "",
        0
      ],
      "measurementQuantity": 0.0,
      "basePriceUnitId": [
        "",
        0
      ],
      "basePriceQuantity": 0.0,
      "width": 0.0,
      "height": 0.0,
      "length": 0.0,
      "unitId": [
        "",
        0
      ],
      "nextAvailableInflowDate": null,
      "additionalHandlingTime": 0,
      "nextAvailableInflowQuantity": 0.0,
      "newReleaseDate": "2021-05-17T11:37:33Z"
    }
  ],
  "jtlrpc": "2.0",
  "id": "489e4bfb9e1f4b8e8ff7bfbf9109da0d"
}
JTL-Wawi: End sync
Exception: DeserializeObject-Error: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: P. Path '', line 0, position 0.
   bei Newtonsoft.Json.JsonTextReader.ParseValue()
   bei Newtonsoft.Json.JsonTextReader.ReadInternal()
   bei Newtonsoft.Json.JsonTextReader.Read()
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   bei Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   bei jtlCore.ControllerClasses.Connector.Core.Json.DeserializeObject[T](String json)

Json:ProductManufacturerShippingClassManufacturerProductProductProductProductManufacturerShippingClassManufacturerProductProductProduct{"jtlrpc":"2.0","id":"489e4bfb9e1f4b8e8ff7bfbf9109da0d","result":[{"id":["",1],"basePriceUnitId":["",0],"manufacturerId":["",1],"masterProductId":["",0],"measurementUnitId":["",0],"partsListId":["",0],"productTypeId":["",0],"shippingClassId":["",1],"unitId":["",0],"additionalHandlingTime":0,"asin":"","availableFrom":null,"basePriceDivisor":0,"basePriceFactor":0,"basePriceQuantity":0,"basePriceUnitCode":"","basePriceUnitName":"","considerBasePrice":false,"considerStock":true,"considerVariationStock":false,"creationDate":"2021-05-17T11:39:41+00:00","discountable":true,"ean":"","epid":"","hazardIdNumber":"","height":0,"isActive":true,"isBatch":false,"isBestBefore":false,"isbn":"","isDivisible":false,"isMasterProduct":false,"isNewProduct":false,"isSerialNumber":false,"isTopProduct":false,"keywords":"","length":0,"manufacturerNumber":"","manufacturer":{"id":["",1],"name":"Test Hersteller","sort":0,"urlPath":"","websiteUrl":"","i18ns":[]},"measurementQuantity":0,"measurementUnitCode":"","minBestBeforeDate":null,"minimumOrderQuantity":0,"minimumQuantity":0,"modified":"2021-05-17T11:46:52+00:00","newReleaseDate":"2021-05-17T11:37:33+00:00","nextAvailableInflowDate":null,"nextAvailableInflowQuantity":0,"note":"","originCountry":"","packagingQuantity":0,"permitNegativeStock":false,"productWeight":0,"purchasePrice":0,"recommendedRetailPrice":0,"serialNumber":"","shippingWeight":0,"sku":"1","sort":0,"stockLevel":{"stockLevel":42},"supplierDeliveryTime":0,"supplierStockLevel":0,"taric":"","unNumber":"","upc":"","vat":19,"width":0,"attributes":[],"categories":[],"checksums":[],"configGroups":[],"customerGroupPackagingQuantities":[],"fileDownloads":[],"i18ns":[{"languageIso":"de","deliveryStatus":"","description":"Lange Beschreibung","measurementUnitName":"","metaDescription":"","metaKeywords":"","name":"Test Schokolade","shortDescription":"Kurzbeschreibung","titleTag":"","unitName":"","urlPath":"","languageISO":"ger"}],"invisibilities":[],"mediaFiles":[],"partsLists":[],"prices":[{"id":["",0],"customerGroupId":["c2c6154f05b342d4b2da85e51ec805c9",1],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]},{"id":["",0],"customerGroupId":["b1d7b4cbe4d846f0b323a9d840800177",2],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]},{"id":["",0],"customerGroupId":["",0],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]}],"specialPrices":[],"specifics":[],"variations":[],"warehouseInfo":[]}],"error":null}
Artikel-Senden-Fehler: Bitte beachten Sie, dass zur Fehler-Diagnose ebenfalls die Log-Datei des Servers und das Abgleich-Log der JTL-Wawi notwendig sind!
DeserializeObject-Error: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: P. Path '', line 0, position 0.
   bei Newtonsoft.Json.JsonTextReader.ParseValue()
   bei Newtonsoft.Json.JsonTextReader.ReadInternal()
   bei Newtonsoft.Json.JsonTextReader.Read()
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   bei Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   bei jtlCore.ControllerClasses.Connector.Core.Json.DeserializeObject[T](String json)

Json:ProductManufacturerShippingClassManufacturerProductProductProductProductManufacturerShippingClassManufacturerProductProductProduct{"jtlrpc":"2.0","id":"489e4bfb9e1f4b8e8ff7bfbf9109da0d","result":[{"id":["",1],"basePriceUnitId":["",0],"manufacturerId":["",1],"masterProductId":["",0],"measurementUnitId":["",0],"partsListId":["",0],"productTypeId":["",0],"shippingClassId":["",1],"unitId":["",0],"additionalHandlingTime":0,"asin":"","availableFrom":null,"basePriceDivisor":0,"basePriceFactor":0,"basePriceQuantity":0,"basePriceUnitCode":"","basePriceUnitName":"","considerBasePrice":false,"considerStock":true,"considerVariationStock":false,"creationDate":"2021-05-17T11:39:41+00:00","discountable":true,"ean":"","epid":"","hazardIdNumber":"","height":0,"isActive":true,"isBatch":false,"isBestBefore":false,"isbn":"","isDivisible":false,"isMasterProduct":false,"isNewProduct":false,"isSerialNumber":false,"isTopProduct":false,"keywords":"","length":0,"manufacturerNumber":"","manufacturer":{"id":["",1],"name":"Test Hersteller","sort":0,"urlPath":"","websiteUrl":"","i18ns":[]},"measurementQuantity":0,"measurementUnitCode":"","minBestBeforeDate":null,"minimumOrderQuantity":0,"minimumQuantity":0,"modified":"2021-05-17T11:46:52+00:00","newReleaseDate":"2021-05-17T11:37:33+00:00","nextAvailableInflowDate":null,"nextAvailableInflowQuantity":0,"note":"","originCountry":"","packagingQuantity":0,"permitNegativeStock":false,"productWeight":0,"purchasePrice":0,"recommendedRetailPrice":0,"serialNumber":"","shippingWeight":0,"sku":"1","sort":0,"stockLevel":{"stockLevel":42},"supplierDeliveryTime":0,"supplierStockLevel":0,"taric":"","unNumber":"","upc":"","vat":19,"width":0,"attributes":[],"categories":[],"checksums":[],"configGroups":[],"customerGroupPackagingQuantities":[],"fileDownloads":[],"i18ns":[{"languageIso":"de","deliveryStatus":"","description":"Lange Beschreibung","measurementUnitName":"","metaDescription":"","metaKeywords":"","name":"Test Schokolade","shortDescription":"Kurzbeschreibung","titleTag":"","unitName":"","urlPath":"","languageISO":"ger"}],"invisibilities":[],"mediaFiles":[],"partsLists":[],"prices":[{"id":["",0],"customerGroupId":["c2c6154f05b342d4b2da85e51ec805c9",1],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]},{"id":["",0],"customerGroupId":["b1d7b4cbe4d846f0b323a9d840800177",2],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]},{"id":["",0],"customerGroupId":["",0],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]}],"specialPrices":[],"specifics":[],"variations":[],"warehouseInfo":[]}],"error":null}
Exception bei product.push:

DeserializeObject-Error: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: P. Path '', line 0, position 0.
   bei Newtonsoft.Json.JsonTextReader.ParseValue()
   bei Newtonsoft.Json.JsonTextReader.ReadInternal()
   bei Newtonsoft.Json.JsonTextReader.Read()
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, JsonContract contract, Boolean hasConverter)
   bei Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   bei Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   bei Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   bei jtlCore.ControllerClasses.Connector.Core.Json.DeserializeObject[T](String json)

Json:ProductManufacturerShippingClassManufacturerProductProductProductProductManufacturerShippingClassManufacturerProductProductProduct{"jtlrpc":"2.0","id":"489e4bfb9e1f4b8e8ff7bfbf9109da0d","result":[{"id":["",1],"basePriceUnitId":["",0],"manufacturerId":["",1],"masterProductId":["",0],"measurementUnitId":["",0],"partsListId":["",0],"productTypeId":["",0],"shippingClassId":["",1],"unitId":["",0],"additionalHandlingTime":0,"asin":"","availableFrom":null,"basePriceDivisor":0,"basePriceFactor":0,"basePriceQuantity":0,"basePriceUnitCode":"","basePriceUnitName":"","considerBasePrice":false,"considerStock":true,"considerVariationStock":false,"creationDate":"2021-05-17T11:39:41+00:00","discountable":true,"ean":"","epid":"","hazardIdNumber":"","height":0,"isActive":true,"isBatch":false,"isBestBefore":false,"isbn":"","isDivisible":false,"isMasterProduct":false,"isNewProduct":false,"isSerialNumber":false,"isTopProduct":false,"keywords":"","length":0,"manufacturerNumber":"","manufacturer":{"id":["",1],"name":"Test Hersteller","sort":0,"urlPath":"","websiteUrl":"","i18ns":[]},"measurementQuantity":0,"measurementUnitCode":"","minBestBeforeDate":null,"minimumOrderQuantity":0,"minimumQuantity":0,"modified":"2021-05-17T11:46:52+00:00","newReleaseDate":"2021-05-17T11:37:33+00:00","nextAvailableInflowDate":null,"nextAvailableInflowQuantity":0,"note":"","originCountry":"","packagingQuantity":0,"permitNegativeStock":false,"productWeight":0,"purchasePrice":0,"recommendedRetailPrice":0,"serialNumber":"","shippingWeight":0,"sku":"1","sort":0,"stockLevel":{"stockLevel":42},"supplierDeliveryTime":0,"supplierStockLevel":0,"taric":"","unNumber":"","upc":"","vat":19,"width":0,"attributes":[],"categories":[],"checksums":[],"configGroups":[],"customerGroupPackagingQuantities":[],"fileDownloads":[],"i18ns":[{"languageIso":"de","deliveryStatus":"","description":"Lange Beschreibung","measurementUnitName":"","metaDescription":"","metaKeywords":"","name":"Test Schokolade","shortDescription":"Kurzbeschreibung","titleTag":"","unitName":"","urlPath":"","languageISO":"ger"}],"invisibilities":[],"mediaFiles":[],"partsLists":[],"prices":[{"id":["",0],"customerGroupId":["c2c6154f05b342d4b2da85e51ec805c9",1],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]},{"id":["",0],"customerGroupId":["b1d7b4cbe4d846f0b323a9d840800177",2],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]},{"id":["",0],"customerGroupId":["",0],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]}],"specialPrices":[],"specifics":[],"variations":[],"warehouseInfo":[]}],"error":null}

Response: ProductManufacturerShippingClassManufacturerProductProductProductProductManufacturerShippingClassManufacturerProductProductProduct{"jtlrpc":"2.0","id":"489e4bfb9e1f4b8e8ff7bfbf9109da0d","result":[{"id":["",1],"basePriceUnitId":["",0],"manufacturerId":["",1],"masterProductId":["",0],"measurementUnitId":["",0],"partsListId":["",0],"productTypeId":["",0],"shippingClassId":["",1],"unitId":["",0],"additionalHandlingTime":0,"asin":"","availableFrom":null,"basePriceDivisor":0,"basePriceFactor":0,"basePriceQuantity":0,"basePriceUnitCode":"","basePriceUnitName":"","considerBasePrice":false,"considerStock":true,"considerVariationStock":false,"creationDate":"2021-05-17T11:39:41+00:00","discountable":true,"ean":"","epid":"","hazardIdNumber":"","height":0,"isActive":true,"isBatch":false,"isBestBefore":false,"isbn":"","isDivisible":false,"isMasterProduct":false,"isNewProduct":false,"isSerialNumber":false,"isTopProduct":false,"keywords":"","length":0,"manufacturerNumber":"","manufacturer":{"id":["",1],"name":"Test Hersteller","sort":0,"urlPath":"","websiteUrl":"","i18ns":[]},"measurementQuantity":0,"measurementUnitCode":"","minBestBeforeDate":null,"minimumOrderQuantity":0,"minimumQuantity":0,"modified":"2021-05-17T11:46:52+00:00","newReleaseDate":"2021-05-17T11:37:33+00:00","nextAvailableInflowDate":null,"nextAvailableInflowQuantity":0,"note":"","originCountry":"","packagingQuantity":0,"permitNegativeStock":false,"productWeight":0,"purchasePrice":0,"recommendedRetailPrice":0,"serialNumber":"","shippingWeight":0,"sku":"1","sort":0,"stockLevel":{"stockLevel":42},"supplierDeliveryTime":0,"supplierStockLevel":0,"taric":"","unNumber":"","upc":"","vat":19,"width":0,"attributes":[],"categories":[],"checksums":[],"configGroups":[],"customerGroupPackagingQuantities":[],"fileDownloads":[],"i18ns":[{"languageIso":"de","deliveryStatus":"","description":"Lange Beschreibung","measurementUnitName":"","metaDescription":"","metaKeywords":"","name":"Test Schokolade","shortDescription":"Kurzbeschreibung","titleTag":"","unitName":"","urlPath":"","languageISO":"ger"}],"invisibilities":[],"mediaFiles":[],"partsLists":[],"prices":[{"id":["",0],"customerGroupId":["c2c6154f05b342d4b2da85e51ec805c9",1],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]},{"id":["",0],"customerGroupId":["b1d7b4cbe4d846f0b323a9d840800177",2],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]},{"id":["",0],"customerGroupId":["",0],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]}],"specialPrices":[],"specifics":[],"variations":[],"warehouseInfo":[]}],"error":null}
   bei jtlCore.ControllerClasses.Connector.Core.Json.DeserializeObject[T](String json)
   bei jtlCore.ControllerClasses.Connector.Abgleich.Connector.xNnI3dVeagV(String  , Object  , Boolean  , NetworkCredential  )
 

janoschpelzer

Mitglied
7. August 2020
11
1
Also anscheinend ist das Problem, dass bei der Antwort welche die Wawi von dem Connector erhält folgender Prefix vorzufinden ist: "ProductManufacturerShippingClassManufacturerProductProductProductProductManufacturerShippingClassManufacturerProductProductProduct". Deswegen kann die Antwort nicht korrekt als JSON geparsed werden von der Wawi.

Ich kann mir aber leider nicht erklären wie dieser Prefix entsteht...
 

janoschpelzer

Mitglied
7. August 2020
11
1
Laut Wireshark schickt mein Connector tatsächlich diese fehlerhafte Antwort, das Problem liegt also nicht an der Wawi sondern am connector-core...
 
Zuletzt bearbeitet:

Immanuel

Moderator
Mitarbeiter
24. August 2016
1.542
323
Hallo @janoschpelzer,

bitte stell in der Connector Config das "log_level" auf "debug" und starte nochmal einen Abgleich. Danach solltest du im Connector Log Verzeichnis (../var/log) einen entsprechenden RPC Log finden, in dem das Result welches vom Connector zurück an JTL-Wawi gesendet wird drin steht. Den RPC Log bitte hier reinposten.
 

janoschpelzer

Mitglied
7. August 2020
11
1
Hier ist der rpc-2021-05-17. log Log:

Code:
[2021-05-17T12:51:21.493551+00:00] rpc.DEBUG: {   "method": "core.connector.auth",   "params": {     "token": "******************"   },   "jtlrpc": "2.0",   "id": "96e223eadaca4887a162906b868034b7" } [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Application/Application.php","line":276,"class":"Jtl\\Connector\\Core\\Application\\Application","function":"run"}
[2021-05-17T12:51:21.515745+00:00] rpc.DEBUG: {"jtlrpc":"2.0","id":"96e223eadaca4887a162906b868034b7","result":{"sessionId":"9r8io9s7s9n2jdpttqd8g29ppo","lifetime":1440},"error":null} [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Http/JsonResponse.php","line":68,"class":"Jtl\\Connector\\Core\\Http\\JsonResponse","function":"prepareAndSend"}
[2021-05-17T12:51:21.536013+00:00] rpc.DEBUG: {   "method": "connector.identify",   "params": null,   "jtlrpc": "2.0",   "id": "9bdb3bd4264942f097cac1b3ba6bf6a2" } [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Application/Application.php","line":276,"class":"Jtl\\Connector\\Core\\Application\\Application","function":"run"}
[2021-05-17T12:51:21.548088+00:00] rpc.DEBUG: {"jtlrpc":"2.0","id":"9bdb3bd4264942f097cac1b3ba6bf6a2","result":{"endpointVersion":"0.1","platformName":"Bulk","platformVersion":"","protocolVersion":7,"serverInfo":{"memoryLimit":128,"executionTime":30,"postMaxSize":8,"uploadMaxFilesize":2}},"error":null} [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Http/JsonResponse.php","line":68,"class":"Jtl\\Connector\\Core\\Http\\JsonResponse","function":"prepareAndSend"}
[2021-05-17T12:51:21.568621+00:00] rpc.DEBUG: {   "method": "global_data.pull",   "params": {     "limit": 50,     "filters": {}   },   "jtlrpc": "2.0",   "id": "e9476283eb8447599d0d86cc8df36e7d" } [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Application/Application.php","line":276,"class":"Jtl\\Connector\\Core\\Application\\Application","function":"run"}
[2021-05-17T12:51:22.714464+00:00] rpc.DEBUG: {"jtlrpc":"2.0","id":"e9476283eb8447599d0d86cc8df36e7d","result":[{"configGroups":[],"configItems":[],"crossSellingGroups":[],"currencies":[{"id":["56b0d7e12feb47838e2cd6c49f2cfd82",0],"delimiterCent":",","delimiterThousand":".","factor":1,"hasCurrencySignBeforeValue":false,"isDefault":true,"iso":"EUR","name":"Euro","nameHtml":"\u0026euro;"}],"customerGroups":[{"id":["c2c6154f05b342d4b2da85e51ec805c9",0],"applyNetPrice":false,"discount":0,"isDefault":true,"attributes":[],"i18ns":[{"languageIso":"","name":"Endkunde","languageISO":""}]},{"id":["b1d7b4cbe4d846f0b323a9d840800177",0],"applyNetPrice":true,"discount":0,"isDefault":false,"attributes":[],"i18ns":[{"languageIso":"","name":"Haendler","languageISO":""}]}],"languages":[{"languageIso":"ger","id":["1",0],"isDefault":true,"nameEnglish":"German","nameGerman":"Deutsch","languageISO":"ger"}],"measurementUnits":[],"productTypes":[],"shippingClasses":[],"shippingMethods":[{"id":["7adeec3fbbe942c6a8e910ead168703d",0],"name":"DHL Versand"}],"taxRates":[{"id":["f1ec9220f3f64049926a83f5ba8df985",0],"rate":19},{"id":["ec0a029a85554745aa42fb708d3c5c8c",0],"rate":7}],"units":[],"warehouses":[]}],"error":null} [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Http/JsonResponse.php","line":68,"class":"Jtl\\Connector\\Core\\Http\\JsonResponse","function":"prepareAndSend"}
[2021-05-17T12:51:22.739082+00:00] rpc.DEBUG: {   "method": "core.connector.features",   "params": null,   "jtlrpc": "2.0",   "id": "dc7dd73de45e4840b6df6ab460df7058" } [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Application/Application.php","line":276,"class":"Jtl\\Connector\\Core\\Application\\Application","function":"run"}
[2021-05-17T12:51:22.745757+00:00] rpc.DEBUG: {"jtlrpc":"2.0","id":"dc7dd73de45e4840b6df6ab460df7058","result":{"entities":{"Category":{"pull":false,"push":false,"delete":false},"CategoryAttr":{"pull":false,"push":false,"delete":false},"CategoryAttrI18n":{"pull":false,"push":false,"delete":false},"CategoryCustomerGroup":{"pull":false,"push":false,"delete":false},"CategoryI18n":{"pull":false,"push":false,"delete":false},"CategoryInvisibility":{"pull":false,"push":false,"delete":false},"Checksum":{"pull":false,"push":false,"delete":false},"ConfigGroup":{"pull":false,"push":false,"delete":false},"ConfigGroupI18n":{"pull":false,"push":false,"delete":false},"ConfigItem":{"pull":false,"push":false,"delete":false},"ConfigItemI18n":{"pull":false,"push":false,"delete":false},"ConfigItemPrice":{"pull":false,"push":false,"delete":false},"CrossSelling":{"pull":false,"push":false,"delete":false},"CrossSellingGroup":{"pull":false,"push":false,"delete":false},"CrossSellingGroupI18n":{"pull":false,"push":false,"delete":false},"CrossSellingItem":{"pull":false,"push":false,"delete":false},"Currency":{"pull":false,"push":false,"delete":false},"Customer":{"pull":false,"push":false,"delete":false},"CustomerAttr":{"pull":false,"push":false,"delete":false},"CustomerGroup":{"pull":false,"push":false,"delete":false},"CustomerGroupAttr":{"pull":false,"push":false,"delete":false},"CustomerGroupI18n":{"pull":false,"push":false,"delete":false},"CustomerGroupPackagingQuantity":{"pull":false,"push":false,"delete":false},"CustomerOrder":{"pull":true,"push":false,"delete":false},"CustomerOrderAttr":{"pull":false,"push":false,"delete":false},"CustomerOrderBillingAddress":{"pull":true,"push":false,"delete":false},"CustomerOrderItem":{"pull":true,"push":false,"delete":false},"CustomerOrderItemVariation":{"pull":false,"push":false,"delete":false},"CustomerOrderPaymentInfo":{"pull":false,"push":false,"delete":false},"CustomerOrderShippingAddress":{"pull":true,"push":false,"delete":false},"DeliveryNote":{"pull":true,"push":false,"delete":false},"DeliveryNoteItem":{"pull":true,"push":false,"delete":false},"DeliveryNoteItemInfo":{"pull":true,"push":false,"delete":false},"FileDownload":{"pull":false,"push":false,"delete":false},"FileDownloadI18n":{"pull":false,"push":false,"delete":false},"FileUpload":{"pull":false,"push":false,"delete":false},"FileUploadI18n":{"pull":false,"push":false,"delete":false},"GlobalData":{"pull":true,"push":false,"delete":false},"Image":{"pull":false,"push":true,"delete":true},"Language":{"pull":false,"push":false,"delete":false},"Manufacturer":{"pull":false,"push":false,"delete":false},"ManufacturerI18n":{"pull":false,"push":false,"delete":false},"MeasurementUnit":{"pull":false,"push":false,"delete":false},"MeasurementUnitI18n":{"pull":false,"push":false,"delete":false},"MediaFile":{"pull":false,"push":false,"delete":false},"MediaFileAttr":{"pull":false,"push":false,"delete":false},"MediaFileAttrI18n":{"pull":false,"push":false,"delete":false},"MediaFileI18n":{"pull":false,"push":false,"delete":false},"PartsList":{"pull":false,"push":false,"delete":false},"Payment":{"pull":false,"push":false,"delete":false},"Product":{"pull":false,"push":true,"delete":true},"Product2Category":{"pull":false,"push":false,"delete":false},"ProductAttr":{"pull":false,"push":true,"delete":true},"ProductAttrI18n":{"pull":false,"push":true,"delete":true},"ProductConfigGroup":{"pull":false,"push":false,"delete":false},"ProductFileDownload":{"pull":false,"push":false,"delete":false},"ProductI18n":{"pull":false,"push":true,"delete":true},"ProductInvisibility":{"pull":false,"push":false,"delete":false},"ProductPartsList":{"pull":false,"push":false,"delete":false},"ProductPrice":{"pull":false,"push":true,"delete":true},"ProductPriceItem":{"pull":false,"push":true,"delete":true},"ProductSpecialPrice":{"pull":false,"push":false,"delete":false},"ProductSpecialPriceItem":{"pull":false,"push":false,"delete":false},"ProductSpecific":{"pull":false,"push":false,"delete":false},"ProductStockLevel":{"pull":false,"push":true,"delete":true},"ProductType":{"pull":false,"push":false,"delete":false},"ProductVarCombination":{"pull":false,"push":false,"delete":false},"ProductVariation":{"pull":false,"push":false,"delete":false},"ProductVariationI18n":{"pull":false,"push":false,"delete":false},"ProductVariationInvisibility":{"pull":false,"push":false,"delete":false},"ProductVariationValue":{"pull":false,"push":false,"delete":false},"ProductVariationValueDependency":{"pull":false,"push":false,"delete":false},"ProductVariationValueExtraCharge":{"pull":false,"push":false,"delete":false},"ProductVariationValueI18n":{"pull":false,"push":false,"delete":false},"ProductVariationValueInvisibility":{"pull":false,"push":false,"delete":false},"ProductWarehouseInfo":{"pull":false,"push":false,"delete":false},"Shipment":{"pull":false,"push":false,"delete":false},"ShippingClass":{"pull":false,"push":false,"delete":false},"Specific":{"pull":false,"push":false,"delete":false},"SpecificI18n":{"pull":false,"push":false,"delete":false},"SpecificValue":{"pull":false,"push":false,"delete":false},"SpecificValueI18n":{"pull":false,"push":false,"delete":false},"Statistic":{"pull":false,"push":false,"delete":false},"StatusChange":{"pull":false,"push":false,"delete":false},"TaxClass":{"pull":false,"push":false,"delete":false},"TaxRate":{"pull":false,"push":false,"delete":false},"TaxZone":{"pull":false,"push":false,"delete":false},"TaxZoneCountry":{"pull":false,"push":false,"delete":false},"Unit":{"pull":false,"push":false,"delete":false},"UnitI18n":{"pull":false,"push":false,"delete":false},"Warehouse":{"pull":false,"push":false,"delete":false}},"flags":{"var_combination_child_first":false,"product_images_supported":true,"category_images_supported":true,"manufacturer_images_supported":false,"specific_images_supported":false,"specific_value_images_supported":false,"config_group_images_supported":false,"product_variation_value_images_supported":false,"variation_products_supported":false,"variation_combinations_supported":true,"set_articles_supported":false,"free_field_supported":false,"needs_category_root":false,"translated_attributes_supported":false,"send_all_acks":false,"disable_statistics":false,"needs_finish_call":true}},"error":null} [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Http/JsonResponse.php","line":68,"class":"Jtl\\Connector\\Core\\Http\\JsonResponse","function":"prepareAndSend"}
[2021-05-17T12:51:24.125111+00:00] rpc.DEBUG: {   "method": "connector.identify",   "params": null,   "jtlrpc": "2.0",   "id": "7452ebaf02634a2dbda6a0d9ad5933ee" } [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Application/Application.php","line":276,"class":"Jtl\\Connector\\Core\\Application\\Application","function":"run"}
[2021-05-17T12:51:24.129912+00:00] rpc.DEBUG: {"jtlrpc":"2.0","id":"7452ebaf02634a2dbda6a0d9ad5933ee","result":{"endpointVersion":"0.1","platformName":"Bulk","platformVersion":"","protocolVersion":7,"serverInfo":{"memoryLimit":128,"executionTime":30,"postMaxSize":8,"uploadMaxFilesize":2}},"error":null} [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Http/JsonResponse.php","line":68,"class":"Jtl\\Connector\\Core\\Http\\JsonResponse","function":"prepareAndSend"}
[2021-05-17T12:51:24.151464+00:00] rpc.DEBUG: {   "method": "core.connector.init",   "params": null,   "jtlrpc": "2.0",   "id": "f8199dbc0abf4baea5e7196eaa4076aa" } [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Application/Application.php","line":276,"class":"Jtl\\Connector\\Core\\Application\\Application","function":"run"}
[2021-05-17T12:51:24.156843+00:00] rpc.DEBUG: {"jtlrpc":"2.0","id":"f8199dbc0abf4baea5e7196eaa4076aa","result":true,"error":null} [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Http/JsonResponse.php","line":68,"class":"Jtl\\Connector\\Core\\Http\\JsonResponse","function":"prepareAndSend"}
[2021-05-17T12:51:24.391334+00:00] rpc.DEBUG: {   "method": "global_data.pull",   "params": {     "limit": 50,     "filters": {}   },   "jtlrpc": "2.0",   "id": "68beecb2f4184c54b7f1f33db2ee2416" } [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Application/Application.php","line":276,"class":"Jtl\\Connector\\Core\\Application\\Application","function":"run"}
[2021-05-17T12:51:25.244042+00:00] rpc.DEBUG: {"jtlrpc":"2.0","id":"68beecb2f4184c54b7f1f33db2ee2416","result":[{"configGroups":[],"configItems":[],"crossSellingGroups":[],"currencies":[{"id":["56b0d7e12feb47838e2cd6c49f2cfd82",0],"delimiterCent":",","delimiterThousand":".","factor":1,"hasCurrencySignBeforeValue":false,"isDefault":true,"iso":"EUR","name":"Euro","nameHtml":"\u0026euro;"}],"customerGroups":[{"id":["c2c6154f05b342d4b2da85e51ec805c9",0],"applyNetPrice":false,"discount":0,"isDefault":true,"attributes":[],"i18ns":[{"languageIso":"","name":"Endkunde","languageISO":""}]},{"id":["b1d7b4cbe4d846f0b323a9d840800177",0],"applyNetPrice":true,"discount":0,"isDefault":false,"attributes":[],"i18ns":[{"languageIso":"","name":"Haendler","languageISO":""}]}],"languages":[{"languageIso":"ger","id":["1",0],"isDefault":true,"nameEnglish":"German","nameGerman":"Deutsch","languageISO":"ger"}],"measurementUnits":[],"productTypes":[],"shippingClasses":[],"shippingMethods":[{"id":["7adeec3fbbe942c6a8e910ead168703d",0],"name":"DHL Versand"}],"taxRates":[{"id":["f1ec9220f3f64049926a83f5ba8df985",0],"rate":19},{"id":["ec0a029a85554745aa42fb708d3c5c8c",0],"rate":7}],"units":[],"warehouses":[]}],"error":null} [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Http/JsonResponse.php","line":68,"class":"Jtl\\Connector\\Core\\Http\\JsonResponse","function":"prepareAndSend"}
[2021-05-17T12:51:25.479412+00:00] rpc.DEBUG: {   "method": "product.push",   "params": [     {       "entityType": "Product",       "categories": [],       "configGroups": [],       "fileDownloads": [],       "i18ns": [         {           "measurementUnitName": null,           "unitName": null,           "deliveryStatus": null,           "productId": [             "",             1           ],           "languageISO": "ger",           "name": "Test Schokolade",           "description": "Lange Beschreibung",           "shortDescription": "Kurzbeschreibung",           "urlPath": "",           "metaDescription": "",           "titleTag": "",           "metaKeywords": ""         }       ],       "invisibilities": [],       "mediaFiles": [],       "prices": [         {           "customerId": [             "",             0           ],           "items": [             {               "productPriceId": [                 "",                 0               ],               "quantity": 0,               "netPrice": 0.0             }           ],           "customerGroupId": [             "c2c6154f05b342d4b2da85e51ec805c9",             1           ],           "sku": null,           "vat": 19.0,           "id": [             "",             0           ],           "productId": [             "",             1           ]         },         {           "customerId": [             "",             0           ],           "items": [             {               "productPriceId": [                 "",                 0               ],               "quantity": 0,               "netPrice": 0.0             }           ],           "customerGroupId": [             "b1d7b4cbe4d846f0b323a9d840800177",             2           ],           "sku": null,           "vat": 19.0,           "id": [             "",             0           ],           "productId": [             "",             1           ]         },         {           "customerId": [             "",             0           ],           "items": [             {               "productPriceId": [                 "",                 0               ],               "quantity": 0,               "netPrice": 0.0             }           ],           "customerGroupId": [             "",             0           ],           "sku": null,           "vat": 19.0,           "id": [             "",             0           ],           "productId": [             "",             1           ]         }       ],       "partsLists": [],       "attributes": [],       "specialPrices": [],       "specifics": [],       "warehouseInfo": [],       "variations": [],       "checksums": [],       "varCombinations": [],       "customerGroupPackagingQuantities": [],       "stockLevel": {         "productId": [           "",           1         ],         "stockLevel": 42.0,         "sku": null       },       "supplierStockLevel": 0.0,       "vat": 19.0,       "basePriceFactor": 0.0,       "supplierDeliveryTime": 0,       "measurementUnitCode": "",       "basePriceUnitCode": "",       "basePriceUnitName": "",       "minBestBeforeDate": null,       "manufacturer": {         "entityType": "Manufacturer",         "i18ns": [],         "id": [           "",           1         ],         "name": "Test Hersteller",         "websiteUrl": "",         "sort": 0,         "urlPath": ""       },       "id": [         "",         1       ],       "sku": "1",       "recommendedRetailPrice": 0.0,       "note": "",       "isActive": true,       "minimumOrderQuantity": 0.0,       "ean": "",       "isTopProduct": false,       "shippingWeight": 0.0,       "isNewProduct": false,       "isSerialNumber": false,       "isDivisible": false,       "considerStock": true,       "permitNegativeStock": false,       "minimumQuantity": 0.0,       "purchasePrice": 0.0,       "considerVariationStock": false,       "modified": "2021-05-17T11:46:52Z",       "considerBasePrice": false,       "basePriceDivisor": 0.0,       "keywords": "",       "taric": "",       "originCountry": "",       "creationDate": "2021-05-17T11:39:41Z",       "availableFrom": null,       "sort": 0,       "shippingClassId": [         "",         1       ],       "productWeight": 0.0,       "manufacturerNumber": "",       "serialNumber": "",       "isbn": "",       "unNumber": "",       "hazardIdNumber": "",       "asin": "",       "masterProductId": [         "",         0       ],       "isMasterProduct": false,       "packagingQuantity": 0.0,       "partsListId": [         "",         0       ],       "upc": "",       "productTypeId": [         "",         0       ],       "epid": "",       "isBestBefore": false,       "isBatch": false,       "manufacturerId": [         "",         1       ],       "measurementUnitId": [         "",         0       ],       "measurementQuantity": 0.0,       "basePriceUnitId": [         "",         0       ],       "basePriceQuantity": 0.0,       "width": 0.0,       "height": 0.0,       "length": 0.0,       "unitId": [         "",         0       ],       "nextAvailableInflowDate": null,       "additionalHandlingTime": 0,       "nextAvailableInflowQuantity": 0.0,       "newReleaseDate": "2021-05-17T11:37:33Z"     }   ],   "jtlrpc": "2.0",   "id": "5966eeca79f64e389bd0670cc5e9f7e8" } [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Application/Application.php","line":276,"class":"Jtl\\Connector\\Core\\Application\\Application","function":"run"}
[2021-05-17T12:51:26.364403+00:00] rpc.DEBUG: {"jtlrpc":"2.0","id":"5966eeca79f64e389bd0670cc5e9f7e8","result":[{"id":["",1],"basePriceUnitId":["",0],"manufacturerId":["",1],"masterProductId":["",0],"measurementUnitId":["",0],"partsListId":["",0],"productTypeId":["",0],"shippingClassId":["",1],"unitId":["",0],"additionalHandlingTime":0,"asin":"","availableFrom":null,"basePriceDivisor":0,"basePriceFactor":0,"basePriceQuantity":0,"basePriceUnitCode":"","basePriceUnitName":"","considerBasePrice":false,"considerStock":true,"considerVariationStock":false,"creationDate":"2021-05-17T11:39:41+00:00","discountable":true,"ean":"","epid":"","hazardIdNumber":"","height":0,"isActive":true,"isBatch":false,"isBestBefore":false,"isbn":"","isDivisible":false,"isMasterProduct":false,"isNewProduct":false,"isSerialNumber":false,"isTopProduct":false,"keywords":"","length":0,"manufacturerNumber":"","manufacturer":{"id":["",1],"name":"Test Hersteller","sort":0,"urlPath":"","websiteUrl":"","i18ns":[]},"measurementQuantity":0,"measurementUnitCode":"","minBestBeforeDate":null,"minimumOrderQuantity":0,"minimumQuantity":0,"modified":"2021-05-17T11:46:52+00:00","newReleaseDate":"2021-05-17T11:37:33+00:00","nextAvailableInflowDate":null,"nextAvailableInflowQuantity":0,"note":"","originCountry":"","packagingQuantity":0,"permitNegativeStock":false,"productWeight":0,"purchasePrice":0,"recommendedRetailPrice":0,"serialNumber":"","shippingWeight":0,"sku":"1","sort":0,"stockLevel":{"stockLevel":42},"supplierDeliveryTime":0,"supplierStockLevel":0,"taric":"","unNumber":"","upc":"","vat":19,"width":0,"attributes":[],"categories":[],"checksums":[],"configGroups":[],"customerGroupPackagingQuantities":[],"fileDownloads":[],"i18ns":[{"languageIso":"de","deliveryStatus":"","description":"Lange Beschreibung","measurementUnitName":"","metaDescription":"","metaKeywords":"","name":"Test Schokolade","shortDescription":"Kurzbeschreibung","titleTag":"","unitName":"","urlPath":"","languageISO":"ger"}],"invisibilities":[],"mediaFiles":[],"partsLists":[],"prices":[{"id":["",0],"customerGroupId":["c2c6154f05b342d4b2da85e51ec805c9",1],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]},{"id":["",0],"customerGroupId":["b1d7b4cbe4d846f0b323a9d840800177",2],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]},{"id":["",0],"customerGroupId":["",0],"customerId":["",0],"productId":["",1],"items":[{"netPrice":0,"quantity":0}]}],"specialPrices":[],"specifics":[],"variations":[],"warehouseInfo":[]}],"error":null} [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Http/JsonResponse.php","line":68,"class":"Jtl\\Connector\\Core\\Http\\JsonResponse","function":"prepareAndSend"}
[2021-05-17T12:51:26.395741+00:00] rpc.DEBUG: {   "method": "connector.finish",   "params": null,   "jtlrpc": "2.0",   "id": "cdd28adadaa9414495ee8426e0243ee5" } [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Application/Application.php","line":276,"class":"Jtl\\Connector\\Core\\Application\\Application","function":"run"}
[2021-05-17T12:51:26.399977+00:00] rpc.DEBUG: {"jtlrpc":"2.0","id":"cdd28adadaa9414495ee8426e0243ee5","result":true,"error":null} [] {"file":"{CONNECTOR_ROOT}/vendor/jtl/connector/src/Http/JsonResponse.php","line":68,"class":"Jtl\\Connector\\Core\\Http\\JsonResponse","function":"prepareAndSend"}

Laut diesem wird für product.push eine korrekte Antwort generiert, also ohne den Prefix.

Wenn ich mir die Response aber in Wireshark ansehe dann sehe ich, dass dort ein Prefix vor der Antwort steht:

Bildschirmfoto 2021-05-17 um 14.59.13.png
 
Zuletzt bearbeitet:

Immanuel

Moderator
Mitarbeiter
24. August 2016
1.542
323
Kann es sein, dass du irgendwo für Debugzwecke ein echo reingesetzt hast? Was ist, wenn du den Vendor Ordner löschst und nochmal per composer neu installierst/updatest? Sicherheitshalber würde ich auch ../var/ cache leeren.
 
  • Gefällt mir
Reaktionen: janoschpelzer

janoschpelzer

Mitglied
7. August 2020
11
1
Hi, wow das war tatsächlich das Problem, es lag an diesem echo statement in der PrimaryKeyMapper Klasse:

Code:
   public function getEndpointId(int $type, int $hostId): ?string
    {
        $modelName = Model::getModelByType($type);

        echo $modelName;
        
        return null;
    }

Aber warum das zu dem Fehler führen könnte ist mir ein Rätsel...

Vielen Dank auf jeden Fall!
 
  • Gefällt mir
Reaktionen: Immanuel

Immanuel

Moderator
Mitarbeiter
24. August 2016
1.542
323
Die Ausgabe wurde aus irgendeinem Grund in den Response Body vor die eigentliche Payload gesetzt. Möglicherweise was mit Output Buffering? Ist nur spekuliert, müsste ich debuggen um etwas konkreteres sagen zu können.
 
Ähnliche Themen
Titel Forum Antworten Datum
Neu DB-Fehler beim Update von 1.5 auf 1.6: Foreign Key in tBestellung JTL-Wawi - Fehler und Bugs 0
Verwiesen an Support 3400 Fehler im Logbuch vom Shop 5 JTL-Shop - Fehler und Bugs 1
Fehler bei Update: "" is not a valid SemVer Upgrade JTL-Shop4 auf JTL-Shop5 0
Neu Ebay - Der Remoteserver hat einen Fehler zurückgegeben: (500) Interner Serverfehler eBay-Anbindung - Fehler und Bugs 2
Neu Fehler beim Verpacken JTL-WMS / JTL-Packtisch+ - Fehler und Bugs 1
Neu Umzug von Server 2012R2 mit SQL-Server 2012 auf Server 2019 mit SQL-Server 2017 Fehler Collation Installation von JTL-Wawi 1
Neu Fehler bei Artikeldetailseite auf der Startseite Betrieb / Pflege von JTL-Shop 0
Neu UPDATE Fehler von 1.5.36.2 auf 1.5.51.1 Installation von JTL-Wawi 0
Neu Exec Direct, es ist ein Fehler aufgetreten, Aufträge öffnen und bearbeiten JTL-Wawi - Fehler und Bugs 0
Neu Fehler: #959190594F6282F Shopware-Connector 2
Neu Fehler beim Anlegen von Verkaufskanal Shop5 im Testsystem Onlineshop-Anbindung 0
Neu Plugin: "JTL Theme Editor" in Shop 5 - Fehler beim Speichern der Datei. Allgemeine Fragen zu JTL-Shop 5
Neu [DHL] Erstellen von Versandetiketten kommt zum Fehler - die Ausgewählte Abrechnungsnummer steht nicht zur Verfügung JTL-ShippingLabels - Fehler und Bugs 0
Neu Fehler beim Anlegen von Verkaufskanal Shop5 im Testsystem Installation / Updates von JTL-Shop 3
Verwiesen an Support In der Aktion '50' ist ein Fehler aufgetreten .. JTL-Workflows - Fehler und Bugs 2
Neu WooCommerce Artikel Synchronisation bringt Fehler WooCommerce-Connector 0
Neu Fehler beim Shopware Shopabgleich JTL-Wawi - Fehler und Bugs 0
Neu Kein Amazon Token mehr in Einstellungen vorhanden - Fehler PrimeSeller Versand Amazon-Anbindung - Fehler und Bugs 2
Beantwortet Plugin entfernen? SEO-Cleaner [35 Fehler: XML-Version entspricht nicht der Konvention.] Betrieb / Pflege von JTL-Shop 2
Neu Fehler bei der Auftragserstellung: Für die aktuelle Transaktion kann kein Commit ausgeführt werden User helfen Usern - Fragen zu JTL-Wawi 0
Neu HTTP 500 Fehler bei Newsbeiträgen! User helfen Usern - Fragen zu JTL-Wawi 0
Neu Update Fehler auf JTL-Wawi Open Beta 1.6.31.2 Installation von JTL-Wawi 2
Neu Update auf Open Beta Fehler Installation von JTL-Wawi 2
Gelöst Pos verbindungs Fehler Einrichtung / Updates von JTL-POS 2
Neu Fehler bei Update von 1.35 auf neueste Version JTL-Wawi - Fehler und Bugs 2
Gelöst Fehler Warenpost International (Kilotarif) JTL-ShippingLabels - Fehler und Bugs 1
Neu Servicedesk verusacht Fehler "zu wenig Arbeitsspeicher" Servicedesk (Beta) 1
Neu Fehler beim Abgleich WooCommerce-Connector 0
Neu eBay Abgleich Fehler "Error calling EaEbay" eBay-Anbindung - Fehler und Bugs 4
Neu JTL-WAWI 1.6.31.2 Ebay Abgleich Fehler eBay-Anbindung - Fehler und Bugs 4
Issue angelegt UstID Fehler beim Import über Ameise - Wawi V1.5.49.1 User helfen Usern - Fragen zu JTL-Wawi 2
Neu Fehler WMS "Ohne Fehlmengenbehandlung nicht erlaubt" JTL-WMS / JTL-Packtisch+ - Fehler und Bugs 0
Backend Fehler 500 nach Upgrade von Vers. 4.6.17 auf 5.1.1 Upgrade JTL-Shop4 auf JTL-Shop5 8
Neu Plugin für DHL Wunschpaket Standort Fehler? Plugins für JTL-Shop 25
Neu Überweisung - Bei der Kommunikation mit MoneyBookers ist ein Fehler aufgetreten Allgemeine Fragen zu JTL-Shop 0
Neu Fehler beim Anlegen einer Umlagerung / Amazon-SKU Fehler Amazon-Lister - Fehler und Bugs 0
Neu Fehler nach upload zu Ebay eBay-Anbindung - Fehler und Bugs 0
Neu Fehler im Logbuch + häufiger Shopabsturz mit 503-Fehler JTL-Shop - Fehler und Bugs 2
Neu INSERT Fehler beim Duplizieren von Artikeln JTL-Wawi - Fehler und Bugs 1
Neu Amazon Anbindung fehler beim Authorsieren ein neues Konto Amazon-Anbindung - Fehler und Bugs 0
Neu Fehler bei Update bei 1.5.30 JTL-Wawi - Fehler und Bugs 1
Neu SQL Fehler Statistik/Auswertung JTL-Wawi - Fehler und Bugs 1
Neu WAWI Fehler bei Statistik - eigene Vorlage JTL-Wawi - Fehler und Bugs 1
Neu Shop Connector Update, feature bzw features.json Datei Fehler Shopware-Connector 4
Neu Fehler beim Abgleich WooCommerce-Connector 2
Neu Fehler 500 Internal Server JTL-Shop4 JTL-Shop - Fehler und Bugs 0
Neu Plötzlich Cache-Fehler und kein Zugang mehr zum Shop-Backend JTL-Shop - Fehler und Bugs 0
Neu Fehler LS-POS Shopgutscheine am 30.09/01.10.21 Fragen rund um LS-POS 0
Neu Fehler in der Konfiguration bei Artikel in Warenkorb Allgemeine Fragen zu JTL-Shop 0
Gelöst [Gelöst] Shopkategorien Einbindung Fehler eBay-Designvorlagen - Fehler und Bugs 2

Ähnliche Themen