I am trying to setup an API proxy with apigee with a trail account.
I am facing issue in accessing the target endpoint (URL is correctly accessible directly via the browser).
XML part of the API proxy is as below:
<TargetEndpoint name="default">
<Description/>
<FaultRules/>
<PreFlow name="PreFlow">
<Request/>
<Response/>
</PreFlow>
<PostFlow name="PostFlow">
<Request/>
<Response/>
</PostFlow>
<Flows/>
<HTTPTargetConnection>
<Properties/>
<URL>http://xyz. com/artifactory/app/</URL>
</HTTPTargetConnection>
</TargetEndpoint>
Expected:
Error code 200
and page should load.
Actual:
{
"fault":{
"faultstring":"The Service is temporarily unavailable",
"detail":{
"errorcode":"messaging.adaptors.http.flow.ServiceUnavailable"
}
}
}
The issue was that, the artifactory base URL does not have access from a trial account. After creating another proxy with 'official' account (which had access), the links are working fine and the files are getting downloaded.
In short, the apigee account needs access to the artifactory.