Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento 2.0 API Issue in Attribute Set #4894

Closed
routbiplab opened this issue Jun 6, 2016 · 5 comments
Closed

Magento 2.0 API Issue in Attribute Set #4894

routbiplab opened this issue Jun 6, 2016 · 5 comments

Comments

@routbiplab
Copy link

Steps to reproduce

GET /V1/products/attribute-sets/{attributeSetId}/attributes

Expected result

Return all the attributes related to that attribute set

Actual result

Error:
{
“message”: “Internal Error. Details are available in Magento log file. Report ID: webapi-574ed41d7eb6e”
}
restapi

@vzabaznov
Copy link
Contributor

Hi @routbiplab can you please show what are in webapi-574ed41d7eb6e log?

@vzabaznov vzabaznov added the MX label Jun 8, 2016
@routbiplab
Copy link
Author

routbiplab commented Jun 9, 2016

I found this in the log file :
main.CRITICAL: exception 'ReflectionException' with message 'Report ID: webapi-574ed41d7eb6e ; Message: Class does not exist' in -vendor/magento/framework/Webapi/ErrorProcessor.php:194

Stack trace:
#0 -vendor/magento/framework/Webapi/ErrorProcessor.php(139): Magento\Framework\Webapi\ErrorProcessor->_critical(Object(ReflectionException))
#1 -vendor/magento/module-webapi/Controller/Rest.php(163): Magento\Framework\Webapi\ErrorProcessor->maskException(Object(ReflectionException))
#2 -var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(24): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))
#3 -vendor/magento/framework/App/Http.php(115): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#4 -vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#5 -index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#6 {main} [] []

@routbiplab
Copy link
Author

Hey I got one solution and it worked for me.
Go to
/vendor/magento/module-eav/Model/Entity/Attribute/ AbstractAttribute.php
Search for _getDefaultSourceModel() and Just comment/remove the original code and replace it with:
return $this->getEntityType()->getEntity()->getDefaultAttributeSourceModel();

@oleg-onufer
Copy link
Contributor

Hi @routbiplab.
I could not reproduce the issue. Can you check your problem on the latest version of Magento 2?

@veloraven
Copy link
Contributor

According to contributor guide, tickets without response for two weeks should be closed.
If this issue still reproducible please feel free to create the new one: format new issue according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result and specify Magento version.

magento-engcom-team pushed a commit that referenced this issue Oct 22, 2019
[arcticfoxes] MTS-683: Make elasticsearch6 default search engine in Jenkins build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants