I think you are referring to error logs I can find in var/www/html/shopware{version}/shopware_error.log
This is example:
[Mon Jun 15 13:56:28.257277 2020] [php7:error] [pid 23555] [client HIDDEN IP] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Shopware\Models\Property\Group::setOptions() must be of the type array, null given, called in /var/www/html/shopwarece/engine/Shopware/Components/Model/ModelEntity.php on line 53 and defined in /var/www/html/shopwarece/engine/Shopware/Models/Property/Group.php:245
Stack trace: #0 /var/www/html/shopwarece/engine/Shopware/Components/Model/ModelEntity.php(53): Shopware\Models\Property\Group->setOptions(NULL) #1 /var/www/html/shopwarece/engine/Shopware/Components/Api/Resource/PropertyGroup.php(108): Shopware\Components\Model\ModelEntity->fromArray(Array) #2 /var/www/html/shopwarece/engine/Shopware/Controllers/Api/PropertyGroups.php(80): Shopware\Components\Api\Resource\PropertyGroup->create(Array) #3 /var/www/html/shopwarece/engine/Library/Enlight/Controller/Action.php(192): Shopware_Controllers_Api_PropertyGroups->postAction() #4 /var/www/html/shopwarece/engine/Library/Enlight/Controller/Dispatcher/Default.php(478): Enlight_Controller_Action->dispatch(‘postAction’) #5 /va in /var/www/html/shopwarece/engine/Shopware/Models/Property/Group.php on line 245
You are right, the cause is NULL parameter as “options”.
My mistake is caused by the fact that this worked for shopware version 5.2.16 (NULL as “options”), so I was just straight up serializing object to JSON and sending.
And as you say in 5.6.2 version in shopware it ends with status 500.
Ich möchte API aufrufen zum Erstellen/update [POST / PUT] von propertygroup mit Optionsarray aufrufen, aber ich habe 500 Fehler. Mein error log sagt
"PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to Shopware\Models\Property\Group::addOption() must be an instance of Shopware\Models\Property\Option, array given, called in /var/www/domain/engine/Shopware/Models/Property/Group.php on line 267 and defined in /var/www/domain/engine/Shopware/Models/Property/Group.php:250