我在产品属性 API 上收到“请求与任何路由不匹配”错误
网址 -
http://localhost/magento/rest/V1/marketplace/productAttribut/get
错误信息
{
["message"]=>
string(33) "Request does not match any route."
}
请删除产品属性中的特殊字符。
这里的问题(除了 @Robbie Averill 指出的拼写错误之外)是
module-marketplace
没有 Web API。您可以通过以下方式确认:
/vendor/magento/module-marketplace
。注意该目录下没有etc/webapi.xml
。 /vendor/module-integration
。看到这个目录下有is一个etc/webapi.xml
。 虽然这是一个旧线程,但请检查请求类型 POST/GET 或 PUT,
请求标头的不匹配也会导致错误。
{ "message": "请求与任何路由都不匹配。", “踪迹”:空 }
希望这会对某人有所帮助。