You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to do a "Hello world" with Aperture for a simple Java app. At first I tried to run controller and agent locally and it wouldn't work,so I gave up and signed up for the SaaS trial. I provide my endpoint and key to the ApertureSDK.builder() as it can be found in many examples (although older examples use setAgentAddress()), in particular using the sample code that is shown at .app.fluxninja.com/aperture-system/details (the only thing I left out is the setRootCertificateFile() call - I assume that since this is an official SaaS endpoint, it would have non-self signed cert from a trusted CA).
flow.shouldRun() is always true, but the flow.getDecision()[.toString()] always yields "Unreachable", same result as I had when I ran against my local agent+controller.
When I try to end the flow
EndResponse end = flow.end();
if (end.getError()!= null) {
log.error("Error ending flow: " + end.getError());
}
end.getError() is always not null and end.getError() reads "java.lang.IllegalStateException: Flow without check response"
I debugged into this a bit, noticed that the timeout was maybe a bit short, so I increased it (tried up to 30sec). Alas, it always times out inside startFlow where a StatusRuntimeException is thrown:
io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 2.999659300s. [closed=[], open=[[remote_addr=agents.us-central1.gcp.app.fluxninja.com/34.111.15.254:443]]]
Hi,
I am trying to do a "Hello world" with Aperture for a simple Java app. At first I tried to run controller and agent locally and it wouldn't work,so I gave up and signed up for the SaaS trial. I provide my endpoint and key to the ApertureSDK.builder() as it can be found in many examples (although older examples use setAgentAddress()), in particular using the sample code that is shown at .app.fluxninja.com/aperture-system/details (the only thing I left out is the setRootCertificateFile() call - I assume that since this is an official SaaS endpoint, it would have non-self signed cert from a trusted CA).
The call is successful. Next I create feature flow parameters:
I then start a flow (I just put this into a loop with a delay between each try).
flow.shouldRun() is always true, but the flow.getDecision()[.toString()] always yields "Unreachable", same result as I had when I ran against my local agent+controller.
When I try to end the flow
end.getError() is always not null and end.getError() reads "java.lang.IllegalStateException: Flow without check response"
I then tried
before the call to flow.end(), but checkResponse is null.
I guess I am missing something very basic here, any hints appreciated.
The text was updated successfully, but these errors were encountered: