question

Amazon Customer avatar image
Amazon Customer asked

Error when doing a GET /ping

I'm just trying to keep my connection alive by doing a GET request to /ping as specified here: https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/docs/managing-an-http-2-connection#Maintaining%20an%20HTTP%2F2%20Connection Seems simple enough, but every request fails with a 500 error and the following in the response: {"header":{"namespace":"System","name":"Exception","messageId":"709d4b49-420a-4808-98e0-ac56a386d2a7"},"payload":{"code":"INTERNAL_SERVICE_EXCEPTION","description":"Invalid Resource Requested"}} Here's how I build the request using OkHttp: Request request = new Request.Builder() .url(BASE_URL + "/ping") .header("authorization", authorization) .get() .build(); BASE_URL is defined as: private static final String BASE_URL = " https://avs-alexa-na.amazon.com/v20160207"; Any ideas? Thanks.
alexa voice service
10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Amazon Customer avatar image
Amazon Customer answered
Oh, it works if I use this URL: " https://avs-alexa-na.amazon.com/ping". Didn't realize the API version wasn't required here. Nevermind! :)
10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.