Google's API Linter suggestions with Google Cloud Endpoints?

187 views
Skip to first unread message

Jack Wootton

unread,
Jan 30, 2020, 4:59:28 PM1/30/20
to Google Cloud Endpoints
Is there any documentation on use of Google's API Linter with Google Cloud Endpoints? Many of the lint failures require importing protos from https://github.com/googleapis/googleapis/tree/master/google/api. I.e. Fixing API Linter recommendations requires depending parts of the API services platform.  Specifically, importing client.proto breaks Endpoint service deployent.


Teju Nareddy

unread,
Feb 3, 2020, 7:22:36 PM2/3/20
to Google Cloud Endpoints
Hi Jack,

I'm not able to reproduce your error. I was able to compile a descriptor file that imports `google/api/client.proto` and deploy it to Google Cloud Endpoints.

Could you share the following:
- The proto file you are running the linter against
- The service config file (api_config.yaml)
- The command you are using the generate the descriptor
- The error you get when you run gcloud endpoints deploy

Thanks

Jack Wootton

unread,
Feb 11, 2020, 12:01:19 PM2/11/20
to Google Cloud Endpoints
Hi Teju,

I *think* this was actually a problem with my local credentials. However the API Linter recommendations did cause the Endpoints Portal to break. Full details here: https://stackoverflow.com/questions/59997578/deploying-google-cloud-endpoints-configuration-fails-google-api-linter-recommend.

I also created google-api-linter tag on SO since it didn't exist.

Jack Wootton

unread,
Feb 16, 2020, 5:01:33 AM2/16/20
to Google Cloud Endpoints
I can create a bug for this on GitHub if that helps?

--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/dc6c82d6-bd49-4ab9-a345-9297ab3c4b2c%40googlegroups.com.

Teju Nareddy

unread,
Feb 16, 2020, 5:38:46 PM2/16/20
to Google Cloud Endpoints
Thanks for bringing this to our attention, this seems to be a bug in the Developer Portal. I can reproduce it too, I will report it and get back to you.

To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.

Jack Wootton

unread,
Feb 16, 2020, 7:29:41 PM2/16/20
to Teju Nareddy, Google Cloud Endpoints
Thanks Teju. 

To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/bae57340-a979-4c4e-b0d8-66dfcb9770a5%40googlegroups.com.

jackw...@gmail.com

unread,
Dec 10, 2021, 6:18:31 AM12/10/21
to Google Cloud Endpoints
Hi,

Is there any update on this bug? IMO, fixing it would dramatically improve the developer experience of the Developer Portal.

Lluis Munoz Ladron de Guevara

unread,
Dec 15, 2021, 9:31:54 AM12/15/21
to Google Cloud Endpoints
Hello,

According to the Cloud Endpoints team the current workaround for this issue is to use this script [1], which will scrub out the external references from the descriptor file.

After scrubbing the descriptor, you can then deploy the scrubbed descriptor to Cloud Endpoints using “gcloud endpoints services deploy”. 

Please note that the script is not officially developed by Google, for your reference here is the link [2] that contains a separate discussion regarding the workaround.
_______
Reply all
Reply to author
Forward
0 new messages