2

I am working with swagger api but when hit this url :-

http://localhost/magentosetup/swagger

I get the error when I am trying to use api please help. :-


500 : {"message":"Class \"String\" does not exist. Please note that namespace must be specified.","trace":"#0 \/mnt\/data\/home\/134855.cloudwaysapps.com\/etfeurwasq\/public_html\/vendor\/magento\/framework\/Reflection\/TypeProcessor.php(212): Magento\\Framework\\Reflection\\TypeProcessor->register('String')\n#1 \/mnt\/data\/home\/134855.cloudwaysapps.com\/etfeurwasq\/public_html\/vendor\/magento\/framework\/Reflection\/TypeProcessor.php(181): Magento\\Framework\\Reflection\\TypeProcessor->_processMethod(Object(Zend\\Code\\Reflection\\MethodReflection), 
asked Nov 28, 2018 at 9:48
1

1 Answer 1

1

In my case this error occurred when setting an extension attribute value with a wrong type where type string was expected.

Aligning the extension attribute value type with the expected type fixed the issue.

answered Jan 12, 2022 at 10:46

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.