05-17-2023 02:52 PM
Hi.
I'm new to ShipStation. Just set up magento 2 integration. the test connection works fine. When i try to import orders i get this error: An error occurred attempting to update orders: Invalid XML. Error: 'Data at the root level is invalid. Line 1, position 1.' We received: 'An error has happened during application run. See exception log for details. '
Magento 2.4.2-p1
The actual error from the log:
[2023-05-17 21:48:50] main.CRITICAL: TypeError: Argument 2 passed to Auctane\Api\Model\Action\Export::addXmlElement() must be of the type string, null given, called in /home/website/public_html/website.com/vendor/auctane/api/Model/Action/Export.php on line 360 and defined in /home/website/public_html/website.com/vendor/auctane/api/Model/Action/Export.php:314
Stack trace:
#0 /home/website/public_html/website.com/vendor/auctane/api/Model/Action/Export.php(360): Auctane\Api\Model\Action\Export->addXmlElement('Phone', NULL)
#1 /home/website/public_html/website.com/vendor/auctane/api/Model/Action/Export.php(291): Auctane\Api\Model\Action\Export->_getBillingInfo(Object(Magento\Sales\Model\Order\Interceptor))
#2 /home/website/public_html/website.com/vendor/auctane/api/Model/Action/Export.php(244): Auctane\Api\Model\Action\Export->writeOrderXml(Object(Magento\Sales\Model\Order\Interceptor))
#3 /home/website/public_html/website.com/vendor/auctane/api/Model/Action/Export.php(211): Auctane\Api\Model\Action\Export->writeShippableOrdersXml(Object(Magento\Sales\Model\ResourceModel\Order\Collection\Interceptor))
#4 /home/website/public_html/website.com/vendor/auctane/api/Controller/Auctane/Index.php(142): Auctane\Api\Model\Action\Export->process(Object(Magento\Framework\App\Request\Http), Array)
#5 /home/website/public_html/website.com/vendor/magento/framework/Interception/Interceptor.php(58): Auctane\Api\Controller\Auctane\Index->execute()
#6 /home/website/public_html/website.com/vendor/magento/framework/Interception/Interceptor.php(138): Auctane\Api\Controller\Auctane\Index\Interceptor->___callParent('execute', Array)
#7 /home/website/public_html/website.com/vendor/magento/framework/App/Action/Plugin/ActionFlagNoDispatchPlugin.php(51): Auctane\Api\Controller\Auctane\Index\Interceptor->Magento\Framework\Interception\{closure}()
#8 /home/website/public_html/website.com/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Framework\App\Action\Plugin\ActionFlagNoDispatchPlugin->aroundExecute(Object(Auctane\Api\Controller\Auctane\Index\Interceptor), Object(Closure))
#9 /home/website/public_html/website.com/vendor/magento/framework/Interception/Interceptor.php(153): Auctane\Api\Controller\Auctane\Index\Interceptor->Magento\Framework\Interception\{closure}()
#10 /home/website/public_html/website.com/generated/code/Auctane/Api/Controller/Auctane/Index/Interceptor.php(23): Auctane\Api\Controller\Auctane\Index\Interceptor->___callPlugins('execute', Array, Array)
#11 /home/website/public_html/website.com/vendor/magento/framework/App/Action/Action.php(111): Auctane\Api\Controller\Auctane\Index\Interceptor->execute()
#12 /home/website/public_html/website.com/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#13 /home/website/public_html/website.com/vendor/magento/framework/Interception/Interceptor.php(138): Auctane\Api\Controller\Auctane\Index\Interceptor->___callParent('dispatch', Array)
#14 /home/website/public_html/website.com/vendor/magento/framework/Interception/Interceptor.php(153): Auctane\Api\Controller\Auctane\Index\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#15 /home/website/public_html/website.com/generated/code/Auctane/Api/Controller/Auctane/Index/Interceptor.php(32): Auctane\Api\Controller\Auctane\Index\Interceptor->___callPlugins('dispatch', Array, Array)
#16 /home/website/public_html/website.com/vendor/magento/framework/App/FrontController.php(186): Auctane\Api\Controller\Auctane\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#17 /home/website/public_html/website.com/vendor/magento/framework/App/FrontController.php(118): Magento\Framework\App\FrontController->processRequest(Object(Magento\Framework\App\Request\Http), Object(Auctane\Api\Controller\Auctane\Index\Interceptor))
#18 /home/website/public_html/website.com/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#19 /home/website/public_html/website.com/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#20 /home/website/public_html/website.com/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(99): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#21 /home/website/public_html/website.com/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#22 /home/website/public_html/website.com/vendor/amasty/aminvisiblecaptcha/Plugin/Framework/App/FrontControllerInterface/ValidateCaptcha.php(123): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#23 /home/website/public_html/website.com/vendor/magento/framework/Interception/Interceptor.php(135): Amasty\InvisibleCaptcha\Plugin\Framework\App\FrontControllerInterface\ValidateCaptcha->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#24 /home/website/public_html/website.com/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(75): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#25 /home/website/public_html/website.com/vendor/magento/framework/Interception/Interceptor.php(135): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#26 /home/website/public_html/website.com/vendor/amasty/geoipredirect/Plugin/Action.php(350): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#27 /home/website/public_html/website.com/vendor/magento/framework/Interception/Interceptor.php(135): Amasty\GeoipRedirect\Plugin\Action->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#28 /home/website/public_html/website.com/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#29 /home/website/public_html/website.com/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, NULL)
#30 /home/website/public_html/website.com/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#31 /home/website/public_html/website.com/generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http->launch()
#32 /home/website/public_html/website.com/vendor/magento/framework/App/Bootstrap.php(263): Magento\Framework\App\Http\Interceptor->launch()
#33 /home/website/public_html/website.com/pub/index.php(29): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#34 {main} [] []
Is anyone familiar with this or have any suggestions? I'm afraid that without Magento integration ShipStation really isn't going to be useful for us.
Thanks for any insights.
Trevor