getIamPolicy for KMS KeyManagementServiceClient is erroring with Syntax Error: Unexpected token < in JSON at position 0 , when using fallback REST #1462
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Is this a client library issue or a product issue?
Yes it is a client library issue, the definition for
getIamPolicy
method in iam_services.json mentionsPOST
call whether the actual call isGET
Did someone already solve this?
Could not find any solution or issues created for the same.
Do you have a support contract?
No
Environment details
google-gax
version: 3.6.0Steps to reproduce
It is using the POST method to hit the API

Output (Before)
After making a change to the following [file ](https://github.com/googleapis/gax-
nodejs/blob/main/protos/iam_service.json#L43,L49)and replacing
post
withget
issue seems to be resolved.Changes
Output (After)

Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: