Closed jaredcnance closed 8 years ago
Are you using VSTS or TFS on-premises? If the latter, what version?
VSTS
Anything tricky going on in your account like 2FA?
No I haven't done anything special with account auth
You could also get an Unauthorized if your collection URL was not specified correctly... So that's one thing to double-check. (https
and not http
, etc.)
Otherwise, it might be interesting to look at fiddler to make sure that nothing jumps out at you as being broken. But I'll take a look at things this evening to make sure that nothing has bitrotted against VSTS lately.
Okay, I appreciate it. The Uri looks fine. But, I also can't curl it either using the examples so I'm guessing it's not an issue with your library
curl -u {username}[:{password}] https://{account}.VisualStudio.com/DefaultCollection/_apis/projects?api-version=2.0
respnds with:
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="....">here</a>.</h2>
</body></html>
It looks like this has to do with a web filter at my work that is proxying requests. I guess the auth just isn't making it across the proxy. I was able to make requests from a different network. Thanks for taking the time to look into this.
Thanks for the followup! Glad things are working now.
So, I copied the example verbatim and am targeting a brand new account. I am 100% certain the credentials are correct. Is there something I am missing?