Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while on boarding second system #61

Closed
aaroncrespo opened this issue Aug 8, 2016 · 3 comments
Closed

Error while on boarding second system #61

aaroncrespo opened this issue Aug 8, 2016 · 3 comments

Comments

@aaroncrespo
Copy link

Looks like an incomplete on boarding but it should provide a better error

Visual Studio Code Version : [ 1.4.0 ]
Code Sync Settings Version : [ 1.6.3 ]
Operating System : [ 10.11.6]

Please make sure to write the versions and console logged error picture or copied text.

[Extension Host] Darwin
[Extension Host] {"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}
[Extension Host] Uncaught Exception:  TypeError: Cannot read property 'id' of undefined
[Extension Host] TypeError: Cannot read property 'id' of undefined
    at /Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/out/src/githubService.js:64:28
    at global.sendError (/Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:755:13)
    at /Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:762:29
    at callCallback (/Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:639:17)
    at IncomingMessage.<anonymous> (/Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:694:25)
    at emitNone (events.js:85:20)
    at IncomingMessage.emit (events.js:179:7)
    at endReadableNT (_stream_readable.js:913:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
Cannot read property 'id' of undefined: TypeError: Cannot read property 'id' of undefined
    at /Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/out/src/githubService.js:64:28
    at global.sendError (/Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:755:13)
    at /Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:762:29
    at callCallback (/Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:639:17)
    at IncomingMessage.<anonymous> (/Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:694:25)
    at emitNone (events.js:85:20)
    at IncomingMessage.emit (events.js:179:7)
    at endReadableNT (_stream_readable.js:913:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
ERROR ! Logged In Console (Help menu > Toggle Developer Tools). Please open an issue in Github Repo using 'Sync : Open Issue' command.
[Extension Host] Darwin
[Extension Host] {"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}
[Extension Host] Uncaught Exception:  TypeError: Cannot read property 'id' of undefined
[Extension Host] TypeError: Cannot read property 'id' of undefined
    at /Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/out/src/githubService.js:64:28
    at global.sendError (/Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:755:13)
    at /Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:762:29
    at callCallback (/Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:639:17)
    at IncomingMessage.<anonymous> (/Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:694:25)
    at emitNone (events.js:85:20)
    at IncomingMessage.emit (events.js:179:7)
    at endReadableNT (_stream_readable.js:913:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
Cannot read property 'id' of undefined: TypeError: Cannot read property 'id' of undefined
    at /Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/out/src/githubService.js:64:28
    at global.sendError (/Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:755:13)
    at /Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:762:29
    at callCallback (/Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:639:17)
    at IncomingMessage.<anonymous> (/Users/{me}/.vscode/extensions/Shan.code-settings-sync-1.6.3/node_modules/github4/lib/index.js:694:25)
    at emitNone (events.js:85:20)
    at IncomingMessage.emit (events.js:179:7)
    at endReadableNT (_stream_readable.js:913:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
ERROR ! Logged In Console (Help menu > Toggle Developer Tools). Please open an issue in Github Repo using 'Sync : Open Issue' command.

@shanalikhan
Copy link
Owner

{"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}

This error shows the invalid token entered. You can reset the settings and try with new github token , save in github and then copy that in extension.

@aaroncrespo
Copy link
Author

Yeah that's what I did after I read the logs, but the error message displayed to the user also said to open an issue.

@shanalikhan
Copy link
Owner

Yes some users don't know its problem of their side so its better to open the issue so they know the solution

mjbvz added a commit to mjbvz/code-settings-sync that referenced this issue May 2, 2019
shanalikhan pushed a commit that referenced this issue May 3, 2019
shanalikhan pushed a commit that referenced this issue Jun 24, 2019
shanalikhan pushed a commit that referenced this issue Jul 1, 2019
* Updated to task api 2.0.0 and fixed tests

* Set "extensionKind": "ui" to support remote development #61

Fixes #870. See that issue for details

* Clean up previous commits into one

* #800 #515 #854

* Utilized pragmaUtil Functions for kb.json file

* Typo fix

* Added universalKeybindings setting

* chore(package): update @types/node to version 12.0.0 (#873)

* Cleaned up toggling commented settings (#877)

* Cleaned up toggling commented settings

* Updated to include fix by @ioprotium

* Fix warning with webpack

* Update UI

* Change height to max-height

* Add image locally and move it to the top

* Added documentation for tests in CONTRIBUTING.md (#881)

* fix(package): update fs-extra to version 8.0.0 (#882)

* chore(package): update @types/fs-extra to version 7.0.0 (#885)

* chore(package): update @types/node to version 12.0.1 (#883)

* fix(package): update fs-extra to version 8.0.1 (#884)

* Update UI to fit guidelines

* chore(package): update @types/node to version 12.0.2 (#887)

* Improve UI and functionality

* Match BG of theme and properly contrast text

* Fix issues with themes

* Fix image not showing up with light theme

* Fix issues with contrast

* Fix issue with VS Code's WebView

* Update UI and functionality

* Fix potential issue with light themes

* Fix issues with theme on modal

* Refactor

* Add new (but experimental) localizations (#898)

* chore(package): update clean-webpack-plugin to version 3.0.0 (#899)

*  #891

* Update settings page after a reset

* Improve code

* fix(clean-webpack-plugin): (#901)

clean-webpack-plugin was recently updated, and it had breaking changes.

* chore(package): update @types/node to version 12.0.3 (#897)

* #668

* fix(OSS):

enums.ts
----
Allow for setting os type with less code

environmentPath.ts
----
Find code folder and extensions folder more efficiently
Get OS type more efficiently

settings.ts
----
Ignore all state files

sync.ts
----
Adapt for changes in pluginService

pluginService.ts
----
Use vscode command to install extensions
Clean up code and simplify names

* Install extensions in order

* Comment legacy code instead of deleting it

* Fix extension install

* Fix issue with extensions always being deleted

* Get code path more efficiently

* Make sure to escape spaces in cli path

* Fix issues with portable builds

* Support Windows and certain editions

* Improve method for finding extension folder

* Start using API for installation

* Prepare for new API command

* Get ready for new API command

* Fix issue with installation

* Commit requested changes

* #668

* Format pluginService.ts (#906)

* #668

* Throw error

* Try to fix issues with getting missing

* chore(package): update @types/node to version 12.0.7 (#904)

* chore(package): update @types/node to version 12.0.8 (#908)

* #668

* #668

* #668

* #839

* Support multiple instances

* Completely switch to state

* Update to work properly

* Move setting classes to their own models

* Update service names

* Only auto upload using focused window

* Resolve merge conflicts

* #886

* Resolve locale properly

* Clean constructor

* Use state instead of passing in argument

* Update to be compatible with v3.3.0 changes

* Fix readme

* Fix package.json

* Add new settings

* Increase contrast

* Update

package.nls.*.json
----
Add localizations for setting names and placeholders.

github.oauth.service.ts
----
Handle errors in a more user-facing way
Support GitHub enterprise
Show message to user after success

webview.service.ts
----
Use new localizations for names and placeholders

* Bug fix and upload images

* Add support for commits to master (release notes)

* Fix issue

* Fix another issue with release notes

* Update release note template

* Update release notes

* Don't open gist selection if there aren't any gists

* Allow user to view gist

* Revert accidental change

* Support public gist

* Add css, js, and fonts to repo

* Improve font injection

* Revert accidental change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants