-
Notifications
You must be signed in to change notification settings - Fork 230
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
Getting authentication issues after updating to latest typed-rest-client #419
Comments
Maybe it's worth putting an issue against the repo: https://github.com/microsoft/typed-rest-client I wonder if this might be related to: microsoft/typed-rest-client#238 or microsoft/typed-rest-client#223 |
@anatolybolshakov could you or your team take a look? |
I dug into this a bit more, as I'm being hit by it. It looks like this commit introduced the issue. I think the solution is to set |
@JamieMagee thanks for digging into this! I created PR with exposing this as a parameter. |
@anatolybolshakov Thanks for the quick PR. Can you publish version |
I have encountered the same issue, a quick push to npm would be appreciated. Thanks for the quick work on this! |
This has been published |
Thanks @damccorm! |
I think it might not be fixed - just experimenting. |
I'm experiencing this: TF400813: The user '' is not authorized to access this resource.
Error: TF400813: The user '' is not authorized to access this resource.
at RestClient.<anonymous> (/home/vsts/work/1/s/node_modules/typed-rest-client/RestClient.js:202:31)
at Generator.next (<anonymous>)
at fulfilled (/home/vsts/work/1/s/node_modules/typed-rest-client/RestClient.js:6:58)
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
statusCode: 401,
result: {
'$id': '1',
innerException: null,
message: "TF400813: The user '' is not authorized to access this resource.",
typeName: 'Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server',
typeKey: 'UnauthorizedRequestException',
errorCode: 0,
eventId: 3000
}
} However I've pinned to 1.7.3 and am still experiencing the issue - it's possible my own issue is different
|
Yup - it was a different issue. This works for me! |
Confirmed the latest version works when you pass the new parameter through to the handlers. Thanks for the quick turnaround! |
Environment
Node version: 12.13.0
Npm version: 6.12.0
OS and version: Windows 10
azure-devops-node-api version: 10.1.1
Issue Description
We use the azure-devops-node-api in some Azure Devops pipeline to do things like write comments to the PR. This was working fine until 11/6/2020 when we happened to have an auto update of our lockfile that took typed-rest-client (which is a dependency of azure-devops-node-api) from version 1.7.3 to 1.8.0.
What we are seeing is the following error
When using --inspect-brk to break on this error, it seems to be happening on an options call that gets triggered when we call getGitApi and then it makes a call to ._getResourceAreaUrl
We reverted types-rest-client in our lockfile back to 1.7.3 and everything is working again on our side. Logging the issue in case others hit this or in case someone knows of a fix.
The text was updated successfully, but these errors were encountered: