Skip to content

Sync: Large settings cause a retry loop #86178

Closed

Description

#85944

If the user settings are large, above the 100KB limit we have set for the server right now, sync fails 'silently' and keeps retrying, as seen in the log data. We should display errors that require user intervention.

[2019-12-03 13:51:46.307] [userDataSync] [error] Error: Server returned 413
    at d.write (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:401:502)
    at async e.apply (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:391:681)
    at async e.sync (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:389:844)
    at async d.sync (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:399:154)
    at async u.sync (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:395:816)

Activity

  1. sandy081 commented on Dec 4, 2019

    @sandy081
    Member

    this is a new limitation that got introduced recently. Daniel Imms (@Tyriar) FYI

  2. added
    bug
    on Dec 4, 2019
  3. Tyriar commented on Dec 4, 2019

    @Tyriar
    Contributor

    Whatever amount we decide on the payload should be measured client side before it's sent over so you don't need to hit the server to know it's going to be a 413.

  4. sandy081 commented on Jan 24, 2020

    @sandy081
    Member

    I do not think hardcoding the limit on the client is good idea. It is not expected to change VS Code and release whenever we want to change the limit.

  5. Tyriar commented on Jan 24, 2020

    @Tyriar
    Contributor

    Sandeep Somavarapu (@sandy081) 👍, 413 should be handled explicitly in the client though.

  6. sandy081 commented on Jan 24, 2020

    @sandy081
    Member

    I think client still need to know the max size limit from the server to inform the user in the error.
    It would be useful if server returns the max limit size along with 413 status code.

  7. sandy081 commented on Jan 24, 2020

    @sandy081
    Member

    Following error is reported to the user in this case and Sync is turned off to prevent further requests to server.

    image

  8. sandy081 commented on Jan 24, 2020

    @sandy081
    Member

    Fixed by a27c9fc

  9. added
    verified
    on Jan 30, 2020
  10. locked and limited conversation to collaborators on Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugsettings-syncverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions