question

Jason avatar image
Jason asked

Is there any limit of avs api

I've tested the java demo, and it worked last week. But this week it does not work anymore. I check the http/2 process and find the server send me GOAWAY frame while transmission. Is there any limitation such as request frequency and location, where can I check the limitation?
alexa voice service
10 |5000

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

swasey@amazon avatar image
swasey@amazon answered
Do you get a x-amzn-requestid in your logs anywhere? If you can provide one of those it'll be helpful in helping me figure out what your problem is and why we're sending you a GOAWAY frame. Are you perhaps running multiple instances of the app with the same deviceid or refresh token or something along those lines?
10 |5000

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

Jason avatar image
Jason answered
x-amzn-requestid: 0a7181fffe01f89b-00001a91-0003d5b2-bf7e813f3bf50d2f-7f069522-1-
10 |5000

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

swasey@amazon avatar image
swasey@amazon answered
So I used your requestId to look up some device information. It looks like you're not setting up a downchannel or sending a SynchronizeState event. All I have recorded is that you're sending SpeechRecognizer::Recognize events with the speech "Hello" a bunch of times. You'll probably want to start here: https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/docs/managing-an-http-2-connection and read up on how to establish an HTTP/2 connection to AVS. If we don't receive a request for a downchannel within some amount of time (10 minutes or so I believe) we'll send a GOAWAY. If you need extra help on how to establish a downchannel in your preferred language, or the steps involved with keeping the connection open, please let us know!
10 |5000

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

Jason avatar image
Jason answered
Thank you very much! I'll try that.
10 |5000

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

newuser-ff2a9431-04a2-42d9-bc31-d04082bceb37 avatar image
newuser-ff2a9431-04a2-42d9-bc31-d04082bceb37 answered

Hi, i am receiving the same frame (GOAWAY) after about 50 minutes when i am sending ping requests every around 5 minutes. This is my request i am sending:

I (3246279) nghttp2: new nghttp stream, uri: https://avs-alexa-eu.amazon.com/ping
I (3246279) nghttp2: Request headers: 
I (3246283) nghttp2: :method: GET 
I (3246287) nghttp2: :scheme: https 
I (3246291) nghttp2: :authority: avs-alexa-eu.amazon.com
I (3246297) nghttp2: :path: /ping 
I (3246301) nghttp2: authorization: Bearer Atza|IwEBIG2_-uim4h3kXAX35Xaww40frOPwFnNx8aWKlfCIsMB1fuS3cBYRr8JCl5Eg0ivLwIxTIrmfFViiOiSHt57xqHv5uT5peg0eB5b42dy1L8tZ9vXhONjAd4ns1oh8A0Wl98R-iqkjH-ElYgJD0KdvIgDsqT8pCo6l8DomruUv3H2T2th8EGjvupPjDKMJYsIVF9VUIFbWjwbLaKjSZRPvKncodN6G29q0JBVvxZvqACVzrizbgJoRd7O6VFvzbeDyYV4sPT1_BNeFgZJNMs8J20apeKPH8my3qXOgQwOGUcAbDemE_BMaT08iY9-4E4t_Cu5bOjpHrDbGIoooEOj5jiIyRSyK4zkvacXsWo9jUBrwaTPuHKhu3Q8zuMhQCE2RmbzU5c5OILi8leRD_cpNzbAvJErMCRqOgPtitH7DuLsfhRUvK1edy6_anINabxuhodtyQwB2nS9IlhxLGOWlUIF8RjxF-y0GagvaO7JlR29gcJ75AAr7_jCxstQMuCxnQuUn1uP2nPqza1KM2u0OYJUJDAr56msNjZUKyRdzM1qM65q1YK-GNFbtu4pVQz_xcoU
10 |5000

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