using apigeetool to upload proxy I get the next error
Error: Error uploading policy: 500 { "code" : "beans.OtherValidationError", "message" : "Unexpected Validation Error null", "contexts" : [ ] }
stacktrace:
at Request._callback (/Users/yuriabeav/workProjects/zooz-payments-api/node_modules/apigeetool/lib/commands/deployproxy.js:399:18) at Request.self.callback (/Users/yuriabeav/workProjects/zooz-payments-api/node_modules/request/request.js:186:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request.<anonymous> (/Users/yuriabeav/workProjects/zooz-payments-api/node_modules/request/request.js:1060:10) at emitOne (events.js:77:13) at Request.emit (events.js:169:7) at IncomingMessage.<anonymous> (/Users/yuriabeav/workProjects/zooz-payments-api/node_modules/request/request.js:980:12) at IncomingMessage.g (events.js:260:16) at emitNone (events.js:72:20)
whats wrong?
and what is validation error?
Can you import this proxy from the UI? It is possible the proxy is not valid.
@srinandan yes I can import from the UI and from management API as well
Can you please paste the apigeetool command here (hide sensitive fields) and try with -V option (verbose -V (optional))? I'd like to see the verbose output.
apigeetool deployproxy -u username --password pass1 --organization org1 -e test --api Payments-API --directory . --verbose
output:
Going to create revision 32 of API Payments-API Creating revision 32 of API Payments-API Uploading jsc resource AM-AuthenticationError.js Uploading jsc resource AM-BadRequest.js Uploading jsc resource AM-GeneralError.js Uploading jsc resource Authenticate.js Uploading jsc resource EV-AuthenticateError.js Uploading jsc resource EV-CreatePaymentError.js Uploading jsc resource ErrorModel.js Uploading jsc resource common.js Uploading jsc resource createBadRequestErrorMessage.js Uploading jsc resource mapping_create_authorization_to_execute_sre.js Uploading jsc resource mappings.requests.createPayment.zooz-api.to.payment-storage-api.js Uploading jsc resource mappings.responses.createPayment.payment-storage-api-to-zooz-api.js Uploading jsc resource mappings.responses.errors.createPayment.zooz-api.to.payment-storage-api.js Uploading jsc resource resources.addresses.js Uploading openapi resource association.json Uploading policy AM-AuthenticationError.xml Uploading policy AM-BadRequestError.xml Uploading policy AM-GeneralError.xml Uploading policy Authenticate-Request.xml Error: Error uploading policy: 500 { "code" : "beans.OtherValidationError", "message" : "Unexpected Validation Error null", "contexts" : [ ] } Error: Error uploading policy: 500 { "code" : "beans.OtherValidationError", "message" : "Unexpected Validation Error null", "contexts" : [ ] } at Request._callback (/Users/yuriabeav/workProjects/zooz-payments-api/node_modules/apigeetool/lib/commands/deployproxy.js:399:18) at Request.self.callback (/Users/yuriabeav/workProjects/zooz-payments-api/node_modules/request/request.js:186:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request.<anonymous> (/Users/yuriabeav/workProjects/zooz-payments-api/node_modules/request/request.js:1060:10) at emitOne (events.js:77:13) at Request.emit (events.js:169:7) at IncomingMessage.<anonymous> (/Users/yuriabeav/workProjects/zooz-payments-api/node_modules/request/request.js:980:12) at IncomingMessage.g (events.js:260:16) at emitNone (events.js:72:20)
any toughts?
Looks like there an error with the Policy: Authenticate-Request.xml.
Are you sure this works outside of apigeetool?
@Srinandan Sridhar
Aapparently it didnt upload the proxy because of a loadbalancer element in the HttpConnection element:
<HTTPTargetConnection> <LoadBalancer> <Server name="application-storage-service"/> </LoadBalancer> <Path>/v1/applications/authenticate</Path> </HTTPTargetConnection>
Yet, I would Like to know whats wrong ion using <loadBalancer> And why would it make the deployment fail..?