401 - Invalid Access Token

I set up a triggered task, but I am getting an invalid access token when attempting to call it from SOAPUI or a C# application. I am just adding the bearer token in an Authorization header like this:

httpClient.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue(“Bearer”, “xxxxxxxxxxxxxxxxx”);

I am getting the bearer token from the task. Is there any other reason I would get this error?

That looks like it should work. Does it work from any HTTP client? Like cURL for example?

False alarm. I wasn’t paying attention. The error was occurring on a REST call that I had in the pipeline.

1 Like