Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PATCH request response with expired token #52

Open
ajtran opened this issue Apr 13, 2020 · 0 comments
Open

PATCH request response with expired token #52

ajtran opened this issue Apr 13, 2020 · 0 comments

Comments

@ajtran
Copy link

ajtran commented Apr 13, 2020

Hey there,

I was wondering what is supposed to be the expected response when making a PATCH request with an expired bearer token on api version 5.0.

The response body I am getting is:

{
  "eventId": 3000,
  "$id": "1",
  "errorCode": 0,
  "typeName": "Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server",
  "innerException": null,
  "message": "TF400813: The user '' is not authorized to access this resource.",
  "typeKey": "UnauthorizedRequestException"
}

with a 401 status code. I ask because this is different from a POST and GET request where we receive a 203 status code when the access token is expired.

Here's a thread with Azure DevOps Support for more context: https://developercommunity.visualstudio.com/content/problem/972334/inconsistent-tf400813-the-user-is-not-authorized-t.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant