Unable to route to Target Endpoint (but I don't want to)

Not applicable

I'm trying to create a proxy flow that validates an Apigee token and creates a JSON response with the values from the token.

When I make a request to the endpoint, the token is validated, but it catches an error:

"faultstring": "Unable to route the message to a Target Endpoint",

Problem is, I don't have a target endpoint for the request to go to. I've tried creating an AssignMessage policy that sets target.url to blank.

Solved Solved
0 2 4,571
1 ACCEPTED SOLUTION

Not applicable

Hi Timothy,

If you want a request message does not need to forwarded to the targetEndpoint, then you can define a null RouteRule.

Example: <RouteRule name="noroute"/>

View solution in original post

2 REPLIES 2

Not applicable

Apigee did not create a <RouteRule/> when I created my flow. Therefore, I needed to add the following in the proxy endpoint:

<RouteRule name="{FlowName}">
  <Condition>{FlowCondition}</Condition>
</RouteRule>

Not applicable

Hi Timothy,

If you want a request message does not need to forwarded to the targetEndpoint, then you can define a null RouteRule.

Example: <RouteRule name="noroute"/>