Code-settings-sync: Can't sync settings with error "Invalid / Expired GitHub Token."

Created on 22 Oct 2018  路  17Comments  路  Source: shanalikhan/code-settings-sync

I checked every related issue, but couldn't solve my problem.

I tried to regenerate my token several times, coupled with my gist id to download, got the error.

Also tried to generate new tokens several times, and then upload (or create a new gist), got the error.

Really frustrated and don't know what to do.... I really need my settings.

Please please please help.


MacOS: 10.11.6 (EI Capitan)
VS Code : 1.28.2 (freshly reinstall today)
Settings Sync: 3.2.0

VS Code keep telling me today that it can't update, so I decided to reinstall it.

Before reinstalling, I upload my settings to:

https://gist.github.com/levblanc/ec97529308d0ecf93ffc253f721bcad5
(secret gist, named as cloudSettings, no problems in sync before)

After reinstall, I regenerate my token:

image

my token setting:

image

my gist id setting:
image

got the error and there is nothing logged in the debug console:
image

Most helpful comment

@levblanc _Solution to me:_ my friend
1st: Sync: Reset Extension Settings
2nd: Generate access token
3rd: Paste the generated token into vscode by pressing {Ctrl+Shift+p > paste}
4th: Go to your user https://gist.github.com/{user_name}/{gitst_id} and copy the gist_id
5th: Go to vscode and open settings.json file and add

"sync.gist": "gist_id",
"sync.autoDownload" : true

Restart vscode.

Done!

Hope it helps!

All 17 comments

me too

me too +1

+1 I just installed it today for the first time so not working on a completely fresh either

This is broken for me as well, none of the resolutions in #321, #388, or #408 have worked for me. Sync was working up until approximately 8 days ago.

@gwritz , @OrangeDrangon , @betsu , @fishinallblue
you guys are also using Mac or which platform ?

can you show the image of developer console also when this problem happens.

screenshot from 2018-10-29 08-27-57

I am on Ubuntu 18.04.

I am on Windows 10

I am on win 10

windows 10 as well here

UPDATE: I copied my old gist id (you can find this by going to a gist and copying the last part of the URL), manually entered it into my VSCode settings "sync.gist": "gistID", uploaded settings (shift + alt + u) and it worked! So there is some missing documentation, it would seem.

image

Getting the same or similar issue on MacOS 10.14 VSCode 1.29.1.

I reset my settings, generated a new GitHub token, tried to upload settings (shift + alt + u) and got this error.

image

聽 | t.onDidNotificationChange | @ | notificationsAlerts.ts:40
-- | -- | -- | --
聽 | (anonymous) | @ | notificationsAlerts.ts:26
聽 | e.fire | @ | event.ts:145
聽 | t.notify | @ | notifications.ts:113
聽 | t.notify | @ | notificationService.ts:52
聽 | e._showMessage | @ | mainThreadMessageService.ts:83
聽 | e._showMessage | @ | mainThreadMessageService.ts:44
聽 | e.$showMessage | @ | mainThreadMessageService.ts:38
聽 | t._doInvokeHandler | @ | rpcProtocol.ts:439
聽 | t._invokeHandler | @ | rpcProtocol.ts:424
聽 | t._receiveRequest | @ | rpcProtocol.ts:341
聽 | t._receiveOneMessage | @ | rpcProtocol.ts:271
聽 | (anonymous) | @ | rpcProtocol.ts:146
聽 | e.fire | @ | event.ts:145
聽 | a | @ | ipc.net.ts:103
聽 | n._socketDataListener | @ | ipc.net.ts:132
聽 | emitOne | @ | events.js:116
聽 | emit | @ | events.js:211
聽 | addChunk | @ | _stream_readable.js:263
聽 | readableAddChunk | @ | _stream_readable.js:250
聽 | Readable.push | @ | _stream_readable.js:208
聽 | onread | @ | net.js:594

Were you guys able to set it up correctly like @JasonMFry ?

Troubleshooting page is created here.

Anyone, who has fixed the problem like users above can add information there to help other guys.
https://github.com/shanalikhan/code-settings-sync/wiki/Troubleshooting

@levblanc _Solution to me:_ my friend
1st: Sync: Reset Extension Settings
2nd: Generate access token
3rd: Paste the generated token into vscode by pressing {Ctrl+Shift+p > paste}
4th: Go to your user https://gist.github.com/{user_name}/{gitst_id} and copy the gist_id
5th: Go to vscode and open settings.json file and add

"sync.gist": "gist_id",
"sync.autoDownload" : true

Restart vscode.

Done!

Hope it helps!

@levblanc _Solution to me:_ my friend
1st: Sync: Reset Extension Settings
2nd: Generate access token
3rd: Paste the generated token into vscode by pressing {Ctrl+Shift+p > paste}
4th: Go to your user https://gist.github.com/{user_name}/{gitst_id} and copy the gist_id
5th: Go to vscode and open settings.json file and add

"sync.gist": "gist_id",
"sync.autoDownload" : true

Restart vscode.

Done!

Hope it helps!

This worked for me . Thanks a ton!!

@levblanc _Solution to me:_ my friend
1st: Sync: Reset Extension Settings
2nd: Generate access token
3rd: Paste the generated token into vscode by pressing {Ctrl+Shift+p > paste}
4th: Go to your user https://gist.github.com/{user_name}/{gitst_id} and copy the gist_id
5th: Go to vscode and open settings.json file and add

"sync.gist": "gist_id",
"sync.autoDownload" : true

Restart vscode.

Done!

Hope it helps!

this is not a solution, but a instruction.
The author, who create this question, already have a settings, and he want to come back it.

Just follow these steps:

image

Then reload your VS code it should take the token automatically. If it didn't, then try the following:

image

After you login into your GitHub account, it should work just fine.

Please let me know if this helped.

Thank you.

Was this page helpful?
0 / 5 - 0 ratings