google-app-engine

Usage of X-AppEngine-Estimated-CPM-US-Dollars in AppEngine

扶醉桌前 提交于 2021-02-04 06:20:47
问题 How to make use of X-AppEngine-Estimated-CPM-US-Dollars header in AppEngine. i read some docs, we can make use of it with only Administrator credentials, what is this mean? if you have any samples please do share with us. Thanks in Advance! :) 回答1: I didn't do anything special to enable this functionality. I have role Owner for my app as displayed on page https://appengine.google.com/ Administration > Permissions. If I logout from my Google Account - this header dissapear. Additional headers

Authorize button missing in Google App Engine swagger.json

…衆ロ難τιáo~ 提交于 2021-01-29 21:29:00
问题 I have a flask restplus api with swagger documentation generated. When I run the application locally, I am able to see the Authorize button in the swagger UI Localhost has Authorize button But when I deploy the same application on Google App Engine, the authorize button goes missing. No Authorize button in the Google App Engine deployment. I am unsure why the authorize button is missing in the Google App Engine deployment. 回答1: I was using different versions of flask-restpplus on localhost

Hitting hard memory limit when loading large image, possible to downsample while loading?

僤鯓⒐⒋嵵緔 提交于 2021-01-29 19:29:01
问题 I need to generate small thumbnails from potentially gigantic images (10,000 x 10,000). I'm using ImageMagick and PHP running in Google App Engine. My GAE has a hard memory limit of 512 MB. I've been trying to read the documentation for the imagemagick php extension, but the docs are pretty thin. I found this SO post that has an answer from the maintainer and tried to adapt their code. I tried to set the resource area so that images which were larger than 2000x2000 pixels would get swapped

How to scale Google App Engine instances down to 0 when there is no traffic?

最后都变了- 提交于 2021-01-29 18:26:27
问题 I am hosting an app on GAE and want to enable auto-scaling down to 0 instances when there is no traffic. I thought that specifying min_instances: 0 would allow that to happen. I also included the warmup process recommended in the docs. I sent a single request to the app in the morning and didn't touch it again but it still racked up 10+ instance hours. Can anyone tell me how to enable scale-down to 0 instance on the standard environment? I'll also note that I''m using a few other GCP services

Modify Datastore Admin Backup Built-in Task Queue

房东的猫 提交于 2021-01-29 15:14:02
问题 I'm new to Datastore. Currently, I'm using datastore admin to backup my data but I'm wondering if we can modify or override the built-in task queue on datastore admin /_ah/datastore_admin/backup.create? What I want to do when exporting the data from datastore is that I would only need to export the data that has specific date range that I specify. I saw on the documentation that you can pass a parameter to the URL. Is its possible to pass the parameter on the date range like this one? /_ah

(gcloud.app.deploy) HTTPError 403: <account> does not have storage.objects.get access to the Google Cloud Storage object

纵饮孤独 提交于 2021-01-29 14:12:03
问题 When I try to follow the example here: https://cloud.google.com/appengine/docs/flexible/python/quickstart, gcloud app deploy gives me the below error: ERROR: (gcloud.app.deploy) HTTPError 403: *account1* does not have storage.objects.get access to the Google Cloud Storage object. However, the account: account1 is the owner of the particular project. So why an ower does not have the storage.objects.get access here? 回答1: The problem is resolved by adding Storage Object Admin role to the account

CSS File not loading into PHP Laravel application with Google App Engine and runtime php72

跟風遠走 提交于 2021-01-29 13:02:22
问题 I try to run a standard installation of a Laravel 5.8.x application with its own CSS file on the Google App Engine with standard configuration (runtime: php72). The page is displayed, but the CSS file public/css/main.css is not loaded. There is a 404 error in the browser. This is my app.yaml code: runtime: php72 service: default env_variables: APP_KEY: xxxxx APP_STORAGE: /tmp VIEW_COMPILED_PATH: /tmp APP_ENV: production APP_DEBUG: false CACHE_DRIVER: database SESSION_DRIVER: database ... I

What does ''HmacAuthV1Handler' object has no attribute 'presign'' mean?

北城余情 提交于 2021-01-29 12:52:50
问题 I want to use boto2 (2.49) to create a presigned url that uses Sign v4. Here is my function: c = S3Connection(access_key, secret_key) return c.generate_url_sigv4( expires_in=long(expiry), method='PUT', bucket=bucket, key=path ) When I run it, I got this error: 2019-06-18 12:57:51,002 boto [DEBUG]:Using access key provided by client. 2019-06-18 12:57:51,002 boto [DEBUG]:Using secret key provided by client. Traceback (most recent call last): File "scripts/gen_url.py", line 42, in <module> main

Unable to connect to postgres in cloud sql from google app engine nodes

丶灬走出姿态 提交于 2021-01-29 12:31:58
问题 I am working on a nodejs and postgres application. Both are deployed in google. I have my postgres in google cloud sql and nodejs is deployed in google app engine. I am trying to connect to postgres from nodejs, but it throws it cannot connect to cloud postgres. I have updated app.yml file and i am using regular pg client and not knex. Can anyone help me. My config as below const client = new Client({ user: 'postgres', host:'xx.xx.xx.xx', socketpath: '/cloudsql/proj-name:us-central1:app-name'

reverse proxy on AppEngine (restlet 2.1) : 404 - client protocol missing

北城余情 提交于 2021-01-29 12:10:13
问题 Trying to get Restlet going on AppEngine to use as a reverse proxy for a 3rd party json/xml service. AppEngine version 1.5.5 Restlet GAE edition 2.1RC1 I setup Restlet in my web.xml like this : <servlet> <servlet-name>​RestletServlet</s​ervlet-name> <servlet-class​>org.restlet.ext.ser​vlet.ServerServlet​</servlet-class>​ <init-param> <param-name>or​g.restlet.applicatio​n</param-name>​ <param-value>b​e.koma.server.MyAppl​ication</param-va​lue> </init-param> </servlet> <servlet-mapping>