4

如何获得注册码或以其他方式解决此问题?

在写这个问题时,我意识到这个问题的症结在于这个问题的最底部:我没有得到我应该得到的弹出窗口,当我在浏览器中输入 URL 时,它说注册码无效。

我正在尝试开发一个 Alexa 语音服务应用程序。仅限网站/配套服务。我已经阅读了参考实施指南两次,并仔细检查了所有设置是否正确完成。

这是我得到的服务器错误:无效的注册码。我从来没有对注册码做过任何事情,并且在谷歌搜索后似乎无法在任何地方找到任何关于注册码(与 Alexa 相关)的信息。

Listening on port 3000 error: { [InvalidRegistrationCode: The provided registration code was invalid.] name: 'InvalidRegistrationCode', message: 'The provided registration code was invalid.', status: 401 } Error: Can't set headers after they are sent.

这是客户端输出:

vlcj: (DefaultMediaPlayer.java:183)        
addMediaPlayerEventListener(listener=com.amazon.alexa.avs.AVSAudioPlayer$1@4b3a4950)
There was a problem connecting to the Companion Service. Trying again         in 2 seconds. Please make sure it is up and running. 
[DEBUG] joining on thread Thread[Timer-0,5,com.amazon.alexa.avs.AVSApp]
There was a problem connecting to the Companion Service. 
Trying again in 2 seconds. Please make sure it is up and running.

AVS 启动器也打开了,当我录制并发送它时,我得到:

com.amazon.alexa.avs.AVSException: 403 Invalid Access Token

说明中提到(在参考指南的最底部)我需要: 请通过在任何系统上访问以下网站并按照说明注册您的设备https://localhost:3000/provision/ ***** ********* 该 URL 应该在伴随服务后弹出一些东西,但这种情况并没有发生。

关于如何解决这个问题的任何想法?

4

2 回答 2

2

我正在关注一个很好的文档项目:Raspberry Pi + Alexa Voice Service,位于https://github.com/amzn/alexa-avs-raspberry-pi。它很好地描述了所有步骤。请看以下步骤:

3 - Getting started with Alexa Voice Service
3.1 Register for a free Amazon Developer Account
3.4 Register your product and create a security profile.
6 - Enable Security Profile
于 2016-03-26T14:52:11.087 回答
1

亚马逊开发者论坛上的这个帖子似乎相关:http ://forums.developer.amazon.com/forums/thread.jspa?threadID=11327&tstart=0

引用回复:

有许多潜在的问题会导致该错误。

您可能正在发送无效范围。您是否发送“alexa:all”作为范围?或者,您的安全配置文件可能未正确链接。它是在开发者门户的下拉列表中选择的吗?

您是从配套服务获得访问令牌,还是文本框为空白?如果您没有获得访问令牌,请检查配套服务和 java 客户端之间的设备序列号是否匹配。如果您正在获取访问令牌,则问题更有可能与您的安全配置文件有关。

您还应该查看这些主题,看看它们是否有帮助......(由于声誉要求而删除了链接)

如果这没有帮助,您可能会更幸运地直接在他们的论坛网站上询问 AVS 团队。

于 2016-02-24T00:38:28.580 回答