2014-05-02 61 views
0

我有兩個爲我的API代理設置的資源,並且有一個名爲talkback的路由規則,它應該將POST請求發送到我的/ matches API資源並將它們路由到我的對講子域而不是www 。Apigee RouteRule正確評估但返回503

我有這個工作正確的GET請求重定向到我打開的子域。然而,對講規則正確的評估,但隨後會返回一個503沒有達到我的目標端點:

error  The Service is temporarily unavailable 
error.cause  Connection refused 
error.class  com.apigee.messaging.adaptors.http.HttpAdaptorException 
state  TARGET_REQ_FLOW 
type  ErrorPoint 

你能提供建議可能是什麼問題?

這是我使用的路由規則:

<RouteRule name="talkback"> 
    <Condition>(proxy.pathsuffix MatchesPath &quot;/matches/**&quot;) and (request.verb equals "POST")</Condition> 
    <TargetEndpoint>talkback</TargetEndpoint> 
</RouteRule> 

這是對講目標端點:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<TargetEndpoint name="talkback"> 
    <Description/> 
    <FaultRules/> 
    <Flows/> 
    <HTTPTargetConnection> 
     <Properties/> 
     <URL>http://talkback.test.xxxx.co.uk/gapi</URL> 
    </HTTPTargetConnection> 
    <PreFlow name="PreFlow"> 
     <Request/> 
     <Response/> 
    </PreFlow> 
    <PostFlow name="PostFlow"> 
     <Request/> 
     <Response/> 
    </PostFlow> 
</TargetEndpoint> 

回答

0

這幾乎看起來像一個問題,即Apigee是無法連接到您的目標後端 - http://talkback.test.xxxx.co.uk。當Apigee無法連接到後端時,會將503返回給客戶端。後端是否可公開訪問?

+0

經過進一步調查,我碰到的端點有IP訪問限制,因此Apigee將無法連接,這是事實上它返回了一個令我困惑的503實際後端服務正在工作的事實。感謝Vinit。 –