请求与 Magento 2 中的任何路由都不匹配?

问题描述 投票:0回答:3

我在产品属性 API 上收到“请求与任何路由不匹配”错误

网址 -

http://localhost/magento/rest/V1/marketplace/productAttribut/get

错误信息

{
  ["message"]=>
  string(33) "Request does not match any route."
}
magento magento2
3个回答
0
投票

请删除产品属性中的特殊字符。


0
投票

这里的问题(除了 @Robbie Averill 指出的拼写错误之外)是

module-marketplace
没有 Web API。您可以通过以下方式确认:

  • cd 至
    /vendor/magento/module-marketplace
    。注意该目录下没有
    etc/webapi.xml
  • cd 至
    /vendor/module-integration
    。看到这个目录下有is一个
    etc/webapi.xml

0
投票

虽然这是一个旧线程,但请检查请求类型 POST/GET 或 PUT,

请求标头的不匹配也会导致错误。

{ "message": "请求与任何路由都不匹配。", “踪迹”:空 }

希望这会对某人有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.