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 : bad credentials / Not Found #177

Closed
lv7777 opened this issue Dec 31, 2016 · 9 comments
Closed

Error : bad credentials / Not Found #177

lv7777 opened this issue Dec 31, 2016 · 9 comments
Labels

Comments

@lv7777
Copy link

lv7777 commented Dec 31, 2016

Visual Studio Code Version : [ VERSION_HERE ]
Code Sync Settings Version : [ VERSION_HERE ]
Operating System : [ VERSION_HERE ]
Occurs On: [Upload / Download]
Proxy Enabled: [ Yes / No ]

I have posted frequently asked questions on
http://shanalikhan.github.io/2016/11/07/visual-studio-code-frequently-asked-questions.html
so you may able to resolve the error quickly.
Please make sure to write the versions and console logged error picture or copied text

In console

Overwriting extension <<.vue>> to now point to mime <<text/x-vue>>
workbench.main.js:98 [Extension Host] Windows_NT
workbench.main.js:35 Overwriting extension <<.vue>> to now point to mime <<text/x-vue>>
workbench.main.js:98 [Extension Host] Windows_NT
2workbench.main.js:98 [Extension Host] {"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}(anonymous function) @ workbench.main.js:98
workbench.main.js:89 Error Logged In Console (Help menu > Toggle Developer Tools). You may open an issue using 'Sync : Open Issue' from advance setting command.e.doShow @ workbench.main.js:89
workbench.main.js:98 [Extension Host] Windows_NT
2workbench.main.js:98 [Extension Host] {"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}(anonymous function) @ workbench.main.js:98
workbench.main.js:89 Error Logged In Console (Help menu > Toggle Developer Tools). You may open an issue using 'Sync : Open Issue' from advance setting command.e.doShow @ workbench.main.js:89
2workbench.main.js:98 [Extension Host] Windows_NT
2workbench.main.js:98 [Extension Host] {"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}(anonymous function) @ workbench.main.js:98
workbench.main.js:89 Error Logged In Console (Help menu > Toggle Developer Tools). You may open an issue using 'Sync : Open Issue' from advance setting command.e.doShow @ workbench.main.js:89
2workbench.main.js:98 [Extension Host] Windows_NT
2workbench.main.js:98 [Extension Host] {"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}(anonymous function) @ workbench.main.js:98
workbench.main.js:89 Error Logged In Console (Help menu > Toggle Developer Tools). You may open an issue using 'Sync : Open Issue' from advance setting command.
@shanalikhan
Copy link
Owner

shanalikhan commented Dec 31, 2016

This is due to Authenticating with invalid credentials

Solution : Try generating new token with scope gist and then

    1. select 'sync:reset sync settings'
    2. shift + alt + u -> enter your access token

Solution 2 : Create New token with scopes including

   1. Gist
   2. User
       - read:user 
       - user:email
       - user:follow

and then 

    1. select 'sync:reset sync settings'
    2. shift + alt + u -> enter your access token

Solution 3 : Remove the Extension completely from Code

1. Remove the extension and close the code completely.
2. Start code and install extension again and then follow Solution 1

Details:
capture

Source : Github API

@drewklassen
Copy link

Well thanks, but in other words, for me to sync, I have to generate New Tokens every freaking time I attempt to sync??? Surely I'm missing something here... ?!

Thanks for your response and look forward to a better solution - hear from you soon yes?

@drewklassen
Copy link

drewklassen commented Feb 23, 2017

Also, Is there a YouTube video on how to properly sync across multiple operating systems & boxes? without having to generate new tokens every time?

Cheers and thanks again for your hard work in putting this together and actually responding to these issues! :-)

@shanalikhan
Copy link
Owner

shanalikhan commented Feb 23, 2017

I have to generate New Tokens every freaking time I attempt to sync

Sometimes it happened with me that valid token doesnt seem to work, i get this error but this error is from their API, what i can do in the future release to show your current token to let user know about the token extension have is valid or not.

I dont think all users are experiencing this error from github.

Yes when you reset your settings and set anonmyous gist setting to true, it wont ask you token but generate new GIST every time.
But if you want to work with same GIST every time, it will require token

@shanalikhan
Copy link
Owner

Another user reported previously about Github Delays at #164 (comment)

@StevenCHowell
Copy link

I have no success syncing between MacOS and Ubuntu. I cannot get the Ubuntu machine to validate the gist token. Tried re-creating the token several times. The same steps work fine on the Mac, using the same token.

Where do I find the logs to check for a 401 or 403 error?

@shanalikhan
Copy link
Owner

@StevenCHowell you can use fiddler to see the details.
Developer console shows the exception.
In the recent update i have set an option for token in local settings so you can see which token is added, and change it manually.
Besides that i'm also including #256 for the users have problems connecting with github.

@StevenCHowell
Copy link

I just tried it with a different Ubuntu computer and the gist token was accepted but I am not sure if it is actually syncing anything. I connected it to my Mac, which had several extensions installed, and tried several times to sync but the new computer never installed the missing extensions. It should do this right, install an extension on one computer then after it syncs, the extension will be on the second computer?

I finally just gave up and installed the extensions manually but I would like to get it working to avoid doing this on every computer I use.

I did find the developer console. I installed fiddler but did not go through figuring it out.

@shanalikhan
Copy link
Owner

@StevenCHowell as these are coming from github api directly. What i will be doing in the future updates to implement this.
#256

Repository owner locked and limited conversation to collaborators Jun 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants