Having issues uploading proxy using rest and APIGEETOOL

Not applicable

I have an apiproxy and I want to upload it using apigeetool (npm module) and I got this error message upon import-and deploy:

I'm getting this error:

<Error>
  <Code>beans.OtherValidationError</Code>
  <Message>Unexpected Validation Error null</Message>
  <Contexts/>
</Error>

so,

The error happen when:

-I upload the proxy using apigeetool
-I have a load balancer in my configuration

The error doesn't happen when I have only URL in HTTPTargetConnection property.

The error occurs if I use this:

<HTTPTargetConnection>
  <URL>http://myurl-here</URL>
  <LoadBalancer>
    <Server name="server1"/>
  </LoadBalancer>
  <Path>/get</Path>
</HTTPTargetConnection>

When I commented the LoadBalancer element, I didn't get any error.

<HTTPTargetConnection>
  <URL>http://myurl-here</URL>
  <!--
  <LoadBalancer>
    <Server name="server1"/>
  </LoadBalancer>
  -->
  <Path>/get</Path>
</HTTPTargetConnection>

I found a similar issue: https://community.apigee.com/questions/35077/500-on-policy-upload.html
I want to know if someone was able to fix it.

0 3 202
3 REPLIES 3

Hi, I'm not able to understand the situation.

You're seeing an error. OK, I've got that. When, how?

Also, what do you mean "when I upload a proxy with load balancer on it, the error doesnt happen if I use an URL."

Under which specific conditions are you getting the error?

Under which specific conditions are you not getting the error?

I have an apiproxy and I want to upload it using apigeetool (npm module) and I got the message in the description, this error doesnt occur if I upload using the UI of edge.

so,

The error happen when:

-I upload the proxy using apigeetool
-I have a load balancer in my configuration

The error doesnt happen when I have only URL in HTTPTargetConnection property.



For example here, I commented load balancer section and I didnt get any error.

5871-safsafsasa.png

Ah, ok Flavio. I'm clear now on the situation. (BTW you don't need to attach screen-shots. You can cut/paste code (including XML) and format it with the code button in the editor. )

The error message you are getting, STINKS. It's no good. I'm sorry about that. I'll file a defect on your behalf.

The error message should tell you:

The HTTPTargetConnection accepts EITHER a URL or a LoadBalancer, but not both.

Please choose ONE.

This is valid:

  <HTTPTargetConnection>
    <LoadBalancer>
      <Server name="target1" />
      <Server name="target2" />
    </LoadBalancer>
    <Path>/test</Path>
  </HTTPTargetConnection><br>

This is valid:

  <HTTPTargetConnection>
    <URL>http://dinochiesa.net</URL>
    <Path>/test</Path>
  </HTTPTargetConnection><br>

This is not valid:

  <HTTPTargetConnection>
    <URL>http://dinochiesa.net</URL>
    <LoadBalancer>
      <Server name="target1" />
      <Server name="target2" />
    </LoadBalancer>
    <Path>/test</Path>
  </HTTPTargetConnection><br>