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

PackageMetadataRepository.Get returns OctopusResourceNotFoundException #557

Open
eduherminio opened this issue Nov 12, 2020 · 0 comments
Open

Comments

@eduherminio
Copy link

I'm not able to successfully use PackageMetadataRepository.Get(string id), getting OctopusResourceNotFoundException in every attempt.
I've tried both PackageFromBuiltInFeedResource.Id and PackageFromBuiltInFeedResource.PackageId (although the second one doesn't make sense, since it doesn't include the version).

Is it a bug or am I missing something and providing the wrong id?

Repro:

var octopusEndpoint = new OctopusServerEndpoint("<server>", "<apikey>");
var client = OctopusAsyncClient.Create(octopusEndpoint).Result;

var package = await client.Repository.BuiltInPackageRepository.ListPackages(packageId: "<existing_package");
var meta = await client.Repository.PackageMetadataRepository.Get(package.Items[0].Id);
var meta2 = await client.Repository.PackageMetadataRepository.Get(package.Items[0].PackageId);
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

1 participant