Communication's component validator does not propagate exceptions, obscuring the cause of the error #14555
Labels
Component: Framework/Communication
Event: squashtoberfest
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
good first issue
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
It was quite hard to understand the issue with my request schema until I went into
Magento\Framework\Communication\Config\Validator
and changed exception instantiation fromnew LogicException($message)
tonew LogicException($message, 0, $e)
. My issue was to do with this in the end:Each getter must have a doc block
. It would be better if it was possible to see that error message out of the box, but instead I was only seeingRequest schema definition for topic "..." should reference existing service class. Given ...
(while the class obviously existed).Preconditions
Magento 2.2.5
Steps to reproduce
communication.xml
):Magento\Framework\Communication\Config->getTopic("foo_topic")
Expected result
Actual result
The text was updated successfully, but these errors were encountered: