syncstorage-rs icon indicating copy to clipboard operation
syncstorage-rs copied to clipboard

503 errors on token verification

Open jdeus opened this issue 8 months ago • 2 comments

I'm observing a lot of syncing issues. After the server being up for a few hours, sync becomes impossible and the logs systematically mention Got token response: 503. Restarting the server solves the issue.

I'm using the main branch.

Is that a known issue ?

1749488654066	FirefoxAccounts	DEBUG	getOAuthToken enter
1749488654066	FirefoxAccounts	TRACE	getCachedToken returning cached token
1749488654066	FirefoxAccounts	DEBUG	getOAuthToken returning a cached token
1749488654066	Sync.SyncAuthManager	INFO	Getting a sync token from: http://INTERNAL_IP:8000/1.0/sync/1.5
1749488654066	Sync.SyncAuthManager	DEBUG	Getting a token using OAuth
1749488654066	Services.Common.TokenServerClient	DEBUG	Beginning OAuth token exchange: http://INTERNAL_IP:8000/1.0/sync/1.5
1749488654066	Services.Common.RESTRequest	DEBUG	GET request to http://INTERNAL_IP:8000/1.0/sync/1.5
1749488654067	Services.Common.RESTRequest	DEBUG	GET request to https://api.accounts.firefox.com/v1/account/device/commands?index=0
1749488654234	Services.Common.RESTRequest	DEBUG	GET https://api.accounts.firefox.com/v1/account/device/commands?index=0 200
1749488654234	Hawk	DEBUG	(Response) /account/device/commands?index=0: code: 200 - Status text: 
1749488654234	Hawk	DEBUG	Clock offset vs https://api.accounts.firefox.com/v1: -234
1749488660927	FirefoxAccounts	TRACE	not checking freshness of profile as it remains recent
1749488660927	FirefoxAccounts	TRACE	not checking freshness of profile as it remains recent
1749488660928	FirefoxAccounts	TRACE	not checking freshness of profile as it remains recent
1749488664071	Services.Common.RESTRequest	DEBUG	GET http://INTERNAL_IP:8000/1.0/sync/1.5 503
1749488664072	Services.Common.TokenServerClient	DEBUG	Got token response: 503
1749488664072	Services.Common.TokenServerClient	INFO	Server-reported error: {"location":"body","name":"","description":"Resource is not available"}
1749488664072	Sync.SyncAuthManager	ERROR	Non-authentication error in _fetchTokenForUser: TokenServerClientServerError({"now":"2025-06-09T17:04:24.072Z","message":"Server error.","cause":"general","response_body":"{\"status\":\"error\",\"errors\":[{\"location\":\"body\",\"name\":\"\",\"description\":\"Resource is not available\"}]}","response_headers":{"content-length":"101","content-type":"application/json","x-weave-timestamp":"1749488654.44","vary":"Origin, Access-Control-Request-Method, Access-Control-Request-Headers","date":"Mon, 09 Jun 2025 17:04:24 GMT"},"response_status":503})(resource://services-common/tokenserverclient.sys.mjs:28:36) JS Stack trace: [email protected]:90:16
[email protected]:306:19

jdeus avatar Jun 09 '25 17:06 jdeus

Is this project even supported by Mozilla ?

jdeus avatar Jun 20 '25 15:06 jdeus

I suppose not then

jdeus avatar Jun 29 '25 11:06 jdeus

Project considered abandoned

jdeus avatar Jul 18 '25 13:07 jdeus

up

jdeus avatar Oct 07 '25 17:10 jdeus

Thanks for filing. We don't have the resources to debug individual installs so I'm going to close this.

clouserw avatar Oct 09 '25 15:10 clouserw