Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Issues with Amazon Alexa Voice Service #225

Closed
@sammachin

Description

@sammachin

Amazon have released a new API for Alexa but its HTTP/2 only, this is my first attempts with http/2 but there seems to be a problem with accessing the amazon API using hyper, other test servers work fine and I can also connect using curl, I get this error using either hyper on the command line or in a script.
(Token redacted to XXXXX, message me if you need a token to test with)

root@AlexaPiV2:/curl-7.48.0# hyper --debug GET https://avs-alexa-na.amazon.com/v20160207/directives 'Authorization:Bearer XXXXXXXXXXXXXXXX'
Url Info: {'secure': True, 'fragment': None, 'netloc': 'avs-alexa-na.amazon.com', 'host': 'avs-alexa-na.amazon.com', 'query': None, 'path': '/v20160207/directives', 'scheme': 'https', 'port': 443}
Commandline Argument: Namespace(_url='https://avs-alexa-na.amazon.com/v20160207/directives', body=None, debug=True, h2=False, headers={'Authorization': 'Bearer XXXXXXXXXXXX'}, items=[<hyper.cli.KeyValue object at 0x766c45f0>], method='GET', url=<hyper.cli.UrlInfo object at 0x766c4710>)
Selected protocol: None
Traceback (most recent call last):
File "/usr/local/bin/hyper", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/hyper/cli.py", line 244, in main
data = request(args)
File "/usr/local/lib/python2.7/dist-packages/hyper/cli.py", line 234, in request
response = conn.get_response()
File "/usr/local/lib/python2.7/dist-packages/hyper/common/connection.py", line 124, in get_response
return self._conn.get_response(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/hyper/http11/connection.py", line 199, in get_response
response = self.parser.parse_response(self._sock.buffer)
File "/usr/local/lib/python2.7/dist-packages/hyper/http11/parser.py", line 52, in parse_response
version, status, reason = temp_buffer[0:index].split(None, 2)
ValueError: need more than 1 value to unpack
root@AlexaPiV2:
/curl-7.48.0#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions