Cannot authenticate with Bitbucket when `"http.proxySupport": "on"`
Hello there,
When I click the Authenticate
button in VS Code for Bitbucket I get sent to the Bitbucket page for authentication.
This is all fine, but when I click Grant Access
button then I get Internal Server Error
.
I was able to debug it and found out that if I go to my settings.json
file, located at:
C:\Users\<my_user>\AppData\Roaming\Code\User
And remove this setting:
"http.proxy": "http://proxy:8080", //your corporate proxy
Then everything works fine.
Removing this setting also fixed the problems mentioned in Issue #118 . But this has to be double checked.
Best regards,
Stefan
Extension details:
Version: 1.4.0
VS Code details:
Version: 1.34.0 (user setup)
Commit: a622c65b2c713c890fcf4fbf07cf34049d5fe758
Date: 2019-05-15T21:59:37.030Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17134
Comments (9)
-
Account Deactivated -
Account Deactivated - changed status to resolved
-
reporter - changed status to open
Sorry, but I think that this is a bug. I want to have that setting in my
settings.json
file. It's existence is not accidental. I use it in my workflow. So I cannot use the plugin and this setting while I am working. -
Account Deactivated Tried the above, didn’t work for me. Can access BB Cloud through browser. Also behind a corporate proxy.
-
Account Deactivated I do not have the setting in my settings.json but I get the same error - the authentication takes me to the following URL https://bitbucket.org/site/oauth2/authorize?response_type=code&redirect_uri=http%3A%2F%2F127.0.0.1%3A31415%2Fbbcloud&client_id=(code removed) and shows me a “Grant access” button. Pressing the button takes me to http://127.0.0.1:31415/bbcloud?code=(code removed) and this shows “Internal Server Error”.
Extension Version: 1.4.3
VSC:
Version: 1.36.1 (user setup)
Commit: 2213894ea0415ee8c85c5eea0d0ff81ecc191529
Date: 2019-07-08T22:59:35.033Z
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.17763 -
Having set a proxy in settings.json, I added '
"http.proxySupport": "off"
' and authentication is now working for Bitbucket and Jira! -
Like Christian Czupras, I don’t have a proxy configured in my settings.json but still get the same error.
-
- changed title to Cannot authenticate with Bitbucket when `"http.proxySupport": "on"`
-
- changed status to resolved
We've released several versions since this issue was raised (including improved proxy support), potentially resolving this issue. However, if it is still a problem, please do reopen it (or open a new issue). Thanks!
- Log in to comment
@StefanVasilev Thanks for the information. Our extension does not provide/set the http.proxy setting, so it must be some other extension that’s setting it which would then make any http requests go through that proxy including our extension’s requests.