Preconditions
Magento 2.1.9 PHP 5.6 Ubuntu 16
Expected result
here is log
exception.log:
[2018-03-28 19:38:24] main.CRITICAL: exception 'Exception' with message 'Notice: Array to string conversion in /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php on line 2929' in /var/www/html/vendor/magento/framework/App/ErrorHandler.php:61
Stack trace:
/var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(2929): Magento\Framework\App\ErrorHandler->handler(8, 'Array to string...', '/var/www/html/v...', 2929, Array)
/var/www/html/vendor/magento/framework/Model/ResourceModel/AbstractResource.php(168): Magento\Framework\DB\Adapter\Pdo\Mysql->prepareColumnValue(Array, Array)
/var/www/html/vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php(728): Magento\Framework\Model\ResourceModel\AbstractResource->_prepareDataForTable(Object(Magento\Quote\Model\Quote\Address), 'quote_address').....
{main} [] []
[2018-03-28 19:38:24] main.CRITICAL: exception 'Magento\Framework\Exception\InputException' with message 'Unable to save address. Please check input data.' in /var/www/html/vendor/magento/module-quote/Model/ShippingAddressManagement.php:128
Stack trace:
/var/www/html/vendor/magento/module-quote/Model/Quote/ShippingAssignment/ShippingProcessor.php(66): Magento\Quote\Model\ShippingAddressManagement->assign('71', Object(Magento\Quote\Model\Quote\Address))
/var/www/html/vendor/magento/module-quote/Model/Quote/ShippingAssignment/ShippingAssignmentProcessor.php(110): Magento\Quote\Model\Quote\ShippingAssignment\ShippingProcessor->save(Object(Magento\Quote\Model\Shipping), Object(Magento\Quote\Model\Quote))
/var/www/html/vendor/magento/module-quote/Model/Quote/ShippingAssignment/ShippingAssignmentPersister.php(34): Magento\Quote\Model\Quote\ShippingAssignment\ShippingAssignmentProcessor->save(Object(Magento\Quote\Model\Quote), Object(Magento\Quote\Model\ShippingAssignment))
/var/www/html/vendor/magento/module-quote/Model/QuoteRepository/SaveHandler.php(133): Magento\Quote\Model\Quote\ShippingAssignment\ShippingAssignmentPersister->save(Object(Magento\Quote\Model\Quote), Object(Magento\Quote\Model\ShippingAssignment))
/var/www/html/vendor/magento/module-quote/Model/QuoteRepository/SaveHandler.php(106): Magento\Quote\Model\QuoteRepository\SaveHandler->processShippingAssignment(Object(Magento\Quote\Model\Quote))
/var/www/html/vendor/magento/module-quote/Model/QuoteRepository.php(161): Magento\Quote\Model\QuoteRepository\SaveHandler->save(Object(Magento\Quote\Model\Quote))
/var/www/html/vendor/magento/module-checkout/Model/ShippingInformationManagement.php(156): Magento\Quote\Model\QuoteRepository->save(Object(Magento\Quote\Model\Quote))
/var/www/html/vendor/magento/framework/Interception/Interceptor.php(146): Magento\Checkout\Model\ShippingInformationManagement->saveAddressInformation('71', Object(Magento\Checkout\Model\ShippingInformation)) /var/www/html/var/generation/Magento/Checkout/Model/ShippingInformationManagement/Interceptor.php(26): Magento\Checkout\Model\ShippingInformationManagement\Interceptor->___callPlugins('saveAddressInfo...', Array, Array)
/var/www/html/vendor/magento/module-checkout/Model/GuestShippingInformationManagement.php(45): Magento\Checkout\Model\ShippingInformationManagement\Interceptor->saveAddressInformation('71', Object(Magento\Checkout\Model\ShippingInformation))
[internal function]: Magento\Checkout\Model\GuestShippingInformationManagement->saveAddressInformation('35a2c05016bbdc8...', Object(Magento\Checkout\Model\ShippingInformation))
/var/www/html/vendor/magento/module-webapi/Controller/Rest.php(307): call_user_func_array(Array, Array)
/var/www/html/vendor/magento/module-webapi/Controller/Rest.php(216): Magento\Webapi\Controller\Rest->processApiRequest()
/var/www/html/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(24): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))
/var/www/html/vendor/magento/framework/App/Http.php(135): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
/var/www/html/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
/var/www/html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
{main} [] []