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

Error when querying the release API #45

Closed
Jaxwood opened this issue Jun 16, 2016 · 3 comments
Closed

Error when querying the release API #45

Jaxwood opened this issue Jun 16, 2016 · 3 comments
Assignees

Comments

@Jaxwood
Copy link

Jaxwood commented Jun 16, 2016

I have tried to use the vsts-node-api to create a new release definition. However I always get the same response:

Error: Failed to find api location for area: Release id: d8f96f24-8ea7-4cb6-baab-2df8fc515665 statusCode undefined.

The api endpoint I'm targeting is createReleaseDefinition using the promise interface.

I've succesfully used the BuildApi and was able to create a build definition using this API.

@Jaxwood Jaxwood changed the title Release API Cannot query release API Jun 16, 2016
@Jaxwood Jaxwood changed the title Cannot query release API Error when querying the release API Jun 16, 2016
@bryanmacfarlane
Copy link
Contributor

Were you connecting to VSTS or an on-prem version?

@Jaxwood
Copy link
Author

Jaxwood commented Jun 16, 2016

@bryanmacfarlane I was connecting to VSTS. I used a personal access token with all scopes allowed.

@chandan-anjani
Copy link
Member

Can you please share your code snippet?

And I hope you are using url with 'vsrm' e.g. https://{your tenant name}.vsrm.visualstudio.com/DefaultCollection. You may take a look into https://blogs.msdn.microsoft.com/chandananjani/2016/04/27/using-releasehttpclient-for-interacting-with-releasemanagement-service/ as well.

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

4 participants