google-cloud-endpoints

How to set a custom header in Google Cloud Endpoints Javascript Client?

≯℡__Kan透↙ 提交于 2019-12-10 00:53:10
问题 I can fetch a list of blog posts from Google Cloud Endpoints using the Javascript Client: gapi.client.blog.posts.list().execute(function (resp) { console.log(resp); }); But I need to set a custom header value in the Google Cloud Endpoints request that contains a user token (this could be an access token from Facebook). How can I do that using the Javascript Client from Google? I could solve this by not using the Javascript Client from Google, but I would rather use it. https://developers

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

com.google.api.config.ServiceConfigSupplier - Failed to fetch default config version for service (only on localhost)

主宰稳场 提交于 2019-12-09 17:27:43
问题 I'm using Cloud Endpoints Frameworks (2.0.1) for Java as part of my final year project and have been relatively successful with it so far. I don't have any problems when deploying to my appspot.com domain, however, I am running into some problems when deploying locally. (Any references to my-project-id in the following code blocks are aliases for my actual google cloud project id) I have a valid openapi descriptor (openapi.json) of an annotated @API class which I am deploying to cloud

Google Cloud Endpoint keeps throwing “unexpected end of stream” exception

落花浮王杯 提交于 2019-12-09 17:23:26
问题 Does anyone know why Google Cloud Endpoint keeps throwing unexpected end of stream exception even before my app engine instance is actually reached? I keep getting the following error when I call my endpoint. In most places the error shows after every other call; in rare others it's consistent. 05-06 18:32:28.335: W/System.err(11783): java.io.IOException: unexpected end of stream 05-06 18:32:28.343: W/System.err(11783): at libcore.net.http.FixedLengthOutputStream.close(FixedLengthOutputStream

Using client library from Cloud Endpoints. jar import not working

╄→尐↘猪︶ㄣ 提交于 2019-12-09 13:27:59
问题 I'm created a jar file for my appengine (python) application. I've followed the steps to import my library (.jar) files from this example. It seems Android Studio imported everything correctly (no error) until I try to use the classes in the library. I started to open up the classes that are contained in the jar files to see if everything looked to be in order. This is what I found: UserMessage does not contain any errors. Can anyone help explain why the classes can't see/use each other? Is

Google Cloud Endpoints with Google Cloud Functions [closed]

谁说我不能喝 提交于 2019-12-09 07:48:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . 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

getting blobstore to callback to endpoint method

∥☆過路亽.° 提交于 2019-12-09 06:58:35
问题 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)

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

只谈情不闲聊 提交于 2019-12-09 06:32:04
问题 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

Upload file from Javascript to Google Cloud Endpoint

こ雲淡風輕ζ 提交于 2019-12-09 06:17:29
问题 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

GoogleAuthException: Unknown when authenticating with Cloud Endpoints

孤街浪徒 提交于 2019-12-09 05:52:47
问题 I'm trying to add authentication to my Cloud Endpoints, but I can't get it to work. I'm using this blog as a guideline: http://devthots.blogspot.nl/2012/07/building-awesome-android-apps-with.html What I have: In the AppEngine project: @Api(name = "noteendpoint", clientIds = { "123456789012-abcdefghijklmnopqrstuvwxyz012345.apps.googleusercontent.com" }, audiences = { "my_project_id.appspot.com" }, namespace = @ApiNamespace(ownerDomain = "example.com", ownerName = "example.com", packagePath =