google-cloud-endpoints-v2

Debug localhost on app engine with Intellij Idea and gradle

别等时光非礼了梦想. 提交于 2019-12-12 19:14:29
问题 I am using IntelliJ community addition and building an app engine standard environment application with Gradle. I was using Android Studio before migrating to IntelliJ and endpoint framework. I am not able to debug my localhost. I added jvmFlags as explained here: https://cloud.google.com/appengine/docs/standard/java/tools/gradle appengine { run { jvmFlags = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005'] } } And deployed my app to local with debug button. But the

ServiceConfigException When Api Management is Added

拟墨画扇 提交于 2019-12-11 17:13:22
问题 I started to get error, ServiceConfigException , after I've tried to add Api Management to my project just as explained here. Commenting out ServiceManagementConfigFilter lines from web.xml lines as told here solves my problem but leaves my project without API support. I'd love to get some help. Thanks in advance. -------------------------------------------------------------------------------------------------------------------------- [INFO] Scanning for projects... [INFO] [INFO] ------------

What are the problems with using Jax-RS instead of Cloud Endpoints on Google App Engine

徘徊边缘 提交于 2019-12-11 17:10:35
问题 I'm developing a java web project on Google App Engine/Datastore as a mobile app backend. The requirement is to only use services available for free for low usage in Google Cloud so that I can get started cheaply and (theoretically) have to do much less work to scale up to handle more users. I am a JavaEE developer and am considering using Jax-RS inside Google App Engine instead of Google Cloud Endpoints. Having read JAX-RS services in Google App Engine and some other answers, I am interested

Enhancing endpoints in Cloud Endpoints Frameworks 2.0 for App Engine

▼魔方 西西 提交于 2019-12-10 10:36:36
问题 I have received an email from GCP to migrate my project from Cloud Endpoints 1.0 to Cloud Endpoints Frameworks 2.0. I've followed the steps outlined here: https://cloud.google.com/appengine/docs/java/endpoints/migrating?authuser=0 In my previous build.gradle I had this directive to enhance my endpoints and it worked fine: appengine { downloadSdk = true appcfg { oauth2 = true } endpoints { getClientLibsOnBuild = true getDiscoveryDocsOnBuild = true } enhancer { version = "v2" api="jdo" // or

Google App Engine Application Suddenly Stopped Working, returning 503

家住魔仙堡 提交于 2019-12-09 18:58:28
问题 I have an application running on Google App Engine, I deployed the last version of latest version of the application on Sep 6, 2018 but today the application stopped serving request and it is returning error 503 with the following <HTML> <HEAD> <TITLE>Service Unavailable</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1>Service Unavailable</H1> <H2>Error 503</H2> </BODY> </HTML> I thought it was because i have not migrated to the deprecated Cloud Endpoint v1.1 to V2.0 But after I

Versioning with endpoint V2 on GAE

六眼飞鱼酱① 提交于 2019-12-09 05:07:31
问题 I have the live version of my app deployed with its endpoints (no problem with that). I also want to easily be able to test other versions (e.g. staging). With endpointV1 : no problem. With endpointV2 : Everything works fine if I deploy to the live version (at https://[PROJECT-ID].appspot.com but does not work for other versions. After deploying to staging at https://staging-dot-[PROJECT-ID].appspot.com the deployment is successful, but when the frontend calls the backend, the request is

How to do authentication check in Python library from Google Cloud Endpoints on GAE standard

前提是你 提交于 2019-12-06 15:21:40
I'm trying to implement service-to-service authentication to Google Cloud Endpoints API using Google Service account, but get the following error. Cannot decode and verify the auth token. The backend will not be able to retrieve user info (.../lib/endpoints_management/control/wsgi.py:596) Traceback (most recent call last): File ".../lib/endpoints_management/control/wsgi.py", line 593, in __call__ service_name) File ".../lib/endpoints_management/auth/tokens.py", line 81, in authenticate error) UnauthenticatedException: (u'Cannot decode the auth token', UnicodeDecodeError('ascii', '\xc9\xad\xbd'

Enhancing endpoints in Cloud Endpoints Frameworks 2.0 for App Engine

北慕城南 提交于 2019-12-06 15:09:55
I have received an email from GCP to migrate my project from Cloud Endpoints 1.0 to Cloud Endpoints Frameworks 2.0. I've followed the steps outlined here: https://cloud.google.com/appengine/docs/java/endpoints/migrating?authuser=0 In my previous build.gradle I had this directive to enhance my endpoints and it worked fine: appengine { downloadSdk = true appcfg { oauth2 = true } endpoints { getClientLibsOnBuild = true getDiscoveryDocsOnBuild = true } enhancer { version = "v2" api="jdo" // or "jpa" enhanceOnBuild = true } } However, after migration and on compile, I get the following error: Error

Versioning with endpoint V2 on GAE

杀马特。学长 韩版系。学妹 提交于 2019-12-03 04:01:19
I have the live version of my app deployed with its endpoints (no problem with that). I also want to easily be able to test other versions (e.g. staging). With endpointV1 : no problem. With endpointV2 : Everything works fine if I deploy to the live version (at https://[PROJECT-ID].appspot.com but does not work for other versions. After deploying to staging at https://staging-dot-[PROJECT-ID].appspot.com the deployment is successful, but when the frontend calls the backend, the request is received by the backend (I can see it in the GAE logs and trace list), but it does not make it to or though

appengine-maven-plugin:1.3.1 run failed non zero exit

可紊 提交于 2019-12-02 07:45:44
I'm trying to create hello-endpoint-framework using maven archetype I used this command to build project. mvn archetype:generate -Dappengine-version=1.9.63 -Djava8=true -DCloudSDK_Tooling=false -Dapplication-id=your-app-id -Dfilter=com.google.appengine.archetypes: I set -Djava8=true because I want to run this in java8 . Here is pom.xml file. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">