VS code Authentication error for JIRA AND BITBUCKET

Issue #718 new
Mayank Raj Srivastava created an issue

When I click on authorize , it gives error.
For Both Jira and BITBUCKET

Using : Jira and Bitbucket (Atlassian Labs)v2.10.11

Vs CODE : version 1.66.2 ( User Setup)

Os : Windows 10

Comments (4)

  1. Jon Tresko

    Same issue. appears to be a dns issue with Atlassian callback URL subdomain

    Har file:

    {
      "log": {
        "version": "1.2",
        "creator": {
          "name": "WebInspector",
          "version": "537.36"
        },
        "pages": [],
        "entries": [
          {
            "_initiator": {
              "type": "other"
            },
            "_priority": "VeryHigh",
            "_resourceType": "document",
            "cache": {},
            "request": {
              "method": "GET",
              "url": "https://atlascode-oauth-service.services.atlassian.com/bbcloud?state=N2UwNmZhMTMtZGFmNi00YzVmLTk1NWItYmMxYThlYjg2NWFjOjp2c2NvZGU6Ly9hdGxhc3NpYW4uYXRsYXNjb2RlL2ZpbmFsaXplQXV0aGVudGljYXRpb24%2Fd2luZG93SWQ9MQ%3D%3D&code=MUD356D2QjPEABhj6q",
              "httpVersion": "",
              "headers": [
                {
                  "name": "DNT",
                  "value": "1"
                },
                {
                  "name": "Referer",
                  "value": "https://bitbucket.org/"
                },
                {
                  "name": "Upgrade-Insecure-Requests",
                  "value": "1"
                },
                {
                  "name": "User-Agent",
                  "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36"
                },
                {
                  "name": "sec-ch-ua",
                  "value": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"101\", \"Google Chrome\";v=\"101\""
                },
                {
                  "name": "sec-ch-ua-mobile",
                  "value": "?0"
                },
                {
                  "name": "sec-ch-ua-platform",
                  "value": "\"macOS\""
                }
              ],
              "queryString": [
                {
                  "name": "state",
                  "value": "N2UwNmZhMTMtZGFmNi00YzVmLTk1NWItYmMxYThlYjg2NWFjOjp2c2NvZGU6Ly9hdGxhc3NpYW4uYXRsYXNjb2RlL2ZpbmFsaXplQXV0aGVudGljYXRpb24%2Fd2luZG93SWQ9MQ%3D%3D"
                },
                {
                  "name": "code",
                  "value": "MUD356D2QjPEABhj6q"
                }
              ],
              "cookies": [],
              "headersSize": -1,
              "bodySize": 0
            },
            "response": {
              "status": 0,
              "statusText": "",
              "httpVersion": "",
              "headers": [],
              "cookies": [],
              "content": {
                "size": 0,
                "mimeType": "x-unknown"
              },
              "redirectURL": "",
              "headersSize": -1,
              "bodySize": -1,
              "_transferSize": 0,
              "_error": "net::ERR_NAME_NOT_RESOLVED"
            },
            "serverIPAddress": "",
            "startedDateTime": "2022-05-06T18:39:58.804Z",
            "time": 104.03800010681152,
            "timings": {
              "blocked": 104.03800010681152,
              "dns": -1,
              "ssl": -1,
              "connect": -1,
              "send": 0,
              "wait": 0,
              "receive": 0,
              "_blocked_queueing": -1
            }
          },
          {
            "_initiator": {
              "type": "other"
            },
            "_priority": "VeryHigh",
            "_resourceType": "document",
            "cache": {},
            "request": {
              "method": "GET",
              "url": "https://atlascode-oauth-service.services.atlassian.com/bbcloud?state=N2UwNmZhMTMtZGFmNi00YzVmLTk1NWItYmMxYThlYjg2NWFjOjp2c2NvZGU6Ly9hdGxhc3NpYW4uYXRsYXNjb2RlL2ZpbmFsaXplQXV0aGVudGljYXRpb24%2Fd2luZG93SWQ9MQ%3D%3D&code=MUD356D2QjPEABhj6q",
              "httpVersion": "",
              "headers": [
                {
                  "name": "DNT",
                  "value": "1"
                },
                {
                  "name": "Referer",
                  "value": "https://bitbucket.org/"
                },
                {
                  "name": "Upgrade-Insecure-Requests",
                  "value": "1"
                },
                {
                  "name": "User-Agent",
                  "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36"
                },
                {
                  "name": "sec-ch-ua",
                  "value": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"101\", \"Google Chrome\";v=\"101\""
                },
                {
                  "name": "sec-ch-ua-mobile",
                  "value": "?0"
                },
                {
                  "name": "sec-ch-ua-platform",
                  "value": "\"macOS\""
                }
              ],
              "queryString": [
                {
                  "name": "state",
                  "value": "N2UwNmZhMTMtZGFmNi00YzVmLTk1NWItYmMxYThlYjg2NWFjOjp2c2NvZGU6Ly9hdGxhc3NpYW4uYXRsYXNjb2RlL2ZpbmFsaXplQXV0aGVudGljYXRpb24%2Fd2luZG93SWQ9MQ%3D%3D"
                },
                {
                  "name": "code",
                  "value": "MUD356D2QjPEABhj6q"
                }
              ],
              "cookies": [],
              "headersSize": -1,
              "bodySize": 0
            },
            "response": {
              "status": 0,
              "statusText": "",
              "httpVersion": "",
              "headers": [],
              "cookies": [],
              "content": {
                "size": 0,
                "mimeType": "x-unknown"
              },
              "redirectURL": "",
              "headersSize": -1,
              "bodySize": -1,
              "_transferSize": 0,
              "_error": "net::ERR_ABORTED"
            },
            "serverIPAddress": "",
            "startedDateTime": "2022-05-06T18:40:28.936Z",
            "time": 158.23099995031953,
            "timings": {
              "blocked": 158.23099995031953,
              "dns": -1,
              "ssl": -1,
              "connect": -1,
              "send": 0,
              "wait": 0,
              "receive": 0,
              "_blocked_queueing": -1
            }
          }
        ]
      }
    }
    

  2. Alexander Schomburg

    Can confirm this for authenticating to Jira/Bitbucket Cloud on Windows 11 Pro 21H2 with Extension v2.10.12 and VS Code v1.67.1 running in WSL2 (Pengwin distro). As a result the extension is not working at all.

    Solution: Run Visual Studio Code on ´native Windows (no WSL connection) to log in to Jira/Bitbucket Cloud. Afterwards, the account is connected to the WSL version of VS Code as well.

  3. Produccion Batovi

    Can confirm I can also see this. I wonder when the day is gonna come that Atlassian make it easy for users to authenticate to the services they are paying for and when the day will come you will have a native linux client. You are unbelievably inept.

  4. Log in to comment