Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AppEngine local dev server for Google Cloud Endpoints Framework V2 not work

I can't get running Google Endpoints Framework V2 on local AppEngine development server.

To demonstrate an issue i created a gradle demo project It works just fine if deploy to real AppEngine standard environment instance but does not work with local dev server.

The steps to reproduce:

  1. edit appengine-web.xml in case wish to change default appengine service name (framework-v2-someapi) and change that name on step 5 as well.
  2. gcloud auth login
  3. gcloud config set project PROJECT_ID
  4. ./gradlew appengineDeploy
  5. gcloud app browse -s framework-v2-someapi
  6. Click API link in new opened browser window.
  7. Play with API Explorer and check the Services > someapi API v1 > someapi.method.getHash works fine.
  8. ./gradlew appengineStart and open http://localhost:8080 to try do the same localy and get errors instead.

Eventually got

Jan 24, 2017 7:25:40 PM com.google.appengine.tools.development.devappserver2.RemoteApiDelegate log SEVERE: [1485285940023000] javax.servlet.ServletContext log: unavailable com.google.appengine.tools.remoteapi.RemoteApiException: response was a python exception: cgoogle.appengine.runtime.apiproxy_errors ApplicationError

My question is how to run Google Endpoints Framework V2 localy?

like image 466
Alexei Volkov Avatar asked Nov 09 '22 02:11

Alexei Volkov


1 Answers

The solution found by the original poster was to set the <version> tag inside his appengine-web.xml file. A description of this tag can be found on the README of this Github helloworld java-docs-samples repository.

like image 184
Alex Avatar answered Nov 14 '22 23:11

Alex