Cannot read property 'cancelToken' of undefined

Issue #550 new
Radek Antoniuk created an issue

This is about VS Code Atlassian plugin.

We have Atlassian tools behind an additional authentication screen for central authentication. I need to authenticate first using Chrome and YubiKey/OTP and only then the API requests will be forwarded to Jira or BB.
Now, the plugin works fine when I open VS after saving the credentials, but when the authentication times out, I get:
Cannot read property 'cancelToken' of undefined

Even though I am authenticated correctly or I hit the “refresh” button in the plugin, it does not connect.
I need to go into credentials again, save them and then it starts working again.

Comments (16)

  1. Himanshu Kale

    I have the same issue. I read the description above, so will try reauthenticating and see if it works.

  2. Radek Antoniuk reporter

    Although this might be linked to #237, I am wondering why the “cancelled token” error appears in the first place even when I get properly authenticated. I’m guessing this is because of some authentication caching, but it seems weird that after re-authenticating in the browser, I need to manually go into VSCode plugin credentials, hit Save and only then it works.

    Wouldn’t it be possible that the “cancelled token” result should “expire” and the authentication should be re-tried every e.g. 10 minutes or so?

  3. RICHARD CROSS

    I get the same issue when trying to “Start Work” on a Jira issue. Tried deleting the Jira issue connection and re-adding it (using Personal Access Token) but the same thing happens.

  4. Patrick Peace

    OS: RHEL 7

    VsCode: 1.59.0

    RemoteSSH: true

    Having this same issue when I try to “Start Work” in the plugin. It transitions to the screen but then throws this and none of the boxes populate.

    I have tried in version “2.9.1” and have downgraded to multiple versions and still get this error.

    It’s odd in VsCode on my local win10 laptop the “Start Work” seems to work without error, but when I remote to my RHEL 7.8 server I get the issue no matter the version.

  5. Dick Appel

    Even when I removed and recreate the whole account in the plugin (to our internally hosted Jira DC edition), after a few days it’ll just come back again – and will open the Atlassian Settings page even though I’m not using it actively. Which is incredibly annoying.

  6. Radek Antoniuk reporter

    You should be able to work with PRs even with this bug, just make sure to authorize with your Bitbucket site with your browser before opening VSCode. Then if the error still is shown, re-saving the credentials in the plugin should activate the plugin again.

  7. Log in to comment