Gelöschter Benutzer 67916
Guest
Hi,
ich kriege seit neustem diesen Fehler hier und kann ihn mir nicht ganz erklären:
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:
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
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