google-cloud-endpoints

Cloud Endpoints with Multiple Services Classes

我的未来我决定 提交于 2019-12-18 16:58:36
问题 I am starting to use Google Cloud Endpoints and I am running in a problem when specifying multiple services classes. Any idea how to get this working? ApiConfigurationError: Attempting to implement service myservice, version v1, with multiple classes that aren't compatible. See docstring for api() for examples how to implement a multi-class API. This is how I am creating my endpoint server. AVAILABLE_SERVICES = [ FirstService, SecondService ] app = endpoints.api_server(AVAILABLE_SERVICES) and

serving blobstore image through app-engine endpoints api

穿精又带淫゛_ 提交于 2019-12-18 12:37:07
问题 I am building an app-engine endpoint api that takes picture from a user (android app) and saves it to blobstore programmatically. Then I save the blob_key in my datastore. The code goes like this: First I received the image through my @endpoint.method as a messages.BytesField : image_data = messages.BytesField(1, required=True) Then I save to the blobstore like this: from google.appengine.api import files def save_image(data): # Create the file file_name = files.blobstore.create(mime_type=

“cannot find symbol method setBatchPath(String)” in the generated source from generated endpoint

社会主义新天地 提交于 2019-12-18 12:18:22
问题 For an unknown reason, when I tried to build my Google App Engine endpoints, I get these errors in all of the API java files generated by Android Studio: Error:(400, 5) error: method does not override or implement a method from a supertype Error:(402, 29) error: cannot find symbol method setBatchPath(String) I did some initial troubleshooting and found out that there's a Builder class inside the java file and it extends AbstractGoogleJsonClient.Builder . I looked at the source for the Builder

How to implement and use google cloud sql in my android app (eclipse)

大兔子大兔子 提交于 2019-12-18 10:33:23
问题 this would look like a dumb question and it may look like I didn't search out there for an answer but. The problem is that I am developing an android app and at a certain point I new about Google Cloud SQL and Google App Engine so I watched like 20-30 tutorial and started implementing, but now I'm stuck and can find no tutorial that shows a step by step simple android code. Here's what I've done and where I'm stuck right now: -my android app is working great no single error -created an app

Android Google Cloud Storage with “Client ID for Android application” is Forbidden?

元气小坏坏 提交于 2019-12-18 09:01:02
问题 After a lot of reading, I managed to download files from my cloud storage account on android. I had to use the my service account (with the P12 key - which had I had to put into the assets folder), to create the GoogleCredential object. Here is the code - GoogleCredential credent=new GoogleCredential.Builder() .setTransport(httpTransport) .setJsonFactory(JSON_FACTORY) .setServiceAccountPrivateKey(serviceAccountPrivateKey) .setServiceAccountId("myservice-account@developer.gserviceaccount.com")

Android + App engine: user.getUserID() is null in endpoint

前提是你 提交于 2019-12-18 00:50:23
问题 I have an Android application with GAE server. I tried to authenticate the user as described on developers.google.com, I added the user parameter to the endpoint methods etc. I get a User which is not null, but this method getUserId() returns null. It is similar to this, rather old problem: Function User.getUserId() in Cloud endpoint api returns null for a user object that is not null But I still don't know how to work around it. How do you handle this error? Have you ever encountered it? In

Set up TLS proxy for Google Cloud Endpoint APIs

我的梦境 提交于 2019-12-17 23:18:38
问题 I have been viewing my Google App Engine endpoint APIs in the API explorer (localhost) without issues, now am getting this: in full it says: You are exploring an API that is described or served via HTTP instead of HTTPS. This is insecure and may be blocked by your browser. To fix this, set up a TLS proxy for your API. Alternatively, you can tell your browser to allow active content via HTTP at this site (on Chrome, click the shield in the URL bar), but this will not improve security or

More info on Cloud Endpoints return types

↘锁芯ラ 提交于 2019-12-17 21:09:29
问题 According to the documentation, the return value type cannot be simple type such as String or int. The return value needs to be a POJO, an array or a Collection. This is exactly how things work on the local dev server. However, once deployed, collections and arrays of primitive types result in a 500 Internal Server Error whether the GET URL is typed into the browser or the APIs explorer is used, despite the fact that server logs show 200 Success . Collections of POJOs work fine. This has been

appengine endpoint Failed to retrieve API configs with status: 500

安稳与你 提交于 2019-12-17 20:46:06
问题 I run appengine local dev server in eclipse with params 0.0.0.0 When I try to access any of the methods I get the following error. I get the same error if I try to access api explorer http://localhost:8888/_ah/api/explorer Notes: I just updated my app engine server to java 7. Does anyone know how to fix this problem? java.io.IOException: Failed to retrieve API configs with status: 500 at com.google.api.server.spi.tools.devserver.ApiServlet.getApiConfigSources(ApiServlet.java:102) at com

Cannot access API explorer on localhost

六眼飞鱼酱① 提交于 2019-12-17 18:08:26
问题 I'm trying to build an Endpoints application, but am new to Google App Engine. As I understand it, there's some kind of API Explorer included in the SDK that should let me test/verify my API -- the docs say: "Test the API backend in the Google APIs Explorer by navigating to http://localhost:8080/_ah/api/explorer ". But I can't find any documentation of what API Explorer actually is, does, or looks like. In any case, when I try to hit that URL, I get immediately redirected to https:/