WSO2 API 管理员 API 身份验证失败

WSO2 API Manager API authentication failure

谁能告诉我为什么 WSo2 API 管理器不验证?我已经设置了两个 WSo2 API Manager 1.8.0 实例并创建了一个 api.it 工作正常的原型 api。在保存并发布并使用访问令牌调用 api 之后 获得以下回复

<ams:fault xmlns:ams="http://wso2.org/apimanager/security">
<ams:code>900906</ams:code>
<ams:message>
No matching resource found in the API for the given request
</ams:message>
<ams:description>
Access failure for API: /api/stature, version: 1.0.0 with key: null
</ams:description>
</ams:fault>

这里是 wso2carbon.log:

TID[-1234] [AM] [2015-01-19 00:12:47,263] ERROR {org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler} - 
API authentication failure org.wso2.carbon.apimgt.gateway.handlers.security.oauth.OAuthAuthenticator.authenticate(OAuthAuthenticator.java:212) 
org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleRequest(APIAuthenticationHandler.java:94) 
org.apache.synapse.rest.API.process(API.java:284) org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:83) 
org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:64) 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220) 
org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83) 
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) 
org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344) 
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:168) 
org.apache.axis2.transport.base.threads.NativeWorkerPool.run(NativeWorkerPool.java:172) 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
java.lang.Thread.run(Thread.java:745) 
No matching resource found in the API for the given request
  1. 当您的请求 URL 错误并且 APIManager 无法将其与现有已发布的 API 相匹配时,就会出现上述问题。
  2. 如果已发布的 API 配置未在网关中正确部署。你可以检查这个,浏览到 Gateway 的突触配置 folder/api 文件夹。(inside/repository/deployment/server)
  3. 如果相关 API 条目在 APIM 数据库中丢失。

您尝试使用分布式设置吗?你改变了数据库吗?检查以上3点,就可以快速找出问题所在。