alexa / avs-device-sdk

An SDK for commercial device makers to integrate Alexa directly into connected products.
https://developer.amazon.com/alexa/alexa-voice-service
Apache License 2.0
1.26k stars 603 forks source link

'INVALID REQUEST - Pending authorization' error keeps coming up after successfully registering device online #1059

Closed lestig closed 5 years ago

lestig commented 5 years ago

Have spent a few good hours on this one and I am out of ideas. I would appreciate some guidance on this one. Thanks much!

Briefly summarize your issue:

After a couple of tries, I was able to build the SDK without any issues. When running the sampleapp I keep getting a Pending Authorization message. The system keeps providing new codes for registration. Registration online is completed without issues

What is the expected behavior?

Get an 'Alexa is currently Idle!' message by successfully getting access and refresh token from Login With Amazon (LWA)

What behavior are you observing?

Script ends with error. Screen keeps showing authorization pending and a new code is given to register device. Complete output after running script below:

__pi@raspberrypi:~ $ sudo bash startsample.sh 2018-11-08 07:29:39.583 [ 1] I sdkVersion: 1.10.0 configFile /home/pi/build/Integration/AlexaClientSDKConfig.json Running app with log level: DEBUG9 2018-11-08 07:29:39.751 [ 1] 0 ConfigurationNode:initializeSuccess 2018-11-08 07:29:39.885 [ 1] 1 InMemoryEqualizerConfiguration:validateConfiguration::Validating Equalizer configuration 2018-11-08 07:29:39.902 [ 1] 1 InMemoryEqualizerConfiguration:validateConfiguration::Validating default Equalizer state 2018-11-08 07:29:39.905 [ 1] 1 InMemoryEqualizerConfiguration:validateConfiguration::Validating Equalizer configuration 2018-11-08 07:29:39.936 [ 1] 1 InMemoryEqualizerConfiguration:validateConfiguration::Validating default Equalizer state 2018-11-08 07:29:39.945 [ 1] 9 MediaPlayer:createCalled 2018-11-08 07:29:41.243 [ 1] 9 MediaPlayer:noOutputConversion 2018-11-08 07:29:41.276 [ 1] 9 MediaPlayer:createCalled 2018-11-08 07:29:41.321 [ 1] 9 MediaPlayer:noOutputConversion 2018-11-08 07:29:41.361 [ 1] 9 MediaPlayer:createCalled 2018-11-08 07:29:41.378 [ 1] 9 MediaPlayer:noOutputConversion 2018-11-08 07:29:41.428 [ 1] 9 MediaPlayer:createCalled 2018-11-08 07:29:41.431 [ 1] 9 MediaPlayer:noOutputConversion 2018-11-08 07:29:41.478 [ 1] 9 MediaPlayer:createCalled 2018-11-08 07:29:41.481 [ 1] 9 MediaPlayer:noOutputConversion 2018-11-08 07:29:41.522 [ 1] 9 MediaPlayer:createCalled 2018-11-08 07:29:41.548 [ 1] 9 MediaPlayer:noOutputConversion 2018-11-08 07:29:41.626 [ 1] 5 SQLiteBluetoothStorage:create 2018-11-08 07:29:41.634 [ 1] 5 CBLAuthDelegate:create 2018-11-08 07:29:41.669 [ 1] 5 CBLAuthDelegate:CBLAuthDelegate 2018-11-08 07:29:41.673 [ 1] 5 CBLAuthDelegate:init 2018-11-08 07:29:41.674 [ 1] 5 CBLAuthDelegateConfiguration:create 2018-11-08 07:29:41.674 [ 1] 5 CBLAuthDelegateConfiguration:init 2018-11-08 07:29:41.675 [ 1] 5 CBLAuthDelegateConfiguration:initScopeData 2018-11-08 07:29:41.676 [ 1] 9 CBLAuthDelegateConfiguration:initScopeDataSucceeded 2018-11-08 07:29:41.677 [ 1] 5 SQLiteCBLAuthDelegateStorage:open 2018-11-08 07:29:41.715 [ 2] 5 CBLAuthDelegate:handleAuthorizationFlow 2018-11-08 07:29:41.716 [ 2] 5 CBLAuthDelegate:handleStarting 2018-11-08 07:29:41.716 [ 2] 5 SQLiteCBLAuthDelegateStorage:getRefreshToken 2018-11-08 07:29:41.718 [ 2] 0 SQLiteCBLAuthDelegateStorage:getRefreshTokenFailed:reason=stepResultWasNotRow 2018-11-08 07:29:41.719 [ 2] 0 CBLAuthDelegate:getRefreshTokenFailed 2018-11-08 07:29:41.720 [ 2] 5 CBLAuthDelegate:handleRequestingCodePair 2018-11-08 07:29:41.720 [ 2] 5 CBLAuthDelegate:requestCodePair 2018-11-08 07:29:41.719 [ 1] 5 CBLAuthDelegate:addAuthObserver:observer=0xbaa33c 2018-11-08 07:29:41.736 [ 1] 5 CBLAuthDelegate:addAuthObserver:observer=0xb9ddd8 2018-11-08 07:29:41.741 [ 1] 5 CapabilitiesDelegate:addCapabilitiesObserver:observer=0xb9dddc 2018-11-08 07:29:41.781 [ 1] 5 InternetConnectionMonitor:startMonitoring 2018-11-08 07:29:41.836 [ 3] 5 InternetConnectionMonitor:testConnection 2018-11-08 07:29:42.291 [ 1] 9 MediaPlayer:setObserverCalled 2018-11-08 07:29:42.377 [ 4] 0 MediaPlayer:handleSetObserverCalled 2018-11-08 07:29:42.381 [ 3] 0 InProcessAttachmentReader:readFailed:reason=SDS is closed 2018-11-08 07:29:42.384 [ 3] 5 InternetConnectionMonitor:updateConnectionStatus:connected=true 2018-11-08 07:29:42.393 [ 3] 5 InternetConnectionMonitor:notifyObserversLocked 2018-11-08 07:29:42.403 [ 3] 9 LibCurlHttpContentFetcher:~LibCurlHttpContentFetcher 2018-11-08 07:29:42.383 [ 1] 9 SpeechSynthesizer:addObserver:observer=0xbb4a6c 2018-11-08 07:29:42.440 [ 1] 9 PlaybackRouter:create::called 2018-11-08 07:29:42.499 [ 1] 9 MediaPlayer:setObserverCalled 2018-11-08 07:29:42.516 [ 5] 0 MediaPlayer:handleSetObserverCalled 2018-11-08 07:29:42.519 [ 1] 9 MediaPlayer:getSpeakerTypeCalled 2018-11-08 07:29:42.529 [ 1] 9 MediaPlayer:getSpeakerTypeCalled 2018-11-08 07:29:42.530 [ 1] 9 MediaPlayer:getSpeakerTypeCalled 2018-11-08 07:29:42.532 [ 1] 9 MediaPlayer:getSpeakerTypeCalled 2018-11-08 07:29:42.556 [ 1] 9 MediaPlayer:getSpeakerTypeCalled 2018-11-08 07:29:42.556 [ 1] 9 MediaPlayer:getSpeakerTypeCalled 2018-11-08 07:29:42.558 [ 1] 0 SpeakerManager:mapCreated:numSpeakerVolume=5,numAlertsVolume=1 2018-11-08 07:29:42.558 [ 1] 9 MediaPlayer:getSpeakerSettingsCalled 2018-11-08 07:29:42.576 [ 4] 9 MediaPlayer:handleGetSpeakerSettingsCalled 2018-11-08 07:29:42.586 [ 1] 9 MediaPlayer:getSpeakerSettingsCalled 2018-11-08 07:29:42.592 [ 5] 9 MediaPlayer:handleGetSpeakerSettingsCalled 2018-11-08 07:29:42.593 [ 1] 9 MediaPlayer:getSpeakerSettingsCalled 2018-11-08 07:29:42.594 [ 6] 9 MediaPlayer:handleGetSpeakerSettingsCalled 2018-11-08 07:29:42.594 [ 1] 9 MediaPlayer:getSpeakerSettingsCalled 2018-11-08 07:29:42.595 [ 7] 9 MediaPlayer:handleGetSpeakerSettingsCalled 2018-11-08 07:29:42.596 [ 1] 9 MediaPlayer:getSpeakerSettingsCalled 2018-11-08 07:29:42.597 [ 8] 9 MediaPlayer:handleGetSpeakerSettingsCalled 2018-11-08 07:29:42.597 [ 1] 9 SpeakerManager:validateSpeakerSettingsConsistencyResult:consistent=true 2018-11-08 07:29:42.606 [ 1] 9 SpeakerManager:validateSpeakerSettings:volume=100,mute=false 2018-11-08 07:29:42.606 [ 1] 9 SpeakerManager:updateContextManagerCalled:speakerType=AVS_SPEAKER_VOLUME 2018-11-08 07:29:42.618 [ 1] 9 MediaPlayer:setObserverCalled 2018-11-08 07:29:42.646 [ 9] 0 MediaPlayer:handleSetObserverCalled 2018-11-08 07:29:42.697 [ 1] 9 AlertScheduler:setTimerForNextAlertLocked 2018-11-08 07:29:42.706 [ 1] 9 AlertScheduler:executeScheduleNextAlertForRendering::no work to do. 2018-11-08 07:29:42.707 [ 1] 9 SpeakerManager:getSpeakerSettingsCalled 2018-11-08 07:29:42.718 [ a] 9 SpeakerManager:executeGetSpeakerSettingsCalled 2018-11-08 07:29:42.719 [ a] 9 MediaPlayer:getSpeakerSettingsCalled 2018-11-08 07:29:42.719 [ 9] 9 MediaPlayer:handleGetSpeakerSettingsCalled 2018-11-08 07:29:42.720 [ a] 9 SpeakerManager:validateSpeakerSettingsConsistencyResult:consistent=true 2018-11-08 07:29:42.720 [ a] 9 SpeakerManager:validateSpeakerSettings:volume=100,mute=false 2018-11-08 07:29:42.751 [ b] 1 AlertsCapabilityAgent:executeOnConnectionStatusChanged:status=DISCONNECTED,reason=ACL_CLIENT_REQUEST 2018-11-08 07:29:42.765 [ 1] 9 SpeakerManager:addSpeakerManagerObserverCalled 2018-11-08 07:29:42.765 [ 1] 9 SpeakerManager:addSpeakerManagerObserver:observer=0xbac9ac 2018-11-08 07:29:42.794 [ 1] 5 NotificationsRenderer:create 2018-11-08 07:29:42.797 [ 1] 9 MediaPlayer:setObserverCalled 2018-11-08 07:29:42.833 [ 6] 0 MediaPlayer:handleSetObserverCalled 2018-11-08 07:29:42.857 [ 1] 5 NotificationsCapabilityAgent:init 2018-11-08 07:29:42.859 [ 1] 5 NotificationsRenderer:addObserver 2018-11-08 07:29:42.907 [ c] 5 NotificationsCapabilityAgent:executeInit 2018-11-08 07:29:42.917 [ c] 5 NotificationsCapabilityAgent:notifyObservers:indicatorState=0 2018-11-08 07:29:42.918 [ c] 5 NotificationsCapabilityAgent:executeProvideState:sendToken=false,stateRequestToken=0 2018-11-08 07:29:42.948 [ c] 9 ContextManager:updateStateLocked:action=updatedState,namespace=Notifications,name=IndicatorState 2018-11-08 07:29:42.920 [ 1] 5 InteractionModel:InteractionModelCapabilityAgent 2018-11-08 07:29:43.077 [ 1] 0 ExternalMediaPlayer:createAdapters 2018-11-08 07:29:43.146 [ 1] 1 AudioPlayer:addObserver 2018-11-08 07:29:43.160 [ d] 5 TemplateRuntime:onDialogUXStateChanged:state=IDLE 2018-11-08 07:29:43.244 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechSynthesizer,name=Speak,handler=0xbbb560,policy=BLOCKING 2018-11-08 07:29:43.294 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=ClearQueue,handler=0xbab800,policy=NON_BLOCKING 2018-11-08 07:29:43.295 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=Stop,handler=0xbab800,policy=NON_BLOCKING 2018-11-08 07:29:43.295 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=Play,handler=0xbab800,policy=NON_BLOCKING 2018-11-08 07:29:43.322 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=ExternalMediaPlayer,name=Play,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.327 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=ExternalMediaPlayer,name=Logout,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.327 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=ExternalMediaPlayer,name=Login,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.328 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.SeekController,name=SetSeekPosition,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.336 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Play,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.336 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.FavoritesController,name=Unfavorite,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.342 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaylistController,name=EnableShuffle,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.343 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Pause,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.343 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Next,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.344 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Rewind,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.346 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaylistController,name=EnableRepeat,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.346 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Previous,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.347 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=StartOver,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.347 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=FastForward,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.349 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.FavoritesController,name=Favorite,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.354 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaylistController,name=DisableShuffle,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.358 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaylistController,name=EnableRepeatOne,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.359 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaylistController,name=DisableRepeat,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.360 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.SeekController,name=AdjustSeekPosition,handler=0xbbecb0,policy=NON_BLOCKING 2018-11-08 07:29:43.362 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=SetEndOfSpeechOffset,handler=0xbbace8,policy=NON_BLOCKING 2018-11-08 07:29:43.366 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=ExpectSpeech,handler=0xbbace8,policy=NON_BLOCKING 2018-11-08 07:29:43.366 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=StopCapture,handler=0xbbace8,policy=NON_BLOCKING 2018-11-08 07:29:43.367 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=AdjustVolume,handler=0xbac940,policy=NON_BLOCKING 2018-11-08 07:29:43.368 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=SetAlert,handler=0xbac940,policy=NON_BLOCKING 2018-11-08 07:29:43.369 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=DeleteAlerts,handler=0xbac940,policy=NON_BLOCKING 2018-11-08 07:29:43.370 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=DeleteAlert,handler=0xbac940,policy=NON_BLOCKING 2018-11-08 07:29:43.376 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=SetVolume,handler=0xbac940,policy=NON_BLOCKING 2018-11-08 07:29:43.377 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=System,name=SetEndpoint,handler=0xbc0a28,policy=NON_BLOCKING 2018-11-08 07:29:43.378 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=System,name=ResetUserInactivity,handler=0xbbaaec,policy=NON_BLOCKING 2018-11-08 07:29:43.379 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=AdjustVolume,handler=0xbabcb0,policy=NON_BLOCKING 2018-11-08 07:29:43.379 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=SetMute,handler=0xbabcb0,policy=NON_BLOCKING 2018-11-08 07:29:43.380 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=SetVolume,handler=0xbabcb0,policy=NON_BLOCKING 2018-11-08 07:29:43.380 [ 1] 5 TemplateRuntime:getConfiguration 2018-11-08 07:29:43.381 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=TemplateRuntime,name=RenderPlayerInfo,handler=0xbbfa48,policy=HANDLE_IMMEDIATELY 2018-11-08 07:29:43.386 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=TemplateRuntime,name=RenderTemplate,handler=0xbbfa48,policy=HANDLE_IMMEDIATELY 2018-11-08 07:29:43.387 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Notifications,name=ClearIndicator,handler=0xbb053c,policy=HANDLE_IMMEDIATELY 2018-11-08 07:29:43.387 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Notifications,name=SetIndicator,handler=0xbb053c,policy=HANDLE_IMMEDIATELY 2018-11-08 07:29:43.388 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=InteractionModel,name=NewDialogRequest,handler=0xbbe460,policy=HANDLE_IMMEDIATELY 2018-11-08 07:29:43.389 [ 1] 5 EqualizerController:getConfiguration 2018-11-08 07:29:43.390 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=EqualizerController,name=AdjustBands,handler=0xbc135c,policy=NON_BLOCKING 2018-11-08 07:29:43.390 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=EqualizerController,name=SetMode,handler=0xbc135c,policy=NON_BLOCKING 2018-11-08 07:29:43.415 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=EqualizerController,name=ResetBands,handler=0xbc135c,policy=NON_BLOCKING 2018-11-08 07:29:43.416 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=EqualizerController,name=SetBands,handler=0xbc135c,policy=NON_BLOCKING 2018-11-08 07:29:43.492 [ 1] 9 SpeakerManager:addSpeakerManagerObserverCalled 2018-11-08 07:29:43.495 [ 1] 9 SpeakerManager:addSpeakerManagerObserver:observer=0xb9dde8 2018-11-08 07:29:43.497 [ 1] 5 NotificationsCapabilityAgent:addObserver #################################################

NOTIFICATION INDICATOR STATE: OFF

#################################################

2018-11-08 07:29:43.512 [ 1] 5 TemplateRuntime:addObserver 2018-11-08 07:29:43.516 [ e] 5 TemplateRuntime:addObserverInExecutor 2018-11-08 07:29:44.006 [ 2] 5 HttpPost:doPostSucceeded:code=200 2018-11-08 07:29:44.007 [ 2] 5 CBLAuthDelegate:receiveCodePairResponse:code=200 2018-11-08 07:29:44.009 [ 2] 5 CBLAuthDelegate:mapHTTPStatusToError:code=200,error=SUCCESS 2018-11-08 07:29:44.012 [ 2] 5 CBLAuthDelegate:setAuthError:authError=SUCCESS ##################################

NOT YET AUTHORIZED

##################################

################################################################################################

To authorize, browse to: 'https://amazon.com/us/code' and enter the code: CYYUHY

################################################################################################

2018-11-08 07:29:44.066 [ 2] 5 CBLAuthDelegate:handleRequestingToken #################################################

Checking for authorization (1)...

#################################################

2018-11-08 07:29:44.067 [ 2] 5 CBLAuthDelegate:requestToken 2018-11-08 07:29:44.186 [ 2] 5 HttpPost:doPostSucceeded:code=400 2018-11-08 07:29:44.187 [ 2] 5 CBLAuthDelegate:receiveTokenResponse:code=400 2018-11-08 07:29:44.187 [ 2] 5 CBLAuthDelegate:mapHTTPStatusToError:code=400,error=INVALID_REQUEST 2018-11-08 07:29:44.193 [ 2] 5 CBLAuthDelegate:errorInLwaResponseBody:error=authorization_pending,errorCode=AUTHORIZATION_PENDING 2018-11-08 07:29:44.194 [ 2] 5 CBLAuthDelegate:setAuthError:authError=AUTHORIZATION_PENDING 2018-11-08 07:29:44.195 [ 2] 0 CBLAuthDelegate:receiveTokenResponseFailed:result=AUTHORIZATIONPENDING startsample.sh: line 3: 904 Illegal instruction ./SampleApp "/home/pi/build/Integration/AlexaClientSDKConfig.json" "/home/pi/third-party/alexa-rpi/models" DEBUG9 _

Provide the steps to reproduce the issue, if applicable:

This comes up after running the script: sudo bash startsample.sh

Tell us about your environment:

What version of the AVS Device SDK are you using?

  sdkVersion: <1.10.0>

Tell us what hardware you're using:

Tell us about your OS (Type & version):

kclchan commented 5 years ago

Hi @tibre, I notice that you are using a Pi Zero and from the logs you are getting an "illegal instruction" error. Please note that the Sensory library is not built for Pi Zero. Please refer to #873 for more information.

lestig commented 5 years ago

@kclchan, I see. Well, that explains it, thanks much. Is there a way to build the sdk with a supported library for the Pi Zero? Is Snowboy an option?

kclchan commented 5 years ago

Hi @tibre, I would suggest posting an issue in their github page:

For Sensory: https://github.com/Sensory/alexa-rpi/issues

For Kitt-AI https://github.com/Kitt-AI/snowboy

In the meantime, you may want to build the SampleApp by setting KWD option to off (https://github.com/alexa/avs-device-sdk/wiki/Build-Options#build-with-a-wake-word-detector). Then you could use tap-to-talk (i.e. press the 't' key) to interact with Alexa. Hope this helps. Thanks!

kclchan commented 5 years ago

Also @tibre, you may look into this #1014 where the user was successful in getting Kitt.Ai to work on Pi Zero.

kclchan commented 5 years ago

I am closing this issue due to inactivity. Please feel free to re-open it if it has been closed in error.