GoogleCloudPlatform / endpoints-framework-gradle-plugin

Apache License 2.0
18 stars 14 forks source link

500 Internal server error building clientLibs from cloudtools endpoints framework maven #106

Closed JolietJake closed 3 years ago

JolietJake commented 3 years ago

I'm building endpoints for an appengine standard server with google cloud tools. I'm able to generate openapidocs, Discoverydocs, but when I try and generate clientLibs with --- endpoints-framework-maven-plugin:2.0.1:clientLibs (default-cli) @ mobile --- [INFO] Endpoints Tool params : [get-client-lib, -o, C:\Users\steve.......:

I get:

ints Tool Error: 500 Internal Server Error [ERROR] {"error": {"code": 500, "message": "Internal Server Error", "errors": [{"debug_info": "Neither servicePath nor rpcPath is defined.", "message": "unknown exception"}]}} [ERROR] -> [Help 1]

this problem looks familiar to https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin/issues/98. That was solved at the Google end.

Any help appreciated.

elharo commented 3 years ago

@tangiel @chingor13 did the config change again?

chingor13 commented 3 years ago

Nothing has changed on the server side for quite some time. This is a separate error. Can you see if the discovery doc being pushed to the library generation endpoint has the servicePath or rpcPath fields defined?

JolietJake commented 3 years ago

I checked the endpoints

"servicePath": "webholesendpoint/v2/",

"version": "v2"

}

All the ones I added were fine. However, the default skeleton one which the template created – MyFirstAPI.java, which I had left in there, did not have a servicePath. It was , no default apparently. I deleted it from the java directory and removed it from the web.xml.

The clientLibs then built! Thank you for the assistance.

From: Jeff Ching @.*** Sent: Monday, June 7, 2021 1:08 PM To: GoogleCloudPlatform/endpoints-framework-gradle-plugin Cc: JolietJake; Author Subject: Re: [GoogleCloudPlatform/endpoints-framework-gradle-plugin] 500 Internal server error building clientLibs from cloudtools endpoints framework maven (#106)

Nothing has changed on the server side for quite some time. This is a separate error. Can you see if the discovery doc being pushed to the library generation endpoint has the servicePath or rpcPath fields defined?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin/issues/106#issuecomment-856150717 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKEWGIYAXZM4NCS66G4HOTTRUDIBANCNFSM46DORQFA . https://github.com/notifications/beacon/AFKEWGN4HKAIEA53IRJBHDDTRUDIBA5CNFSM46DORQFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGMD5FPI.gif