avs-device-sdk icon indicating copy to clipboard operation
avs-device-sdk copied to clipboard

UNRECOVERABLE AUTHORIZATION ERROR: UNAUTHORIZED_CLIENT # # Entering limited interaction mode.

Open asolo1221 opened this issue 2 years ago • 1 comments

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.

Briefly summarize your issue:

I tried to install avs on a rpi 4, and when i autorized it, it gived this error

What is the expected behavior?

What behavior are you observing?

2023-03-05 18:53:40.219 [ 36] 5 HttpPost:doPostSucceeded:code=400 2023-03-05 18:53:40.222 [ 36] 5 LWAAuthorizationAdapter:receiveTokenResponse:code=400 2023-03-05 18:53:40.222 [ 36] 5 LWAAuthorizationAdapter:mapHTTPStatusToError:code=400,error=INVALID_REQUEST 2023-03-05 18:53:40.223 [ 36] 5 LWAAuthorizationAdapter:errorInLwaResponseBody:error=unauthorized_client,errorCode=UNAUTHORIZED_CLIENT 2023-03-05 18:53:40.223 [ 36] 0 LWAAuthorizationAdapter:receiveTokenResponseFailed:result=UNAUTHORIZED_CLIENT 2023-03-05 18:53:40.223 [ 36] 5 LWAAuthorizationAdapter:resetAuthMethodLocked 2023-03-05 18:53:40.223 [ 36] 5 LWAAuthorizationAdapter:updateStateAndNotifyManager:state=UNRECOVERABLE_ERROR,error=UNAUTHORIZED_CLIENT 2023-03-05 18:53:40.223 [ 36] 5 AuthorizationManager:reportStateChange 2023-03-05 18:53:40.223 [ 36] 5 LWAAuthorizationAdapter:isShuttingDown:shuttingDown=false 2023-03-05 18:53:40.223 [ e:2] 5 AuthorizationManager:handleTransition 2023-03-05 18:53:40.223 [ e:2] 5 AuthorizationManager:setStateLocked:fromState=AUTHORIZING,toState=UNRECOVERABLE_ERROR,fromError=SUCCESS,toError=UNAUTHORIZED_CLIENT 2023-03-05 18:53:40.223 [ e:2] I HTTP2Transport:onAuthStateChange:this=0x14df3d8,newState=UNRECOVERABLE_ERROR,error=UNAUTHORIZED_CLIENT 2023-03-05 18:53:40.223 [ e:2] E HTTP2Transport:shuttingDown:this=0x14df3d8,reason=unrecoverableAuthError 2023-03-05 18:53:40.223 [ e:2] I HTTP2Transport:setStateLocked:this=0x14df3d8,currentState=AUTHORIZING,newState=SHUTDOWN,changedReason=UNRECOVERABLE_ERROR 2023-03-05 18:53:40.223 [ e:2] 5 ConditionVariableWrapper:notifyAll 2023-03-05 18:53:40.223 [ 38] I HTTP2Transport:handleShutdown:this=0x14df3d8 ######################################################################

UNRECOVERABLE AUTHORIZATION ERROR: UNAUTHORIZED_CLIENT

Entering limited interaction mode.

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

+----------------------------------------------------------------------------+ | In Limited Mode: | +----------------------------------------------------------------------------+ | Status : Unrecoverable authorization failure. | +----------------------------------------------------------------------------+ | Info: | | Press 'i' followed by Enter at any time to see the help screen. | | Stop an interaction: | | Press 's' and Enter to stop an ongoing interaction. | | Speaker Control: | | Press 'p' followed by Enter at any time to adjust speaker settings. | | Reset device: | | Press 'k' followed by Enter at any time to reset your device. This | | will erase any data stored in the device and you will have to | | re-register your device. | | This option will also exit the application. | | Reauthorize device: | | Press 'z' followed by Enter at any time to re-authorize your device. | | This will erase any data stored in the device and initiate | | re-authorization. | | Quit: | | Press 'q' followed by Enter at any time to quit the application. | +----------------------------------------------------------------------------+

2023-03-05 18:53:40.224 [ 38] 5 LibcurlHTTP2Connection:disconnect:this=0x1287e00 2023-03-05 18:53:40.224 [ 37] 5 LibcurlHTTP2Connection:networkLoopExiting:this=0x1287e00 2023-03-05 18:53:40.224 [ 38] 7 HTTP2Transport:notifyObserversOnDisconnect:this=0x14df3d8 2023-03-05 18:53:40.224 [ 38] I MessageRouter:onDisconnected:transport=0x14df3d8,m_activeTransport=0x14df3d8,sizeOf m_transports=1,reason=UNRECOVERABLE_ERROR 2023-03-05 18:53:40.224 [ 38] I MessageRouter:releaseTransport:transport=0x14df3d8,sizeOf m_transports=0 2023-03-05 18:53:40.225 [ 38] I MessageRouter:setConnectionStatusLocked:status=DISCONNECTED,reason=UNRECOVERABLE_ERROR 2023-03-05 18:53:40.225 [ e:b] I HTTP2Transport:doShutdown:this=0x14df3d8 2023-03-05 18:53:40.225 [ 38] 0 MessageRouter:connectionStatusChanged:reason=UNRECOVERABLE_ERROR,newStatus=DISCONNECTED 2023-03-05 18:53:40.225 [ e:b] I HTTP2Transport:setStateLocked:this=0x14df3d8,currentState=SHUTDOWN,newState=SHUTDOWN,changedReason=ACL_CLIENT_REQUEST 2023-03-05 18:53:40.225 [ e:b] 7 HTTP2Transport:alreadyInNewState:this=0x14df3d8 2023-03-05 18:53:40.225 [ e:b] I HTTP2Transport:disconnect:this=0x14df3d8 2023-03-05 18:53:40.225 [ 38] 7 HTTP2Transport:mainLoopExiting:this=0x14df3d8 2023-03-05 18:53:40.225 [ 38] 9 PowerMonitor:getInstance 2023-03-05 18:53:40.225 [ 38] 9 PowerMonitor:removeThreadPowerResource:threadId=2402824640 2023-03-05 18:53:40.225 [ e:b] 5 AuthorizationManager:removeAuthObserver 2023-03-05 18:53:40.225 [ e:b] 5 LibcurlHTTP2Connection:destroy:this=0x1287e00 2023-03-05 18:53:40.225 [ e:b] 5 LibcurlHTTP2Connection:disconnect:this=0x1287e00 2023-03-05 18:53:40.226 [ e:b] 0 AVSConnectionManager:onConnectionStatusChanged:this=0x1233600,status=DISCONNECTED,engine_count=1 2023-03-05 18:53:40.227 [ e:b] 5 AbstractAVSConnectionManager:notifyObservers:this=0x1233600:EngineConnectionStatusDetail,engineType=1,status=DISCONNECTED,reason=UNRECOVERABLE_ERROR 2023-03-05 18:53:40.227 [ e:b] 5 CapabilitiesDelegate:onConnectionStatusChanged:connectionStatus=DISCONNECTED 2023-03-05 18:53:40.227 [ e:b] 0 DialogUXStateAggregator:onConnectionStatusChanged:engineAggregatedStatus=DISCONNECTED 2023-03-05 18:53:40.227 [ e:b] 0 DialogUXStateAggregator:onConnectionStatusChanged:status=DISCONNECTED:deprecated method. Nothing done. 2023-03-05 18:53:40.227 [ e:b] 5 CertifiedSender:onConnectionStatusChanged 2023-03-05 18:53:40.227 [ e:b] 5 ConditionVariableWrapper:notifyAll 2023-03-05 18:53:40.227 [ e:28] 0 DialogUXStateAggregator:onConnectionStatusChangedLambda:engineType=1,engineStatus=DISCONNECTED 2023-03-05 18:53:40.227 [ e:28] 0 DialogUXStateAggregator:onConnectionStatusChangedLambda:isConnected=false 2023-03-05 18:53:40.227 [ e:28] 0 DialogUXStateAggregator:onConnectionStatusChangedLambda::Setting state to idle 2023-03-05 18:53:40.227 [ e:28] 0 DialogUXStateAggregator:executeSetState:from=IDLE,to=IDLE,validTransition=false 2023-03-05 18:53:40.227 [ e:20] 1 AlertsCapabilityAgent:executeOnConnectionStatusChanged:status=DISCONNECTED,reason=UNRECOVERABLE_ERROR #####################################

Client not connected!

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

Provide the steps to reproduce the issue, if applicable:

./SampleApplications/ConsoleSampleApplication/src/SampleApp ./Integration/AlexaClientSDKConfig.json DEBUG9

Tell us about your environment:

What version of the AVS Device SDK are you using?

  <3.0.0>

Tell us what hardware you're using:

  • [ ] Raspberry Pi

Tell us about your OS (Type & version):

  • [i think ] Raspbian Stretch
  • [ ] Raspbian Jessy

asolo1221 avatar Mar 05 '23 18:03 asolo1221

Hi, asolo

You can check whether your product info (DTID) whether match your inform uploaded to server from log. The log you provided is not with these information.

tinypancake avatar Mar 29 '23 01:03 tinypancake