I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[ ] Feature request (generic to all classes)
[ ] Documentation issue or request
[ X] Other... Please describe: The service never provides a response
When I invoke the UpsServiceClient, I never get a response from api.amazonalexa.com
Expected Behavior
Ideally, I would get a response with Customer Profile data, or I would get some error of some kind
Current Behavior
Right now the service call goes out into the ether, and never returns anything back. Eventually, the Lambda will timeout. Below are my logs from Cloudwatch
01:36:48.023 [main] DEBUG com.amazon.ask.dispatcher.impl.DefaultRequestDispatcher - [amzn1.echo-api.request.448fc2b6-562a-48df-aac0-8ec6ad0128ee] Found compatible adapter com.amazon.ask.dispatcher.request.handler.impl.DefaultHandlerAdapter
01:36:48.121 [main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
01:36:48.143 [main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
01:36:48.144 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {s}->https://api.amazonalexa.com:443][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 20]
01:36:48.202 [main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 0][route: {s}->https://api.amazonalexa.com:443][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 20]
01:36:48.204 [main] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {s}->https://api.amazonalexa.com:443
01:36:48.224 [main] DEBUG org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to api.amazonalexa.com/52.85.135.22:443
01:36:48.224 [main] DEBUG org.apache.http.conn.ssl.SSLConnectionSocketFactory - Connecting socket to api.amazonalexa.com/52.85.135.22:443 with timeout 0
END RequestId: 217abb47-c388-11e8-a0df-935086f1315b
REPORT RequestId: 217abb47-c388-11e8-a0df-935086f1315b Duration: 61052.77 ms Billed Duration: 61000 ms Memory Size: 512 MB Max Memory Used: 70 MB
2018-09-29T01:37:49.008Z 217abb47-c388-11e8-a0df-935086f1315b Task timed out after 61.05 seconds
Possible Solution
// Not required, but suggest a fix/reason for the bug,
// or ideas how to implement the addition or change
// A working skill sample code using the SDK is recommended.
Steps to Reproduce (for bugs)
// Provide a self-contained, concise snippet of code using the SDK.
// For more complex issues provide a repo with the smallest sample that reproduces the bug
// Including business logic or unrelated code makes diagnosis more difficult
Context
@Override
public Optional<Response> handle(HandlerInput input) {
String apiEndpoint = input.getRequestEnvelope().getContext().getSystem().getApiEndpoint();
DefaultApiConfiguration defaultApiConfiguration =
DefaultApiConfiguration.builder()
.withApiEndpoint(apiEndpoint)
.withApiClient(ApacheHttpApiClient.standard())
.build();
ServiceClientFactory build =
ServiceClientFactory
.builder()
.withDefaultApiConfiguration(defaultApiConfiguration).build();
UpsServiceClient upsService = build.getUpsService();
String email = upsService.getProfileEmail();
// Build a response with output speech and a LinkAccount card.
return input.getResponseBuilder()
.withSpeech(email)
.withReprompt(email)
.build();
}
Your Environment
Java
AWS Lambda
Compiled on AWS Codebuild
ASK SDK Models for Java used: 1.6.0
- ASK SDK for Python used: x.x.x
- Operating System and version:
Python version info
- Python version used for development: