http-request给出“消息有效负载是类型”
问题描述:
我有一个流程需要在内部调用外部API调用,但它一直给我发送异常消息Message payload is of type: ...
。我现在正在使用3.6.2。http-request给出“消息有效负载是类型”
<http:request-config name="ApiRest" protocol="HTTPS" doc:name="HTTP Request Configuration" basePath="rest" host="${api.endpointUrl}" port="80">
<oauth2:client-credentials-grant-type clientId="${api.client_id}" clientSecret="${api.client_secret}">
<oauth2:token-request tokenUrl="${api.endpointUrl}/oauth/token" />
</oauth2:client-credentials-grant-type>
</http:request-config>
<flow name="flow-1">
// more components here...
<http:request config-ref="ApiRest" path="/v1/users" method="GET" sendBodyMode="NEVER" doc:name="test">
<http:request-builder/>
</http:request>
</flow>
答
的问题是,HTTPS与端口443,而不是80这应该做它的工作原理。
我认为问题在于您使用的是HTTPS,但有80端口:它应该是443.要获得更多帮助,您应该添加您看到的此例外的整个堆栈跟踪异常。 HTH。 – afelisatti
@afelisatti我的天啊,你是对的......我怎么能忘记......谢谢!你应该把它作为答案:) – BPm
太棒了!添加它作为答案,所以我们可以标记为解决:) – afelisatti