microsoft / tfs-cli

Cross-platform CLI for Microsoft Team Foundation Server and Visual Studio Team Services
MIT License
371 stars 131 forks source link

[Error] Failed to find api location for area: Location id #372

Open erelado opened 3 years ago

erelado commented 3 years ago

Hi there, Trying to manage my custom tasks using tfx-cli with my on-prem TFS 2015 server. I'm logging in using --auth-type basic without a problem, yet whenever I try to execute any command which includes the server itself, I get the mentioned error.

C:\Users\<user>>tfx login --auth-type basic
(node:27080) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
TFS Cross Platform Command Line Interface v0.9.0
Copyright Microsoft Corporation
> Service URL: http://builder:8080/tfs/<COLLECTION>
> Username: <domain>\<username>
> Password: <password>
Logged in successfully

C:\Users\<user>>tfx build tasks list
(node:21640) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
TFS Cross Platform Command Line Interface v0.9.0
Copyright Microsoft Corporation
error: Error: Failed to find api location for area: Location id: e81700f7-3be2-46de-8624-2eb35882fcaa

I made sure I can authenticate using my IIS, and using the Team Foundation Server Administration Console the Authentication Settings are set to NTLM.

anatolybolshakov commented 3 years ago

Hi @E-RELevant looks like relevant api used by tfx-cli can't be find on this tfs server version - have you tried to run it on later tfs versions?

erelado commented 3 years ago

The issue seems to have been resolved using version 0.6.4 or earlier, which indicates something changed afterward. The workaround worked for me, but I guess it's not a real solution to the problem.