microsoft / azure-devops-engineering-extensions

AzureDevOps marketplace extension that contains various engineering oriented Pipeline tasks
MIT License
19 stars 19 forks source link

Fails with HTTP 401 - Unauthorized #50

Open harshgandhi18 opened 3 years ago

harshgandhi18 commented 3 years ago

Hi, I am using this extension for sending Test results from AzureDevOps build pipeline. I am facing an issue using the tool. This could be more a question than an issue.

Problem#1 I added SMTP in "Service Connection - Generic". My SMTP is configured for Anonumous Auth. I left the Service Connection creds to empty. It failed with following message.

401 - Unauthorized: Access is denied due to invalid credentials.

Do you know if the extension works with anonymous auth on SMTP?

Problem#2 I tried configure SMTP with Authentication and updated service connection details to use Creds provided. It still keeps failing with the same message

401 - Unauthorized: Access is denied due to invalid credentials.

Is there a way to look at detailed logs whether it fails on SMTP or on the extension itself?

From the Stacktrace below, it looks like it fails on extension itself. Is there a way to see detailed logs to figure what is wrong?

Stacktrace:

Node Version: v6.10.3 Fetching data for email report Retry : 1 : Error:

401 - Unauthorized: Access is denied due to invalid credentials.

at RestClient.<anonymous> (d:\b\4\_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\node_modules\typed-rest-client\RestClient.js:202:31)
at next (native)
at fulfilled (d:\b\4\_tasks\EmailReport_36fd41b1-8024-4ce9-a5a0-53c3e54ed105\1.1.8\node_modules\typed-rest-client\RestClient.js:6:58)
at process._tickCallback (internal/process/next_tick.js:109:7) statusCode: 401 }

[section]Finishing: Send Email Report Always

xiuzhen1103 commented 2 years ago

How do you add added SMTP in "Service Connection - Generic"? @harshgandhi18 image