google-app-engine

Accessing a local MySQL instance in your GAE development environment for java using eclipse

不想你离开。 提交于 2020-01-23 04:06:57
问题 I am new to Google App Engine environment. We are starting a project where we are using Google Cloud SQL. For testing purpose we need to setup a local MySQL instance. I have tried searching for the answer, but I didn't find any that helped me. If I was to summarize my question, I am trying access a local MySQL instance in my GAE development environment using JAVA in Eclipse. 回答1: You have to add the MySQL connector in you App Engine SDK folder. You can find the connector there: http://dev

Android Webview becomes slow after a certain Exception

空扰寡人 提交于 2020-01-23 03:24:05
问题 After the exception (listed below) occures the Android Webview becomes noticeably slower. Every action within the webview takes five to ten seconds longer to load. The exception randomly happens after reloading a webview. Sometimes it happens after a few reloads and sometimes it takes up to 400 reloads to occur. It only happens on a webview that opens multiple websockets and it has to be tied to the Chrome engine 78.0.3904 and newer Chrome engines since I couldn't reproduce this Exception on

Package structure for Go App Engine Project

我们两清 提交于 2020-01-23 02:53:26
问题 I have been following Google App Engine's Go Tutorial. According to the tutorial, I should create a root project directory and all source files related to the project should go into this directory. Consequentially, my workspace looks like this: /MyProject /router router.go /items items.go When I try to refer to items.go in router.go like this: router.go import( "items" ) func itemsHandler(writer http.ResponseWriter, request * http.Request){ anItem := items.Item{Id: 245,Name: "Chocolate",Price

How do I 'install' a module on Google App Engine?

时光毁灭记忆、已成空白 提交于 2020-01-23 01:38:10
问题 Excuse me as I'm new to this. I've done all the searching I can, and while I know the module I want to install, I can't figure out how to install the specific module. I'm wanting to install Python-OAuth2 to GAE, but as I can't find the specific oauth2.py file, I don't know what to copy into my app's directory on my machine (let alone if that will work). What is the most direct way of installing third-party python modules on Google App Engine? 回答1: For this particular case, copy the entire

Google App Engine Python: Error in yaml config file when deploying

本秂侑毒 提交于 2020-01-22 20:10:27
问题 I'm using Google App Engine, Python37 environment. I got an error message when trying to deploy a microservice today: I run the command: gcloud app deploy app.yaml Got the error: ... File upload done. ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: script field for handler '/.*' must be set to 'auto' for runtime python37. PS C:\path_to_app> gcloud app deploy app.yaml ... My app.yaml is: service: service_name runtime: python37 handlers: - url: /.* script: main.py It looks exactly the same from

How do I configure Java EE running on GAE to work with Angular UI Router in html5Mode?

元气小坏坏 提交于 2020-01-22 17:46:06
问题 I am attempting to set the UI Router location provider html5Mode to true for my Angular application: locationProvider.html5Mode(true) . While this works client side (appropriately redirects) I am running into issues server side. I am running an instance Java Enterprise Edition on Google App Engine. I have configured my web.xml as outlined for Java EE section in the Angular ui-router FAQ: <?xml version="1.0" encoding="utf-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5">

Getting notAuthorized error with cloud_sql_proxy locally

霸气de小男生 提交于 2020-01-22 14:05:45
问题 I'm trying to setup a connection locally for 2nd generation cloud sql instance. Call for the proxy is ./cloud_sql_proxy -dir=/cloudsql -instances=status-1268:us-central1:status-dev=tcp:3306 & mysql -u status_stg --host 127.0.0.1 I am a bit unclear on how to set up correctly the service accounts from the API section, so I tried with both of the defaults, App engine default service account and Compute engine default service account. I also created a new one service account. For each one of them

Getting notAuthorized error with cloud_sql_proxy locally

倖福魔咒の 提交于 2020-01-22 14:05:07
问题 I'm trying to setup a connection locally for 2nd generation cloud sql instance. Call for the proxy is ./cloud_sql_proxy -dir=/cloudsql -instances=status-1268:us-central1:status-dev=tcp:3306 & mysql -u status_stg --host 127.0.0.1 I am a bit unclear on how to set up correctly the service accounts from the API section, so I tried with both of the defaults, App engine default service account and Compute engine default service account. I also created a new one service account. For each one of them

The Datastore Admin page is blank in my App Engine Control panel

十年热恋 提交于 2020-01-22 13:10:06
问题 The Datastore Admin page is blank in all my apps on appspot.com, I have followed the instructions to enable them, and receive no error message, just a blank page load. Can anyone help? 回答1: If you are on Google Chrome and logged in via multiple gmail accounts, try to open up App Engine dashboard using an incognito window. That should solve it. 回答2: For future users with same blank page problem and Federated login you can also try the following. Try to open the Datastore Admin page and if it's

Client Library for Cloud Datastore on App Engine - NDB or google-cloud-datastore

浪尽此生 提交于 2020-01-22 12:59:05
问题 Per Google's documentation, it seems like I have two main options for connecting to Datastore using Python: App Engine's NDB Datastore library, and the Google Cloud Datastore API for Python. I'm currently on App Engine (Standard), but I'd like to structure my app such that it can grow beyond if required, likely via a move to Compute Engine. With that in mind, which library should I use? App engine's documentation states that NDB can be used, but it doesn't seem to be very actively developed