You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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.
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.
Activity
sandy081 commentedon Dec 4, 2019
this is a new limitation that got introduced recently. Daniel Imms (@Tyriar) FYI
Tyriar commentedon Dec 4, 2019
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.
sandy081 commentedon Jan 24, 2020
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.
Tyriar commentedon Jan 24, 2020
Sandeep Somavarapu (@sandy081) 👍, 413 should be handled explicitly in the client though.
sandy081 commentedon Jan 24, 2020
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.
sandy081 commentedon Jan 24, 2020
Following error is reported to the user in this case and Sync is turned off to prevent further requests to server.
sandy081 commentedon Jan 24, 2020
Fixed by a27c9fc