Invalid XML - Element 'config': Missing child element(s)?

by Jessie   Last Updated December 08, 2016 08:03 AM

When making the request URL: {localhost}/default/rest/default/V1/guest-carts/0b5bcc2be8ad76a0328858ee01fadb17/estimate-shipping-methods

Status Code:500

Response:

1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid XML in file C:/xampp/htdocs/local/vendor/magento/module-checkout/etc/webapi_rest/events.xml: Element 'config': Missing child element(s). Expected is ( event ). Line: 2



Answers 1


Take a look at the Unit Test: vendor/magento/framework/Event/Test/Unit/Config/_files/invalidEventsXmlArray.php

'without_event_handle' => [
        '<?xml version="1.0"?><config></config>',
        ["Element 'config': Missing child element(s). Expected is ( event ).\nLine: 1\n"],
    ],

So, may need to check our events xml config in our custom module again.

Khoa TruongDinh
Khoa TruongDinh
December 08, 2016 13:05 PM

Related Questions




Unable to add form in magento 2 custom checkout step

Updated September 28, 2017 17:09 PM