WSO2 API Manager 3.1.0无法从中介序列调用GET HTTP方法

WSO2 API Manager 3.1.0无法从中介序列调用GET HTTP方法,wso2,wso2-am,Wso2,Wso2 Am,无法通过API Manager 3.1.0中的中介序列调用GET API。GET API调用的行为就像一个没有正文的POST。 我的代码如下 <property name="HTTP_METHOD" value="GET" scope="axis2" type="STRING"/> <property name="REST_URL_POSTF

无法通过API Manager 3.1.0中的中介序列调用GET API。GET API调用的行为就像一个没有正文的POST。 我的代码如下

            <property name="HTTP_METHOD" value="GET" scope="axis2" type="STRING"/>
            <property name="REST_URL_POSTFIX" scope="axis2" action="remove"/>
            <property name="messageType" value="application/json" scope="axis2" type="STRING"/>
            <property name="ContentType" value="application/json" scope="axis2" type="STRING"/>
            <property name="Authorization" expression="get-property('Credentials')" scope="transport" type="STRING"/>
            <property name="uri.var.tenantDomain" expression="get-property('tenantDomain')" scope="default" type="STRING"/>
            <property name="NO_ENTITY_BODY" action="remove" scope="axis2"/>
            <call blocking="true">
                <endpoint>
                    <http method="GET" uri-template="https://localhost:9443/t/{uri.var.tenantDomain}/api/users/v1/me/challenges"/>
                </endpoint>
            </call>

这是针对挑战性问题的,只要POST和其他方法的URI相同,只有POST工作正常,而不是PUT、GET和DELETE。 scim2api也存在同样的问题,但我将SCIM2改为SOAP管理服务来解决这个问题。其他用于恢复的GET API工作正常。只有当GET/PUT/DELETE和POST的URI相同时,才会从中介序列中观察到这种行为

电线日志:

TID: [-1234] [] [2020-09-24 16:29:07,543] DEBUG {httpclient.wire.header} - >> "GET /t/jio.eva.hdfc.com/api/users/v1/me/challenges HTTP/1.1[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,543] DEBUG {httpclient.wire.header} - >> "GET /t/jio.eva.hdfc.com/api/users/v1/me/challenges HTTP/1.1[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,544] DEBUG {httpclient.wire.header} - >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,544] DEBUG {httpclient.wire.header} - >> "Content-Type: application/json; charset=UTF-8[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,544] DEBUG {httpclient.wire.header} - >> "Accept: application/json[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,544] DEBUG {httpclient.wire.header} - >> "Accept: application/json[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,545] DEBUG {httpclient.wire.header} - >> "Authorization: Basic XXXXXXX[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,545] DEBUG {httpclient.wire.header} - >> "Authorization: Basic XXXXXXX[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,545] DEBUG {httpclient.wire.header} - >> "User-Agent: Axis2[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,545] DEBUG {httpclient.wire.header} - >> "User-Agent: Axis2[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,545] DEBUG {httpclient.wire.header} - >> "Host: 10.201.8.13:5004[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,545] DEBUG {httpclient.wire.header} - >> "Host: 10.201.8.13:5004[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,546] DEBUG {httpclient.wire.header} - >> "[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,546] DEBUG {httpclient.wire.header} - >> "[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,563] DEBUG {httpclient.wire.header} - << "HTTP/1.1 500 [\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,563] DEBUG {httpclient.wire.header} - << "HTTP/1.1 500 [\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,564] DEBUG {httpclient.wire.header} - << "HTTP/1.1 500 [\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,564] DEBUG {httpclient.wire.header} - << "HTTP/1.1 500 [\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,564] DEBUG {httpclient.wire.header} - << "Date: Thu, 24 Sep 2020 10:59:07 GMT[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,564] DEBUG {httpclient.wire.header} - << "Date: Thu, 24 Sep 2020 10:59:07 GMT[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,564] DEBUG {httpclient.wire.header} - << "Content-Type: application/json[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,564] DEBUG {httpclient.wire.header} - << "Content-Type: application/json[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,565] DEBUG {httpclient.wire.header} - << "Transfer-Encoding: chunked[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,565] DEBUG {httpclient.wire.header} - << "Transfer-Encoding: chunked[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,565] DEBUG {httpclient.wire.header} - << "Connection: close[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,565] DEBUG {httpclient.wire.header} - << "Connection: close[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,565] DEBUG {httpclient.wire.header} - << "Server: WSO2 Carbon Server[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,565] DEBUG {httpclient.wire.header} - << "Server: WSO2 Carbon Server[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,566] DEBUG {httpclient.wire.header} - << "[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,566] DEBUG {httpclient.wire.header} - << "[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,566] DEBUG {httpclient.wire.content} - << "b"
TID: [-1234] [] [2020-09-24 16:29:07,566] DEBUG {httpclient.wire.content} - << "b"
TID: [-1234] [] [2020-09-24 16:29:07,566] DEBUG {httpclient.wire.content} - << "4"
TID: [-1234] [] [2020-09-24 16:29:07,566] DEBUG {httpclient.wire.content} - << "4"
TID: [-1234] [] [2020-09-24 16:29:07,567] DEBUG {httpclient.wire.content} - << "[\r]"
TID: [-1234] [] [2020-09-24 16:29:07,567] DEBUG {httpclient.wire.content} - << "[\r]"
TID: [-1234] [] [2020-09-24 16:29:07,567] DEBUG {httpclient.wire.content} - << "[\n]"
TID: [-1234] [] [2020-09-24 16:29:07,567] DEBUG {httpclient.wire.content} - << "[\n]"
TID: [-1234] [] [2020-09-24 16:29:07,567] DEBUG {httpclient.wire.content} - << "{"code":"SE-50000","message":"Unexpected Processing Error.","description":"Server encountered an error while serving the request.","traceId":"46947467-c363-4cb4-87d7-d2e37c039b3a"}"
TID: [-1234] [] [2020-09-24 16:29:07,567] DEBUG {httpclient.wire.content} - << "{"code":"SE-50000","message":"Unexpected Processing Error.","description":"Server encountered an error while serving the request.","traceId":"46947467-c363-4cb4-87d7-d2e37c039b3a"}"
TID: [-1234] [] [2020-09-24 16:29:07,568] DEBUG {httpclient.wire.content} - << "[\r]"
TID: [-1234] [] [2020-09-24 16:29:07,568] DEBUG {httpclient.wire.content} - << "[\r]"
TID: [-1234] [] [2020-09-24 16:29:07,568] DEBUG {httpclient.wire.content} - << "[\n]"
TID: [-1234] [] [2020-09-24 16:29:07,568] DEBUG {httpclient.wire.content} - << "[\n]"
TID: [-1234] [] [2020-09-24 16:29:07,568] DEBUG {httpclient.wire.content} - << "0"
TID: [-1234] [] [2020-09-24 16:29:07,568] DEBUG {httpclient.wire.content} - << "0"
TID: [-1234] [] [2020-09-24 16:29:07,569] DEBUG {httpclient.wire.content} - << "[\r]"
TID: [-1234] [] [2020-09-24 16:29:07,569] DEBUG {httpclient.wire.content} - << "[\r]"
TID: [-1234] [] [2020-09-24 16:29:07,569] DEBUG {httpclient.wire.content} - << "[\n]"
TID: [-1234] [] [2020-09-24 16:29:07,569] DEBUG {httpclient.wire.content} - << "[\n]"
TID: [-1234] [] [2020-09-24 16:29:07,569] DEBUG {httpclient.wire.content} - << "[\r]"
TID: [-1234] [] [2020-09-24 16:29:07,569] DEBUG {httpclient.wire.content} - << "[\r]"
TID: [-1234] [] [2020-09-24 16:29:07,569] DEBUG {httpclient.wire.content} - << "[\n]"
TID: [-1234] [] [2020-09-24 16:29:07,569] DEBUG {httpclient.wire.content} - << "[\n]"
TID: [-1234] [] [2020-09-24 16:29:07,570] DEBUG {httpclient.wire.header} - << "[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,570] DEBUG {httpclient.wire.header} - << "[\r][\n]"
TID: [-1234] [] [2020-09-24 16:29:07,571]  INFO {org.apache.synapse.mediators.builtin.LogMediator} - To: https://10.201.8.13:5004/t/jio.eva.hdfc.com/api/users/v1/me/challenges, MessageID: urn:uuid:a0a2832b-29cf-41dd-bc70-4d9da1721f3e, Direction: request, HTTP_SC = 500, Payload: {"code":"SE-50000","message":"Unexpected Processing Error.","description":"Server encountered an error while serving the request.","traceId":"46947467-c363-4cb4-87d7-d2e37c039b3a"}
TID:[-1234][[2020-09-24 16:29:07543]调试{httpclient.wire.header}->“GET/t/jio.eva.hdfc.com/api/users/v1/me/challenges HTTP/1.1[\r][\n]”
TID:[-1234][[2020-09-24 16:29:07543]调试{httpclient.wire.header}->“GET/t/jio.eva.hdfc.com/api/users/v1/me/challenges HTTP/1.1[\r][\n]”
TID:[-1234][[2020-09-24 16:29:07544]调试{httpclient.wire.header}->“内容类型:application/json;charset=UTF-8[\r][\n]”
TID:[-1234][[2020-09-24 16:29:07544]调试{httpclient.wire.header}->“内容类型:application/json;charset=UTF-8[\r][\n]”
TID:[-1234][[2020-09-24 16:29:07544]调试{httpclient.wire.header}->“接受:应用程序/json[\r][\n]”
TID:[-1234][[2020-09-24 16:29:07544]调试{httpclient.wire.header}->“接受:应用程序/json[\r][\n]”
TID:[-1234][[2020-09-24 16:29:07545]调试{httpclient.wire.header}->“授权:基本XXXXXXX[\r][\n]”
TID:[-1234][[2020-09-24 16:29:07545]调试{httpclient.wire.header}->“授权:基本XXXXXXX[\r][\n]”
TID:[-1234][[2020-09-24 16:29:07545]调试{httpclient.wire.header}->“用户代理:Axis2[\r][\n]”
TID:[-1234][[2020-09-24 16:29:07545]调试{httpclient.wire.header}->“用户代理:Axis2[\r][\n]”
TID:[-1234][[2020-09-24 16:29:07545]调试{httpclient.wire.header}->“主机:10.201.8.13:5004[\r][\n]”
TID:[-1234][[2020-09-24 16:29:07545]调试{httpclient.wire.header}->“主机:10.201.8.13:5004[\r][\n]”
TID:[-1234][[2020-09-24 16:29:07546]调试{httpclient.wire.header}->“[\r][\n]”
TID:[-1234][[2020-09-24 16:29:07546]调试{httpclient.wire.header}->“[\r][\n]”

TID:[-1234][[2020-09-24 16:29:07563]调试{httpclient.wire.header}-这类似于下面的[1],问题是由于基于is-KM证书的身份验证器引起的


[1]

这与以下[1]类似,问题是由于基于is-KM证书的验证器

[1]