google-cloud-endpoints

Authenticated Cloud Endpoint intermittent failure in Android client

前提是你 提交于 2019-12-03 16:20:03
I have an application in production that is receiving a significant number of force/closes when calling an authenticated Cloud Endpoint. The most telling message is " java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.internal.es@4481e6a8" . The logic works correctly 95% of the time. The stack trace of the failure is as follows: java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:200) at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) at java.util.concurrent

JAX-RS services in Google App Engine

柔情痞子 提交于 2019-12-03 16:17:35
I'm developing a Google App Enigne application that uses some REST services and offers in turn web services. I'm using the GAE Eclipse plugin. I have 2 questions: What is the best JAX-RS library to use with GAE nowadays? I'd like to use Jersey because I understand is the most "standard" library (isn't it?), but I could use any in principle... I've been looking for documentation, but I've only found some samples in blogs that only work with old versions of Jersey, etc... For the web services I have to offer, I thought of using JAX-RS as well, but now I'm not sure if it's the best option...

Appengine Cloud Endpoints with new Google+ sign-in

好久不见. 提交于 2019-12-03 14:41:19
How does the new google+ sign-in apis fit into making authenticated calls to Cloud Endpoints. To use OAuth with endpoints the app must request permission for the ' https://www.googleapis.com/auth/userinfo.email ' scope at a minimum. Will using the Google+ sign-in button grant this scope? Or am I going to have to ask my users for yet another permission?? The Google+ sign-in button has a "scopes" attribute that you can list additional scopes that you would like to request. You can list the userinfo.email scope there as well as any Cloud specific ones. If you need to retrieve a user's email

Objectify loads object behind Ref<?> even when @Load is not specified

╄→гoц情女王★ 提交于 2019-12-03 13:41:02
问题 I have an account object which references a user object. @Cache @Entity public final class Account { @Id Long id; @Index private Ref<User> user; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public User getUser() { return user.get(); } public void setUser(User user) { this.user = Ref.create(user); } } I have hidden the Ref as recommended here: http://code.google.com/p/objectify-appengine/wiki/Entities - please note the Ref does not have the @Load annotation.

Google Cloud Endpoints with Google Cloud Functions [closed]

时间秒杀一切 提交于 2019-12-03 09:43:17
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I was not able to find documentation about how to connect GCF with Google Cloud Endpoints. As I understand Google Cloud Endpoints can be configured to access internal cloud resources. It is not clear how to use load balancer with Endpoints service as well. In the Building Scalable Web Apps with Cloud Datastore article it indicates that you should be able to configure a direct connection from Cloud Endpoints to Cloud

How do I test Cloud Endpoints with Oauth on devserver

三世轮回 提交于 2019-12-03 09:06:51
问题 My app uses Oauthed Cloud Endpoints and is working fine in production. My problem is that on the local devserver, my User user is always set to example@example.com , even though I've gone through the usual auth, access code, etc etc etc and have a valid authed user. I get that example@example.com is useful to test oauth endpoints before I have oauth working properly, but since my app is working I'd rather see the actual user there. To be specific, my endpoint method is @ApiMethod(name =

Local testing for Android App using Cloud Endpoints for Google App Engine

人走茶凉 提交于 2019-12-03 08:53:43
I am developing an Android app that uses Google Cloud Endpoints on Google App Engine (in Python) for its backend. The Android app authorizes the user using Google Play Services on the Android device, and it all works fantastically. However, now that I have actual users, I'd like to be able to test this all locally before deploying any app engine API changes to production, and I haven't figured out how to have the Android app talk to my local development server anywhere. The testing recommendations suggest that I just do some manual tinkering with API Explorer, but as I'm using the Endpoints

getting blobstore to callback to endpoint method

自古美人都是妖i 提交于 2019-12-03 08:48:46
I am developing an app-engine connected android project using the eclipse plugin. When I upload an image to the blobstore, how do I make it callback an endpoint method? I find great posts here that can be used as reference to understand my question better (if you need to). using blobstore with google cloud endpoint and android Saving blobs with Google Endpoint So really, I want to know how to make the callback url an endpoint method such as saveAnimalData below (I stole from referenced link) @ApiMethod(name = "saveAnimalData", httpMethod = HttpMethod.POST) public String saveAnimalData

Upload file from Javascript to Google Cloud Endpoint

徘徊边缘 提交于 2019-12-03 07:38:12
I'm creating a web app using only HTML5 + Javascript + jQueryMobile and I wanted to upload a file to a Google App Engine web application using a Google Cloud Endpoint , also created by me. As I control both sides, I can (and want to) create the simplest interaction possible. As for the Endpoint, I thought of creating a method like this: @ApiMethod( name = "uploadFile", path = "upload_file", httpMethod = HttpMethod.POST ) public void uploadFile(File file) { //process the file } This File class could contain a field fileData of type Blob, or byte[] or something like that, repersenting the file

Integrate firebase auth with google app engine cloud endpoints

扶醉桌前 提交于 2019-12-03 07:36:07
问题 Can someone specify (with some sample code) how to verify the firebase token in an google cloud endpoint? The recently asked question does not clarifiy it at all (How to integrate firebase authentication with google app engine endpoints) Google Authentication in endpoint is done automatically by adding the User Parameter to an endpoint. Facebook Tokens can be verified in an cloud endpoint with the facebook graph api like this: @ApiMethod(name = "endpoint.addUser", httpMethod = HttpMethod.POST