google-app-engine

Not able to connect Laravel application on App Engine to Cloud SQL database

元气小坏坏 提交于 2021-02-10 16:44:33
问题 I have a Laravel application running on Google App Engine and I want to connect it to the Google Cloud SQL database I have. I have tried many solutions none of them fixed the problem. Everytime it does a request to the database, it throws SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from sessions where id = CQZwtQFAm5RCYcP4ZSqf5mtxTnebGUigQQKVluJa limit 1) . I do have the sessions table, and I also get this error while trying to log in but with the users table then. I've

Google App Engine terminates after Handling signal: term

最后都变了- 提交于 2021-02-10 15:41:05
问题 I have an app deployed as app engine on GCP that calls API, creates Bytes.IO stream and uploads data to the Cloud Storage. There are 4 files, around 44mb to be uploaded. File is list of urls that then would feed Dataflow but this doesn't really matter. At the beginning I created dictionary with a list for each file, but I thought this could cause some memory issue so now, I create a list, transform to bytes and upload it to GCS. I tried few things, streaming, using discovery Api and gcs

How to import private repositories on GAE SE Go 1.11, with go modules?

天涯浪子 提交于 2021-02-10 13:16:35
问题 I have a go library package repository on github as a private repository. And I wrote a project like below that import the library package above. package main import "github.com/foo/libpackage" func main() { : } This is a directory hierarchy. path/to/project |- main.go |- go.mod `- go.sum When deploying I got a error that cannot go: github.com/foo/libpackage@v0.0.0-20181127123728-008fddddc190: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs

How to import private repositories on GAE SE Go 1.11, with go modules?

自作多情 提交于 2021-02-10 13:16:09
问题 I have a go library package repository on github as a private repository. And I wrote a project like below that import the library package above. package main import "github.com/foo/libpackage" func main() { : } This is a directory hierarchy. path/to/project |- main.go |- go.mod `- go.sum When deploying I got a error that cannot go: github.com/foo/libpackage@v0.0.0-20181127123728-008fddddc190: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs

How to import private repositories on GAE SE Go 1.11, with go modules?

爱⌒轻易说出口 提交于 2021-02-10 13:16:07
问题 I have a go library package repository on github as a private repository. And I wrote a project like below that import the library package above. package main import "github.com/foo/libpackage" func main() { : } This is a directory hierarchy. path/to/project |- main.go |- go.mod `- go.sum When deploying I got a error that cannot go: github.com/foo/libpackage@v0.0.0-20181127123728-008fddddc190: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs

Permanently Redirect http to https on Google App Engine Flexible with Django

梦想的初衷 提交于 2021-02-10 12:15:51
问题 I'm working on a project that uses Google Cloud Platform's App Engine in the Python 3 Flexible Environment using Django, and I'm trying to permanently redirect all requests over http to https for all routes, but so far have not been successful. I can access the site over https , but only if explicitly written in the address bar. I've looked at this post: How to permanently redirect `http://` and `www.` URLs to `https://`? but did not find the answer useful. The app works properly in every

Permanently Redirect http to https on Google App Engine Flexible with Django

谁都会走 提交于 2021-02-10 12:14:09
问题 I'm working on a project that uses Google Cloud Platform's App Engine in the Python 3 Flexible Environment using Django, and I'm trying to permanently redirect all requests over http to https for all routes, but so far have not been successful. I can access the site over https , but only if explicitly written in the address bar. I've looked at this post: How to permanently redirect `http://` and `www.` URLs to `https://`? but did not find the answer useful. The app works properly in every

Google Endpoints GET request URL parameters [Python]

跟風遠走 提交于 2021-02-10 06:17:50
问题 I am currently working on a small project where I need to write a GET handler. I am working from the Echo example provided in the endpoints documentation. I have my resource container: GET_EMAIL_RESOURCE = endpoints.ResourceContainer( message_types.VoidMessage, i = messages.IntegerField(1, default = 1) ) And I have my handler: @endpoints.method( GET_EMAIL_RESOURCE, EchoResponse, path='echo/getEmails/{i}', http_method='GET', name='echo_get_emails' ) def echo_get_emails(self, request): if

Google Endpoints GET request URL parameters [Python]

馋奶兔 提交于 2021-02-10 06:17:07
问题 I am currently working on a small project where I need to write a GET handler. I am working from the Echo example provided in the endpoints documentation. I have my resource container: GET_EMAIL_RESOURCE = endpoints.ResourceContainer( message_types.VoidMessage, i = messages.IntegerField(1, default = 1) ) And I have my handler: @endpoints.method( GET_EMAIL_RESOURCE, EchoResponse, path='echo/getEmails/{i}', http_method='GET', name='echo_get_emails' ) def echo_get_emails(self, request): if

Using POST to send data from Android to AppEngine Datastore

与世无争的帅哥 提交于 2021-02-10 05:27:24
问题 Sorry if this is a simple question, but I just can't figure out what I'm supposed to do and I think I'm a bit out of my depth here. I want to send data from an Android Application to my application running on Google App Engine. From there the data must be written to the Datastore. My data will mostly be in the form of objects, and I am working in Java. I came across the following question: how-can-i-connect-a-google-app-engine-application-with-my-android I think I understand what has to