google-app-engine

500 Internal Server Error GAE while trying to send JSON string to client android side?

匆匆过客 提交于 2020-01-07 01:26:06
问题 I am working on Google App Engine to store data.My application is a android application and I want to receive datas from GAE datastore side.However when I want to receive ArrayList as a JSON text , I am getting "Error : 500 Internal Server Error" message and I could not find any solution about that I put my client and server side codes here ; Server Side @SuppressWarnings("serial") public class ReceiveLoc extends HttpServlet{ public static final String USER_ID = "userId"; public static final

link that includess .php? in google app engine

送分小仙女□ 提交于 2020-01-06 23:46:17
问题 I use app.yaml on google's app engine. I have a link in my php file which is of this format: profile.php?id=1 , which gives me the profile page for user 1. Any idea how to deal with this link in my app.yaml file? This is what I have done: application: myappl-testing-858585 version: 1 runtime: php api_version: 1 threadsafe: yes handlers: - url: /profile.php?id= script: profile.php?id= 回答1: Your app.yaml file should only route the paths, like this: handlers: - url: /profile script: profile.php

link that includess .php? in google app engine

馋奶兔 提交于 2020-01-06 23:45:06
问题 I use app.yaml on google's app engine. I have a link in my php file which is of this format: profile.php?id=1 , which gives me the profile page for user 1. Any idea how to deal with this link in my app.yaml file? This is what I have done: application: myappl-testing-858585 version: 1 runtime: php api_version: 1 threadsafe: yes handlers: - url: /profile.php?id= script: profile.php?id= 回答1: Your app.yaml file should only route the paths, like this: handlers: - url: /profile script: profile.php

Insufficient Permission with Appengine Flex service account to access Drive folder

筅森魡賤 提交于 2020-01-06 20:13:59
问题 I have written an application that uses all the clients/sdks as officially documented. credentials = GoogleCredentials \ .get_application_default() \ .create_scoped('https://www.googleapis.com/auth/drive') drive = discovery.build( 'drive', 'v3', http=self.credentials.authorize(Http()) ) drive.files() \ .get(fileId=file_id) \ .execute() It works perfect in local with a Service Account generated from the panel, but when I deploy the application, the service account within AppEngine flexible

Error posting to URL: appengine.google.com/api/appversion/create - 404

萝らか妹 提交于 2020-01-06 19:53:16
问题 I have created a maven google app engine project from appengine-cloudsql-native-mysql-hibernate-jpa-demo-java. My project includes Rest webservices, Java, JPA and Hibernate. Locally everything (rest webservices and database connection) working perfect. But when I try to deploy my code ... I have a problem exactly same as Error posting to URL: appengine.google.com/api/appversion/create - 404. I tried all possible ways (enlisted in above link) to solve it but unable to solve it. Anybody can

Google clould endpoint Api method generated without the required parameter

风格不统一 提交于 2020-01-06 19:53:11
问题 I want to deploy v2 of my google endpoint API. in this version 2, i have added an ApiMethod with a parameter /** * An endpoint class we are exposing */ @Api( name = "myApi", version = "v2", namespace = @ApiNamespace( ownerDomain = "awesome.me.com", ownerName = "awesome.me.com", packagePath = "api/v2" ) ) public class MyEndpointV2 extends MyEndpoint{ @ApiMethod(name = "getContact") public Charges getContact(ContactRequest request){ return ContactHandler.getContact(request); } } As you can see,

Error adding Google Identity Toolkit with Gradle

老子叫甜甜 提交于 2020-01-06 19:51:43
问题 I am trying to add the Google Identity Toolkit to my Google App Engine backend in Android Studio using Gradle. But I'm new to Android Studio and Gradle. I have added the following to my backend build.gradle: repositories { mavenCentral() } dependencies { compile 'com.google.apis:google-api-services-identitytoolkit:v3-rev191-1.20.0' } After a sync and gradle build I try to added an import: import com.google.identitytoolkit.GitkitClient; But I am getting the following errors: cannot resolve

Error adding Google Identity Toolkit with Gradle

百般思念 提交于 2020-01-06 19:51:21
问题 I am trying to add the Google Identity Toolkit to my Google App Engine backend in Android Studio using Gradle. But I'm new to Android Studio and Gradle. I have added the following to my backend build.gradle: repositories { mavenCentral() } dependencies { compile 'com.google.apis:google-api-services-identitytoolkit:v3-rev191-1.20.0' } After a sync and gradle build I try to added an import: import com.google.identitytoolkit.GitkitClient; But I am getting the following errors: cannot resolve

Can't get Access-Control-Allow-Origin header to work as I expected

孤人 提交于 2020-01-06 19:51:19
问题 There are a lot of questions on this subject, but I still can't seem to resolve my issue. I have a game that I'm trying to get working with HTML 5 in Chrome. Link here. The game is written using libgdx and I'm posting json data from my app engine hosted back end. I've done quite a bit of reading and I think I understand the issue with cross domain access, I also think I understand how to resolve it but can't. The full error is XMLHttpRequest cannot load http://1-1-51.wordbuzzweb.appspot.com

How can I uninstall google-cloud-sdk ?

爱⌒轻易说出口 提交于 2020-01-06 19:51:09
问题 I tried deleted Google Cloud AppEngine SDK from macbook, but I'm getting this Last login: Thu Aug 11 14:12:18 on ttys002 -bash: /Users/Squirrel/Desktop/google-cloud-sdk/path.bash.inc: No such file or directory -bash: /Users/Squirrel/Desktop/google-cloud-sdk/completion.bash.inc: No such file or directory Whenever I open a new terminal window. Is there a way I can stop that from happening? 回答1: Converting the comment to an anwer... Some SDK installations may modify system or user profiles to