Skip to content

VsoClient and not existing ADO #565

Closed

Description

If you try to create clients with not existing ADO you get unexpected error

"TypeError: Cannot read property 'value' of null
at /workspace/node_modules/azure-devops-node-api/VsoClient.js:124:52
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)"

This is the place where we have problem:
https://github.com/microsoft/azure-devops-node-api/blob/master/api/VsoClient.ts#L167C30-L167C30

res response:

{
"statusCode": 404,
"result": null,
"headers": {}
}

There's no way you can call value on result. And the error is terrible, we should get some kind of 404 error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions