【问题标题】:magento rest api 500 internal server error while fetch all products获取所有产品时magento rest api 500内部服务器错误
【发布时间】:2016-03-22 09:43:41
【问题描述】:

当我尝试使用 rest api 获取所有产品列表时。

http://magento-11498-25844-78339.cloudwaysapps.com/api/rest/products

显示 500 内部服务器错误

【问题讨论】:

标签: api rest magento


【解决方案1】:

我可以看到 Magento rest API 没有配置。需要以下两个步骤。 准备 REST API

使用 REST API 资源需要这些步骤:

1. Set up permissions for REST resource operations from Magento Admin Panel.
2. Configure the attributes for different users types in Magento Admin Panel. There are 3 different types of users in accessing the data: Admin, Customer, and Guest. Admin is the backend logged in user, Customer is the fronted logged in user, and Guest is a non-logged in fronted user.

您也可以关注以下网址以获得更好的帮助。 http://devdocs.magento.com/guides/m1x/api/rest/introduction.html

【讨论】:

  • 请按照我下面的回答
【解决方案2】:

请按照以下步骤操作,这对我来说效果很好。 1.登录管理面板 2.系统>>Web服务>>休息角色 3.然后点击客人然后选择目录所有项目然后保存角色 4.然后点击系统>> Web服务>> Rest Attributes然后全选然后保存。

希望它能正常工作。谢谢

请也看一下屏幕截图。

【讨论】:

  • 完成上述步骤后,我又遇到了同样的错误
猜你喜欢
  • 1970-01-01
  • 2022-11-26
  • 2016-01-10
  • 2011-10-20
  • 1970-01-01
  • 2017-10-17
  • 1970-01-01
  • 1970-01-01
  • 2018-09-30
相关资源
最近更新 更多