Not able to create a simple API proxy ,Getting Error "Unable to identify proxy for host: default and url"

Not applicable

Hi Team,

While creating a simple API proxy to call “ <a href="http://mocktarget.apigee.net">http://mocktarget.apigee.net</a> “, I am getting error as 
{"fault":{"faultstring":"Unable to identify proxy for host: default and url: \/mock","detail":{"errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"}}}
Searched the error, solution was to deploy the proxy in Test\Prod or the backend URL is not working.
Since I have deployed the proxy in Test\Prod and backend URL “<a href="http://mocktarget.apigee.net">http://mocktarget.apigee.net</a>” is also working, will you please help with the issue.
0 18 951
18 REPLIES 18

@Pooja

Welcome to Apigee Community.

Can you attach your proxy for better understanding ? Also, Does proxy work for any other backend endpoint like http://httpbin.org/get ?

Not applicable

Hi @Anil Sagar

Thanks for welcoming.

Below is code for "Mock" proxy.

Sometimes I am getting proper response, sometimes I am getting the error.

For any backend endpoint like http://httpbin.org/get I am getting same error again and again.

what can be the issue ?

Proxy Endpoints

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ProxyEndpoint name="default">
<Description/>
<FaultRules/>
<PreFlow name="PreFlow">
<Request/>
<Response/>
</PreFlow>
<PostFlow name="PostFlow">
<Request/>
<Response/>
</PostFlow>
<Flows/>
<HTTPProxyConnection>
<BasePath>/mock</BasePath>
<Properties/>
<VirtualHost>secure</VirtualHost>
<VirtualHost>default</VirtualHost>
</HTTPProxyConnection>
<RouteRule name="default">
<TargetEndpoint>default</TargetEndpoint>
</RouteRule>
</ProxyEndpoint>

Target Endpoints

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TargetEndpoint name="default">
<Description/>
<FaultRules/>
<PreFlow name="PreFlow">
<Request/>
<Response/>
</PreFlow>
<PostFlow name="PostFlow">
<Request/>
<Response/>
</PostFlow>
<Flows/>
<HTTPTargetConnection>
<Properties/>
<URL>http://mocktarget.apigee.net</URL>
</HTTPTargetConnection>
</TargetEndpoint>

@Pooja , I think it's more of the target server http://mocktarget.apigee.net/ . I suggest using some other mock server. Let me know if you see similar results.

Hi @Anil Sagar

For any backend web service, sometimes I am getting response and sometimes getting the same error.

Backend web services are working fine.

Another proxy that we created - http://tiwaripooja-trial-test.apigee.net/binorg

Targent Endpoint - http://httpbin.org/get

Is this the problem with Apigee API Management UI ?

@Pooja

, can you check the deployment status? Any chance you are getting half green dot in the deployment status?

You can also try un-deploying the API proxy and then deploy again. Let us know if this solves your issue.

Hi @Gagandeep Singh

I am not getting half green dot in the deployment status.

I have deployed the proxy in test environment.

I have also tried un-deploying the API proxy and again deployed it, but still sometimes I am getting the response and sometimes I am getting the same error.

Hi @Gagandeep Singh,

Will you please suggest something.

HI @Anil Sagar

Will you please suggest something ? How can I I resolve the issue.

@Pooja , Is it OPDK or Cloud ? I think it's an issue with MP.

Not applicable

Hi @Anil Sagar,

I am using free trial version of Apigee to create API proxies

Hi @Pooja , can you please attach your proxy/revision here.

screenshot-1.jpg

HI @Barahalikar Siddharth

mock-rev1-2017-09-13.zip

Please find attached revision of Mock proxy.

It works fine in my org. It should be issue with MP as Anil said.

Since you are using Apigee Cloud, you can't do anything. Try deploying/undeploying to new prod/test or create proxy.

Not applicable

HI @Barahalikar Siddharth

Its been more than 1 month I am using free trial version of Apigee, Do you think this can be the reason , that is why issue with MP ?

" Try deploying/undeploying to new prod/test or create proxy. ",By this statement, do you mean creating a new Apigee free trial account as I dont have OPDK.

I tried creating new proxy, for each proxy I am getting same error.

Its been more than 1 month I am using free trial version of Apigee, Do you think this can be the reason , that is why issue with MP ?

No.

Create a new account. If required you can always import proxies to your new account.

HI @Barahalikar Siddharth

I have created new account in Apigee, When I import the the same proxy in new Apigee free trail account, at first when we run the proxy,I am getting response, then if I refresh the screen and again run the same proxy, I am getting error as

{"fault":{"faultstring":"Unable to identify proxy for host: rohitasaini-trial-test.apigee.net:80 and url: \/mock","detail":{"errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"}}}

Even if I import the proxy, in the new environment also sometime we get response sometime error message.

What should I do next ?

Hi @Pooja, well I also use Apige Cloud free trail. I never experienced your error, but now and then I get 503 Service Unavailable when I try from Postman/Apigee console or unable to deploy to env error.

Since this is a free account and may be due to overload we might get these errors.

Your issue should be a Router Issue, since it is unable to route to proxy via uriPath.

I am not sure if you can raise a support ticket. Please check on it.

Not applicable

Hi @Barahalikar Siddharth

" Since this is a free account and may be due to overload we might get these errors. "

We created a new account, where we have only 3-4 proxies, so I think in the new account, there should not be any overload.

When we import the same API proxy in new account, error still persists.

I have tried creating support account for Apigee by sending email to " apigeesupreq@google.com " , But no reply yet.

Any suggestion please to create Apigee support account.