AlexaAndroid icon indicating copy to clipboard operation
AlexaAndroid copied to clipboard

Getting issue while connecting via (okhttp) HTTP2 protocol.

Open wicky852 opened this issue 9 years ago • 5 comments

We have downloaded the AlexaAndroid app and tested the functionalities. While sending data to AVS server using okhttp library, we are getting below error : INFO: ALPN callback dropped: SPDY and HTTP/2 are disabled. Is alpn-boot on the boot class path? How We have tried adding alpn-boot on the class path but still getting the same error. Kindly help us to add alpn-boot on the class path.

wicky852 avatar Aug 23 '16 14:08 wicky852

@wicky852 some devices don't support the TLS 1.2 requirement of HTTP/2, make sure this is one of the supported protocols on your device. Try a newer (non-Samsung, generally) device and let me know if that works for you.

I have never seen that error before, but I see something similar here: https://github.com/grpc/grpc-java/issues/375

willblaschko avatar Aug 23 '16 15:08 willblaschko

Thank you for your response.. I am not running my application as an android application, instead I am using some of your classes in my gradle java project to send request from my desktop. Here i am getting the ALPN callback dropped: SPDY and HTTP/2 are disabled. Is alpn-boot on the boot class path? error.

I got same error in maven project also. But there I could fix it by using following argument in .pom file -Xbootclasspath/p:${settings.localRepository}/org/mortbay/jetty/alpn/alpn-boot/${alpn-boot.version}/alpn-boot-${alpn-boot.version}.jar.

But in gradle project I am not sure how to set the class path for alpn boot. Can you help me with this.

wicky852 avatar Aug 24 '16 12:08 wicky852

@wicky852 HTTP/2 is required, can you make sure that it's enabled for your HTTP client--only newer clients seem to support it?

A little more info here: https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/docs/managing-an-http-2-connection

willblaschko avatar Aug 24 '16 15:08 willblaschko

@wicky852 I encountered the same problem when using OkHttp, Could you show me how do you resolve this problem in detail ? By adding alpn dependency in .pom file ?

KenChoi1992 avatar Sep 05 '16 07:09 KenChoi1992

I am having this error during Login With Amazon browse display, kindly help: amzn://com.shell.ergo?error_description=An+unknown+scope+was+requested&state=clientId%3Damzn1.application-oa2-client.82c9c733e4c1473fac3d3117e9b5e62a%26redirectUri%3Damzn%3A%2F%2Fcom.shell.ergo%26clientRequestId%3D5367a989-9970-42c4-85a9-a791ac2b3d16%26com.amazon.identity.auth.device.authorization.return_auth_code%3Dtrue&error=invalid_scope

akkbright avatar May 22 '17 17:05 akkbright