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

[BUG] Unable to update API Products #619

Closed
brunoselistre-dvt opened this issue Dec 30, 2024 · 2 comments · Fixed by #620
Closed

[BUG] Unable to update API Products #619

brunoselistre-dvt opened this issue Dec 30, 2024 · 2 comments · Fixed by #620

Comments

@brunoselistre-dvt
Copy link

Description
apigeecli product update command always return "Invalid ApiProduct Name". It works to get products (apigeecli get) from apigeecli but when I try to update any product the it returns an error

  • apigeecli products get -n "demo" - returns success
  • apigeecli products update -n "demo" -f auto - returns 400 Invalid ApiProduct Name

Error msg:
{ "error": { "code": 400, "message": "Invalid ApiProduct Name", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.rpc.PreconditionFailure", "violations": [ { "type": "keymanagement.service.apiproduct_invalid_displayname", "subject": "[2002:a05:6693:7acc:b0:91:d031:3cb0]:4001:acparo13-2a0014508059000d00b0002aca211494:9801:201896:171730949", "description": "Invalid ApiProduct Name" } ] }, { "@type": "type.googleapis.com/google.rpc.RequestInfo", "requestId": "13260319205678465776" } ] } }

Note: I have tried with multiple products and properties but the output is always the same error

Version
apigeecli version 2.7.1 date: 2024-12-05T23:01:06Z [commit: ef1fda1]

srinandan added a commit that referenced this issue Dec 30, 2024
@srinandan srinandan linked a pull request Dec 30, 2024 that will close this issue
@srinandan
Copy link
Collaborator

Display Name is a mandatory field when updating the product. I have fixed it by making it so. In the meanwhile, you can fix the command by passing -m or --display-name to the command.

srinandan added a commit that referenced this issue Dec 30, 2024
* chore: upgrade godep #619

* bug: makes display-name mandatory input #619

* bug: makes approval mandatory input #619
@ssvaidyanathan
Copy link
Collaborator

@brunoselistre-dvt - pls try using v2.8.1 (latest)
It should mandate the displayName and approval fields that are mandatory while updating the product.

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

Successfully merging a pull request may close this issue.

3 participants