v1.0.5: Fix incompatibility between module with swagger

Created by Jane D, Modified on Thu, 14 Apr 2022 at 02:48 PM by Jane D

QUESTION:


When the extension is enabled on my site M2.4.3, SOAP stops working with error: The "array" class doesn't exist and the namespace must be specified (command setup:di:compile was run).


This also applies to default API endpoints like /soap/default?wsdl&services=backendModuleServiceV1 

[2022-03-28 08:26:27] main.CRITICAL: Report ID: webapi-6241713325a80; Message: The "array" class doesn't exist and the namespace must be specified. Verify and try again. {"exception":"[object] (Exception(code: 0): Report ID: webapi-6241713325a80; Message: The \"array\" class doesn't exist and the namespace must be specified. Verify and try again. at /home/mrat/magento/vendor/magento/framework/Webapi/ErrorProcessor.php:208, LogicException(code: 0): The \"array\" class doesn't exist and the namespace must be specified. Verify and try again. at /home/mrat/magento/vendor/magento/framework/Reflection/TypeProcessor.php:143)"} []


When we disable the module, the error is gone.

Can you please provide a solution for this?


ANSWER:


To fix this error, please edit the file app/code/Bss/CustomerApproval/Api/CustomerApprovalManagementInterface.php as below:



If you need further assistance, please do not hesitate to contact us. We'd be happy to support!

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article