为什么WSO2 API Manager尝试功能失败



我的配置如下:1个带有单独发布者(9446)和存储(端口9447)的服务器。两者均配置为共享的gov/config注册表(请注意,发布者除Localhost外不同:远程实例URL的9446/注册表:

<dbConfig name="govregistry">
    <dataSource>jdbc/WSO2SHAREDCONREG_DB</dataSource>
</dbConfig>
<remoteInstance url="https://localhost:9447/registry">
    <id>gov</id>
    <dbConfig>govregistry</dbConfig>
    <readOnly>false</readOnly>
    <enableCache>true</enableCache>
    <registryRoot>/</registryRoot>
</remoteInstance>
<mount path="/_system/governance" overwrite="true">
    <instanceId>gov</instanceId>
    <targetPath>/_system/governance</targetPath>
</mount>
<mount path="/_system/config" overwrite="true">
    <instanceId>gov</instanceId>
    <targetPath>/_system/nodes</targetPath>
</mount>

我在另一台服务器上有一个网关和密钥管理器。这些都已部署到不同的目录,WSO2文档没有说要为registry.xml文件做任何其他事情,因此它们看起来像:

<currentDBConfig>wso2registry</currentDBConfig>
<dbConfig name="wso2registry">
    <dataSource>jdbc/WSO2CarbonDB</dataSource>
</dbConfig>

发布API并尝试使用"尝试"功能时,我会收到以下错误(无论是否设置API是否需要令牌)...此错误在网关服务器上:

[2014-01-23 21:54:31,111] ERROR - APIAuthenticationHandler API authentication failure
org.wso2.carbon.apimgt.gateway.handlers.security.APISecurityException: Access failure for API: /newphoneverify, version: 1.0.0 with key: null

我还需要做其他事情,例如在Keymanager和Gateway上设置治理和配置注册表共享?

如果未使用'none'auth类型启用API的选项动词,则会发生这种情况。检查[1]。

[1] https://wso2.org/jira/browse/apimanager-1819

我有同样的问题:

Swagger UI无法正常工作,并返回上面的相同屏幕截图,但是如果我使用Chrome/Postman,API返回正确的值,那么Swagger UI就是有问题的Swagger UI,我在API Manager的前面有一个Apache,商店的外部名称与内部名称不同,Apache Proxypass请求。

我已经配置了API-Manager.xml,并且API没有授权(全部设置为无)真的不知道如何修复它。

最新更新