microsoft / vscode-azureAutomation

MIT License
17 stars 4 forks source link

Cannot reliably publish workbooks because of "Error 401" #37

Closed nicoladelvacchio closed 1 year ago

nicoladelvacchio commented 1 year ago

Does this occur consistently? Not sure, it works for a while and at a certain point I get "Error 401" trying to publish. Repro steps:

  1. Fetch Runbook, either Draft or Published
  2. Change code
  3. Select Upload as Published, sometimes works sometimes it doesn't

Action: automation.publishRunbook Error type: Error Error Message: Request failed with status code 401

Version: 1.1.0 OS: win32 OS Release: 10.0.19045 Product: Visual Studio Code Product Version: 1.78.2 Language: en

Call Stack ``` e.exports extension.js:2:1340252 e.exports extension.js:2:1342668 IncomingMessage. extension.js:2:1333305 ```
nicoladelvacchio commented 1 year ago

Restarting vscode would fix the issue for a while

Shruti-MS commented 1 year ago

@nicoladelvacchio Please use the following simple workaround:

Try clicking on another Automation Account in left tree view and the return back to current account and attempt the save/publish.

We will be publishing the fix in next versions.

Shruti-MS commented 1 year ago

@nicoladelvacchio This issue has been resolved in beta version: can be installed as pre-release from marketplace. Do share feedback on marketplace or reopen issue if problem persists. The beta version be pushed as default by next week.

kapil-azure-automation commented 1 year ago

This is fixed in newer versions. Thanks