Code-settings-sync: not able to do anything after login in to GitHub

Created on 26 Sep 2019  ยท  15Comments  ยท  Source: shanalikhan/code-settings-sync

๐Ÿ› Describe the bug
I tried installing it in both my laptop and desktop and I can't do anything after logging into GitHub. I have success logging in then when I try to do something it sends me to an outside link that leads to a page not found. and I also get an error that synclocalsettings.json is invalid. I checked several tutorials on how to install it but didn't see one with the same issue. tried to restart VScode, restart sync setting and reinstalling

๐ŸŒด Visual Studio Code Version : [ 1.38.1]
๐ŸŒด Code Settings Sync Version : [ VERSION_HERE ]
๐ŸŒด Standard or Insiders : [ _here_ ]
๐ŸŒด Portable or Installed : [ _here_ ]
๐ŸŒด OSS or Official Build : [ _here_ ]
๐ŸŒด Operating System : [ windows 10 ]
๐ŸŒด Occurs On: [ instaling ]
๐ŸŒด Proxy Enabled: [ Yes / No ]
๐ŸŒด Gist Id: [ ID_HERE ]

๐Ÿ“ฐ To Reproduce
Steps to reproduce the behavior:

  1. Installed the extension
  2. logged in
  3. error

๐Ÿ’ช Expected behavior
The extension should create an automatic gist

๐Ÿ“บ Console Error Log
If applicable, add screenshots or paste the console log from developer console of VSCode (Help Menu > Developer Tool - Console Tab).

๐Ÿ“บ Additional context
Add any other context about the problem here.

bug ๐Ÿ›

Most helpful comment

Also using VSCodium and am having the exact same problem. Logging in works fine, but then "Select Your Existing Gist" is just blank. No options to pick one or skip.

All 15 comments

U can always download the older versions of Settings Sync from vscode.
Also in releases tab there are older packages available.

What problem are you facing

Get Outlook for iOShttps://aka.ms/o0ukef


From: Giulio Zanchetta notifications@github.com
Sent: Saturday, September 28, 2019 1:39:45 PM
To: shanalikhan/code-settings-sync code-settings-sync@noreply.github.com
Cc: Subscribed subscribed@noreply.github.com
Subject: Re: [shanalikhan/code-settings-sync] not able to do anything after login in to GitHub (#1051)

Can you guys just re-upload the old version and for this new version create a new extension like "Settings Sync Alpha/Beta"?

I m not anymore able to upload settings and the old one was more comfortable.

Thanks

โ€”
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/shanalikhan/code-settings-sync/issues/1051?email_source=notifications&email_token=ACC6HHDN2AGPME6KZVWJIIDQL4J5DA5CNFSM4I2433OKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD72UCFY#issuecomment-536166679, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACC6HHGWDBVSL6UFQHK7R4TQL4J5DANCNFSM4I2433OA.

I'm having the same issue.
I use VSCode 1.38.1 and sync 3.4.3.

When I click ยซ login with github ยป, I get success.
In VSCode, I have the error ยซ Sync : Unable to read syncLocalSettings.json. Make sure its valid JSON. ยป
And it tries to open an old entry from your blog you deleted : https://shanalikhan.github.io/2017/02/19/Option-to-ignore-settings-folders-code-settings-sync.html

I tried to reset config a few times, and it's always the same.

Forgot to say I'm using VSCodium fork, which does not use the same name for folders.
I don't think you use hard path though.

I don't think you use hard path though.
Yes I'm not using hard path as of now.

What are you paths for users and extensions folder

If applicable, add screenshots or paste the console log from developer console of VSCode (Help Menu > Developer Tool - Console Tab).

Can you post the image

the paths are :
C:Users\.vscode-oss
C:Users\\AppData\Roaming\VSCodium

The only thing about sync in the console is :

Error: FetchError: invalid json response body at https://api.github.com/user reason: Unexpected token < in JSON at position 0
at e.<anonymous> (c:\Users\<mylogin>\.vscode-oss\extensions\shan.code-settings-sync-3.4.3\out\extension.js:560:74235)
at c:\Users\<mylogin>\.vscode-oss\extensions\shan.code-settings-sync-3.4.3\out\extension.js:560:71805
at Object.module.exports.i [as throw] (c:\Users\<mylogin>\.vscode-oss\extensions\shan.code-settings-sync-3.4.3\out\extension.js:560:71910)
at s (c:\Users\<mylogin>\.vscode-oss\extensions\shan.code-settings-sync-3.4.3\out\extension.js:560:70707)
at process._tickCallback (internal/process/next_tick.js:68:7)

It might be my proxy doing bad thing.

It might be my proxy doing bad thing.

Exactly, you need to configure your network settings and vscode network settings to support proxy.

VSCode is configured. Auto-update and installing extensions works.

Is there a way to get the response in full ? Looks like it is HTML, as it fails on '<', but the whole response would be usefull.

The proxy was too paranoid. I had the IT departement fix it for another problem (https://github.com/seanmonstar/reqwest/issues/660) and it seems to be fixed now.

As a summary, the proxy was refusing connections if no User-Agent was set. I don't know if it your plugin in particular, or a vscode function you use which does not set it.

This afternoon, it seems the proxy is back to paranoid.
I don't know why, I get the whole response now, and I can confirm the connection is refused by the proxy with 407 auth required.
It is a non-auth proxy, which is configured to stop connections if no User-Agent is set.

From sniffing the HTTP connections, it seems to be the almost the same problem. I suspect it is because user-agent is all lowercase, instead of HTTP-Header-Case.

Here is a log :

accept: application/vnd.github.v3+json
user-agent: octokit.js/16.28.7 Node.js/10.11.0 (Windows 10; x64)
authorization: token [โ€ฆ]
Accept-Encoding: gzip,deflate
Host: api.github.com
Connection: close

I really have no idea why some is lower case, and some http header case.

After further tests, I'm more and more puzled. I'm not sure it comes from case.

I won't test more until late next week, unless you have specifics to test.

Also using VSCodium and am having the exact same problem. Logging in works fine, but then "Select Your Existing Gist" is just blank. No options to pick one or skip.

@tycrek can you post your developer console log.

Same problem here.... Just installed it, logged into Github, and then when opening Configuratins page or trying to sync, it opens a 404 page.

Just tried in a different machine, a brand new Macbook Pro with MacOS Catalina, with a fresh VSCode install, and the exact same thing happens.

VSCode shows the error "Unable to read syncLocalSettings.json"

The file is correctly placed at the folder:
/Users//Library/Application Support/Code/User/

VSCode version:

Version: 1.41.0
Commit: 9579eda04fdb3a9bba2750f15193e5fafe16b959
Date: 2019-12-11T17:58:38.338Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Darwin x64 19.0.0

Console log. when entering the config page:

console.ts:137 [Extension Host] TypeError: Cannot read property 'trim' of null  at e.<anonymous> (/Users/<USERNAME>/.vscode/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:8401)  at /Users/<USERNAME>/.vscode/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:5423  at Object.next (/Users/<USERNAME>/.vscode/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:5528)    at a (/Users/<USERNAME>/.vscode/extensions/shan.code-settings-sync-3.4.3/out/extension.js:74:4274)
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
(anonymous) @ rpcProtocol.ts:101
fire @ event.ts:581
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:581
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:200
addChunk @ _stream_readable.js:294
readableAddChunk @ _stream_readable.js:275
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
notificationsAlerts.ts:40 Sync : Unable to read syncLocalSettings.json. Make sure its Valid JSON.
onDidNotificationChange @ notificationsAlerts.ts:40
(anonymous) @ notificationsAlerts.ts:26
fire @ event.ts:581
addNotification @ notifications.ts:171
notify @ notificationService.ts:101
(anonymous) @ mainThreadMessageService.ts:83
_showMessage @ mainThreadMessageService.ts:44
$showMessage @ mainThreadMessageService.ts:38
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
(anonymous) @ rpcProtocol.ts:101
fire @ event.ts:581
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:581
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:200
addChunk @ _stream_readable.js:294
readableAddChunk @ _stream_readable.js:275
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
webviewElement.ts:241 [Embedded Page] jQuery.Deferred exception: Cannot read property 'forEach' of undefined
webviewElement.ts:241 [Embedded Page] Uncaught TypeError: Cannot read property 'forEach' of undefined

Also, when installing the extension for the first time, after logging in to Github, this error will show:

workbench.desktop.main.js:sourcemap:3553 Extension Host
workbench.desktop.main.js:sourcemap:3553 Sun, 15 Dec 2019 16:16:41 GMT express deprecated req.param(name): Use req.params, req.body, or req.query instead at <anonymous>:null:null
workbench.desktop.main.js:sourcemap:254 [Extension Host] Error: TypeError: d.map is not a function    at e.<anonymous> (/Users/<USERNAME>/.vscode/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:74235)    at /Users/<USERNAME>/.vscode/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:71805    at Object.next (/Users/<USERNAME>/.vscode/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:71910)    at a (/Users/<USERNAME>/.vscode/extensions/shan.code-settings-sync-3.4.3/out/extension.js:560:70656)    at processTicksAndRejections (internal/process/task_queues.js:89:5)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

mjbvz picture mjbvz  ยท  5Comments

axetroy picture axetroy  ยท  4Comments

that70schris picture that70schris  ยท  5Comments

jdshkolnik picture jdshkolnik  ยท  3Comments

afnpires picture afnpires  ยท  4Comments