huserben / TfsExtensions

Extensions for TFS 2015+ such as custom Widgets (require TFS 2017) and Build Tasks
MIT License
44 stars 22 forks source link

TF400813 when triggering pipeline #246

Closed dcp12345678 closed 1 year ago

dcp12345678 commented 1 year ago

Getting the following error when trying to trigger a pipeline. I have a pipeline called davetest1 and another called davetest2 which I am trying to trigger. I have tried different authentication methods but I always get the TF400813 error.

We are using Azure Devops 2019 on prem.

Using current Team Project Team Project: PsfGlobalTeamProject with ID 2c3e8e4f-321e-4b85-971d-0ded11ad9f80 Using current Collection Url Server URL: http://ourserver:8080/tfs/GitCollection/ Using following Authentication Method: Basic Authentication Using Basic Authentication

[error]{"$id":"1","innerException":null,"message":"TF400813: Resource not available for anonymous access. Client authentication required.","typeName":"Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server","typeKey":"UnauthorizedRequestException","errorCode":0,"eventId":3000}

[section]Finishing: Trigger a new build of davetest2

Here is the details of the task: steps:

Thanks for any help.

dcp12345678 commented 1 year ago

I was able to get this working for the basic authentication, but I had to enable basic authentication on the IIS side for the Azure DevOps application. So if anyone else has this issue, try this solution.

Also, I was able to get the personal access token working as well. It turns out I was putting the token name instead of the token value in the config for the task.

Thanks for the great extension, it's really helpful.

huserben commented 1 year ago

Glad you could figure it out @dcp12345678 and thanks for sharing what was the issue on your side. This might help others facing the same issue.

I'll close this one then as there is no work pending.