Closed Bug 1402513 Opened 8 years ago Closed 8 years ago

Expected key not present in result: hashed_fxa_uid

Categories

(Firefox for Android Graveyard :: Android Sync, defect)

Firefox 55
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1396718

People

(Reporter: S.Braendlin, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0 Build ID: 20170824053622 Steps to reproduce: Self hosted Firefox Sync 1.5 content server on Ubuntu Server 16.04 and using Firefox Accounts server. Added successfully two firefox desktop instances. Try to add Firefox for Android after it had worked for quite a long time. The error appears for two android phones. Both android phones have android 7.1. Actual results: Adding the account is successful. This means I could auth me against the Firefox Accounts server. But the first sync never finishes and "lastSync" is always "never". Debbuging the android phone showed this error message: 09-22 23:51:17.978 D/GeckoLogger(12350): Thread with tag and thread id releasing lock: FxAccountSyncAdapter, 521 ... RELEASED 09-22 23:51:17.978 W/FxAccounts(12350): fennec_fdroid :: FxAccountSyncAdapter :: Global session failed. 09-22 23:51:17.979 E/FxAccounts(12350): fennec_fdroid :: FxAccountSyncAdapter :: Got exception syncing. 09-22 23:51:17.979 E/FxAccounts(12350): org.mozilla.gecko.tokenserver.TokenServerException$TokenServerMalformedResponseException: org.mozilla.gecko.sync.UnexpectedJSONException$BadRequiredFieldJSONException: Expected key not present in result: hashed_fxa_uid 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.tokenserver.TokenServerClient.processResponse(TokenServerClient.java:226) 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.tokenserver.TokenServerClient$TokenFetchResourceDelegate.handleHttpResponse(TokenServerClient.java:281) 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.sync.net.BaseResource.execute(BaseResource.java:342) 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.sync.net.BaseResource.go(BaseResource.java:373) 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.sync.net.BaseResource.get(BaseResource.java:379) 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.tokenserver.TokenServerClient.getTokenFromBrowserIDAssertion(TokenServerClient.java:329) 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.fxa.sync.FxAccountSyncAdapter.syncWithAssertion(FxAccountSyncAdapter.java:463) 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.fxa.sync.FxAccountSyncAdapter$3.handleMarried(FxAccountSyncAdapter.java:667) 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.fxa.authenticator.FxADefaultLoginStateMachineDelegate.handleFinal(FxADefaultLoginStateMachineDelegate.java:81) 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.fxa.login.FxAccountLoginStateMachine$ExecuteDelegate.handleTransition(FxAccountLoginStateMachine.java:64) 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.fxa.login.Cohabiting$1.handleSuccess(Cohabiting.java:46) 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.fxa.login.Cohabiting$1.handleSuccess(Cohabiting.java:28) 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.background.fxa.FxAccountClient20$5.handleSuccess(FxAccountClient20.java:580) 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.background.fxa.FxAccountClient20$ResourceDelegate$2.run(FxAccountClient20.java:280) 09-22 23:51:17.979 E/FxAccounts(12350): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 09-22 23:51:17.979 E/FxAccounts(12350): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 09-22 23:51:17.979 E/FxAccounts(12350): at java.lang.Thread.run(Thread.java:761) 09-22 23:51:17.979 E/FxAccounts(12350): Caused by: org.mozilla.gecko.sync.UnexpectedJSONException$BadRequiredFieldJSONException: Expected key not present in result: hashed_fxa_uid 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.sync.ExtendedJSONObject.throwIfFieldsMissingOrMisTyped(ExtendedJSONObject.java:397) 09-22 23:51:17.979 E/FxAccounts(12350): at org.mozilla.gecko.tokenserver.TokenServerClient.processResponse(TokenServerClient.java:223) 09-22 23:51:17.979 E/FxAccounts(12350): ... 16 more Expected results: The first sync should finish. My data should get synced automatically.
Upgrading your self-hosted token server to the latest version should fix this. Check out https://bugzilla.mozilla.org/show_bug.cgi?id=1382666#c8 for the details.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Android Background Services → Firefox for Android
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.