google-app-engine

Daily spending limit option not visible in App Engine's Settings

断了今生、忘了曾经 提交于 2020-06-16 04:33:35
问题 I cannot see the daily spending limit option in Google App Engine's Settings page: Why? 回答1: This may be because you are using App Engine on the flexible environment as according to documentation this is not supported. For application in App Engine Flex, you can use budgets and alerts as mentioned here. Hope you find this information useful! 回答2: There seems to be an issue with that at the moment. It has been reported in this public Issue Tracker thread as well. Engineering is aware and are

Using Flask as pass through proxy for file upload?

百般思念 提交于 2020-06-12 05:38:10
问题 It's for app engine's blobstore since its upload interface generates a temporary endpoint every time. I'd like to take the comlexity out of frontend, Flask would take the post request and forward it to the end point specified by blobstore. Performance and traffic cost is not a concern at all, can someone recommend a most straightforward way to implement? 回答1: Looking at the docs for the BlobStore flow it looks like all you need to do is accept the file yourself and then send it on to the

App Engine deploy: Permissions error fetching application

蓝咒 提交于 2020-06-12 04:53:29
问题 We are using a service account to deploy our app to App Engine using Travis. On every merged PR, Travis pulls the code from our GitHub repository, and pulls a Docker image which contains Google Cloud SDK and executes the gcloud app deploy command. We use a Service Account to perform the deployment with "Project Owner" role. Everything used to work fine until I added a new service to the project which automates SSL certificate generation and renewal, along with a dispatch.yaml file to route

How to ignore files when running `gcloud app deploy`?

 ̄綄美尐妖づ 提交于 2020-06-07 06:16:25
问题 When I run gcloud app deploy app.yaml which files actually get uploaded? The project folder contains folders and files such as .git , .git_ignore , Makefile or venv that are irrelevant for the deployed application. How does gcloud app deploy decide which files get uploaded? 回答1: tl;dr: you should use a .gcloudignore file, not skip_files in app.yaml . While the prior two answers make use of skip_files in the app.yaml file. There is now a .gcloudignore that is created when using gcloud deploy

How to ignore files when running `gcloud app deploy`?

纵饮孤独 提交于 2020-06-07 06:15:05
问题 When I run gcloud app deploy app.yaml which files actually get uploaded? The project folder contains folders and files such as .git , .git_ignore , Makefile or venv that are irrelevant for the deployed application. How does gcloud app deploy decide which files get uploaded? 回答1: tl;dr: you should use a .gcloudignore file, not skip_files in app.yaml . While the prior two answers make use of skip_files in the app.yaml file. There is now a .gcloudignore that is created when using gcloud deploy

Interpreting cost data in Google Cloud Platform

元气小坏坏 提交于 2020-06-01 05:13:46
问题 I host a basic web app on Google Cloud Platform, and I've noticed my costs creeping up over the last couple of months. It's really accelerated over the last 30 days (fortunately, on a tiny base - I'm still ticking along at under $2 a day). I haven't added any new functionality or clients in months so this was a bit surprising. My first instinct was an increase in traffic. I couldn't see anything like that in the App Engine dashboard, but I put in a heap of optimizations and dramatically

Interpreting cost data in Google Cloud Platform

家住魔仙堡 提交于 2020-06-01 05:13:07
问题 I host a basic web app on Google Cloud Platform, and I've noticed my costs creeping up over the last couple of months. It's really accelerated over the last 30 days (fortunately, on a tiny base - I'm still ticking along at under $2 a day). I haven't added any new functionality or clients in months so this was a bit surprising. My first instinct was an increase in traffic. I couldn't see anything like that in the App Engine dashboard, but I put in a heap of optimizations and dramatically

ast's col_offset is different between local and App Engine?

本秂侑毒 提交于 2020-05-31 04:57:45
问题 My project on App Engine Python3.7 environment tried using ast module: from flask import Flask, request import ast app = Flask(__name__) @app.route('/', methods=['GET']) def respond(): code = ''' if True: pass elif True: pass elif False: pass else: pass ''' module_node = ast.parse(code) visitor = MyVisitor() visitor.visit(module_node) return visitor.result class MyVisitor(ast.NodeVisitor): def visit_If(self, node): self.result = '{} {} {} {}'.format( node.col_offset, node.orelse[0].col_offset

ast's col_offset is different between local and App Engine?

左心房为你撑大大i 提交于 2020-05-31 04:56:13
问题 My project on App Engine Python3.7 environment tried using ast module: from flask import Flask, request import ast app = Flask(__name__) @app.route('/', methods=['GET']) def respond(): code = ''' if True: pass elif True: pass elif False: pass else: pass ''' module_node = ast.parse(code) visitor = MyVisitor() visitor.visit(module_node) return visitor.result class MyVisitor(ast.NodeVisitor): def visit_If(self, node): self.result = '{} {} {} {}'.format( node.col_offset, node.orelse[0].col_offset

Coinbase API client.getAccount(…) started returning: “Error: unable to get local issuer certificate” [duplicate]

大憨熊 提交于 2020-05-31 03:41:32
问题 This question already has an answer here : UNABLE_TO_GET_ISSUER_CERT_LOCALLY error when calling the Coinbase NODEJS API (1 answer) Closed last month . The issue started late-morning PT, on March 31, 2020. The server making the API call to Coinbase is hosted on Google App Engine with node.js (GCP). The same cert-connectivity problem to Coinbase also happened a few weeks ago, and lasted for about a day. The cert-connectivity problem went away all by itself at that time. No code changes were