New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 842096 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 2
Type: Feature



Sign in to add a comment

Preserve HTTP code of failed Sync request

Project Member Reported by sfiera@chromium.org, May 11 2018

Issue description

The Chrome Sync client currently considers all non-200 HTTP codes as equivalent:
https://cs.chromium.org/chromium/src/components/sync/engine_impl/net/server_connection_manager.cc?rcl=b8d3b1e930ee8120f36e14511f54a7127e81ed96&l=68

This discards useful information. In particular, the Sync server may emit the following HTTP codes:

* 400 Bad Request
* 401 Unauthorized
* 403 Forbidden
* 404 Not Found
* 429 Too Many Requests
* 500 Internal Server Error
* 503 Service Unavailable

(I also saw a 504 Gateway Timeout; I don’t think the Sync server itself would have generated that, but it’s a possible response)

In particular, while investigating https://crbug.com/838323, I would really have liked to see an HTTP 429 error instead of SYNC_SERVER_ERROR. This would have saved a lot of investigation time.
 

Comment 1 by treib@chromium.org, May 11 2018

Cc: treib@chromium.org
Labels: -Pri-3 OS-Android OS-Chrome OS-Linux OS-Mac OS-Windows Pri-2
Status: Available (was: Untriaged)
The HttpResponse struct where SYNC_SERVER_ERROR is set does contain a response_code field. I guess that just isn't output anywhere?

Comment 2 by sfiera@chromium.org, May 11 2018

Yeah, I don’t see it anywhere. I would have expected to see it in chrome://sync-internals somewhere, ideally in the log, but at least in some kind of “most recent status” field.
Labels: sync-fixit-2018q3
Owner: tschumann@chromium.org
Status: Assigned (was: Available)
Tentatively assigning to tschumann@.
Labels: sync-fixit-2018q4

Sign in to add a comment