Re: [google-appengine] How to structure credentials in requests to App Engine App

2022-05-09 Thread 'David Brogdon' via Google App Engine
Standard environment. Client app->App Engine App->Other services is the 
logic flow. Client is Python code. I am trying to use the service account 
key to request a token so that my client app and submit a request to my App 
Engine App (controller/proxy/etc). Code method below:

from google.auth.transport.requests import Request
from google.oauth2 import id_token
import requests


def make_iap_request(url, client_id, method='GET', **kwargs):
"""Makes a request to an application protected by Identity-Aware Proxy.

Args:
  url: The Identity-Aware Proxy-protected URL to fetch.
  client_id: The client ID used by Identity-Aware Proxy.
  method: The request method to use
  ('GET', 'OPTIONS', 'HEAD', 'POST', 'PUT', 'PATCH', 'DELETE')
  **kwargs: Any of the parameters defined for the request function:

https://github.com/requests/requests/blob/master/requests/api.py
If no timeout is provided, it is set to 90 by default.

Returns:
  The page body, or raises an exception if the page couldn't be 
retrieved.
"""
 # Set the default timeout, if missing
if 'timeout' not in kwargs:
kwargs['timeout'] = 90

# Obtain an OpenID Connect (OIDC) token from metadata server or using 
service
# account.
open_id_connect_token = id_token.fetch_id_token(Request(), client_id)

# Fetch the Identity-Aware Proxy-protected URL, including an
# Authorization header containing "Bearer " followed by a
# Google-issued OpenID Connect token for the service account.
resp = requests.request(
method, url,
headers={'Authorization': 'Bearer {}'.format(
open_id_connect_token)}, **kwargs)
if resp.status_code == 403:
raise Exception('Service account does not have permission to '
'access the IAP-protected application.')
elif resp.status_code != 200:
raise Exception(
'Bad response from application: {!r} / {!r} / {!r}'.format(
resp.status_code, resp.headers, resp.text))
else:
return resp.text

data={
On Friday, May 6, 2022 at 11:53:15 AM UTC-5 Osvaldo Lopez Acuña wrote:

> Please share if you’re using the Standard or Flex environment, in which 
> programming language is your App (including version), what type of service 
> account you have, any related code or settings that you have tried and the 
> complete error and logs. Meanwhile here’s the general App Engine’s 
> Troubleshooting guide 
> <https://cloud.google.com/appengine/docs/troubleshooting?hl=en#service-account-permissions>
>  
> where you can find solutions to similar issues. Also, you can check App 
> Engine connectivity questions 
> <https://cloud.google.com/appengine/docs/troubleshooter/connectivity-questions?hl=en>
>  
> and Specifying a service account 
> <https://cloud.google.com/appengine/docs/standard/python3/access-control#user-managed-service-account>.
>  
> App Engine lets you use two types of service accounts.
>
> On Thursday, May 5, 2022 at 7:03:24 PM UTC-5 anat...@newventurevisions.com 
> wrote:
>
>> Usually you need to call google api to get token using your service 
>> account key. Then use token in https request header.
>> It does depend on how your app engine app is configured though in terms 
>> of authentication.
>>
>> Sincerely,
>> Anatoli Trifonov
>>
>>
>>
>>
>> On Thu, May 5, 2022 at 12:06 AM 'David Brogdon' via Google App Engine <
>> google-a...@googlegroups.com> wrote:
>>
>>> I am trying to figure out how to authenticate a desktop app to my App 
>>> Engine app in order to send HTTP requests to my App Engine App. I have read 
>>> all the documentation I can find but what I really need to know is, *how 
>>> do I feed my service account key info into my http request so that my App 
>>> Engine app will respond? Right now I am getting an error stating there are 
>>> no credentials.  *
>>>
>>> Thanks
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to google-appengi...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-appengine/e6c4a60a-1451-43e0-b6a0-f5754c40e7c2n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/google-appengine/e6c4a60a-1451-43e0-b6a0-f5754c40e7c2n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1c4a8d50-a902-4e16-a251-f388a29236dcn%40googlegroups.com.


Re: [google-appengine] How to structure credentials in requests to App Engine App

2022-05-09 Thread 'David Brogdon' via Google App Engine
This is what I am trying to do based on the GCP docs. I just need to know 
how to get the token from GCP to use in my client-side app so that it can 
make requests to my App Engine app. Do you have an example that simply gets 
a token by using the service account key?

Thanks

On Thursday, May 5, 2022 at 7:03:24 PM UTC-5 anat...@newventurevisions.com 
wrote:

> Usually you need to call google api to get token using your service 
> account key. Then use token in https request header.
> It does depend on how your app engine app is configured though in terms of 
> authentication.
>
> Sincerely,
> Anatoli Trifonov
>
>
>
>
> On Thu, May 5, 2022 at 12:06 AM 'David Brogdon' via Google App Engine <
> google-a...@googlegroups.com> wrote:
>
>> I am trying to figure out how to authenticate a desktop app to my App 
>> Engine app in order to send HTTP requests to my App Engine App. I have read 
>> all the documentation I can find but what I really need to know is, *how 
>> do I feed my service account key info into my http request so that my App 
>> Engine app will respond? Right now I am getting an error stating there are 
>> no credentials.  *
>>
>> Thanks
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-appengi...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/e6c4a60a-1451-43e0-b6a0-f5754c40e7c2n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/e6c4a60a-1451-43e0-b6a0-f5754c40e7c2n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5b4dea92-07b8-4a5a-98ef-e2232c4cafb7n%40googlegroups.com.


[google-appengine] Re: How to structure credentials in requests to App Engine App

2022-05-09 Thread 'David Brogdon' via Google App Engine
Currently I have a client app that is local to the desktop and needs to 
send a request via Python to the server app (App Engine App)
 that then interacts with the other services. I am using standard 
environment. I have tried many examples for the GCP docs for 
authentication, including oauth, etc. I am just needing to know how to get 
the token for use in the requests because so far I have failed. I have 
tried using API key method, service account key method, etc. I just need to 
authorize the service account.  
On Thursday, May 5, 2022 at 1:00:47 PM UTC-5 Andres Fiesco Casasola wrote:

> How are you issuing the HTTP(s) request from your app engine? Could you 
> please share the documentation you used for the authentication? Are you 
> using a standard or a flex environment?   
>
> On Thursday, May 5, 2022 at 2:06:35 AM UTC-5 david.b...@zebra.com wrote:
>
>> I am trying to figure out how to authenticate a desktop app to my App 
>> Engine app in order to send HTTP requests to my App Engine App. I have read 
>> all the documentation I can find but what I really need to know is, *how 
>> do I feed my service account key info into my http request so that my App 
>> Engine app will respond? Right now I am getting an error stating there are 
>> no credentials.  *
>>
>> Thanks
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d6e89868-325c-4002-81f1-4df36c940daan%40googlegroups.com.


[google-appengine] How to structure credentials in requests to App Engine App

2022-05-05 Thread 'David Brogdon' via Google App Engine
I am trying to figure out how to authenticate a desktop app to my App 
Engine app in order to send HTTP requests to my App Engine App. I have read 
all the documentation I can find but what I really need to know is, *how do 
I feed my service account key info into my http request so that my App 
Engine app will respond? Right now I am getting an error stating there are 
no credentials.  *

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e6c4a60a-1451-43e0-b6a0-f5754c40e7c2n%40googlegroups.com.


[google-appengine] Re: Not able to SignUp for free trial account - Getting Error [OR-BSBBS-103]

2022-03-28 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,
Please contact GCP billing support 
 since they would be able to 
provide more information about this error you are seeing.

On Saturday, March 26, 2022 at 2:11:28 PM UTC-4 venkates...@gmail.com wrote:

> *Getting Error [OR-BSBBS-103].*
> after giving all debit card details 2Rs got debited multiple times and got 
> an sms about* Auto Billing enabled* on my card but account was not 
> created in gcp free trial showing the above error. How do we get free trial 
> account now ? as per my org constraints end of this month need get certify 
> in GCP but not able to practice the labs due to these  issues . If possible 
> resolve these issues asap.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2bcd1cc4-7249-4f0b-8150-c3edeb962fcbn%40googlegroups.com.


[google-appengine] Re: Sporadic server error since March 1 (Python)

2022-03-07 Thread 'David (Cloud Platform Support)' via Google App Engine
Glad to hear that switching to a F2 instance class fixed the issue. It’s 
hard to say whether the issue was caused by a lack of resources even after 
looking at the log you provided. Which is why I would recommend you to 
contact GCP support  If this issue 
happens again even after having upgraded instance type, since they can 
inspect your GAE service and provide you with more useful information.

On Saturday, March 5, 2022 at 12:11:16 PM UTC-5 Viktor Bresan wrote:

>
> Many thanks for your tips! The trace is not available for failed request, 
> for all other it is. I haven't pasted log earlier, perhaps I should, 
> because (in my opinion) it isn't showing anything. Here it is (attached). 
>
> Meanwhile, I have switched to instance class F2 and so far the problem did 
> not happen again. I don't have latency longer than 3s, when new process is 
> started. Though I don't think the problem should have happened earlier, or 
> F1 is useless. 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c62817cf-6503-4b48-9df7-a170c33b13a6n%40googlegroups.com.


Re: [google-appengine] Re: GAE standard and flex: support PHP 8

2022-01-27 Thread 'David (Cloud Platform Support)' via Google App Engine
Please follow the official feature request for PHP 8.0 support for GAE 
standard  and GAE flex 
. You are able to subscribe to 
it, if you would like to receive updates about its progress. You can also 
periodically check the GAE standard 
 and GAE 
flex  
PHP release notes to find out whether PHP support for a new version was 
officially added.

On Thursday, January 27, 2022 at 10:34:42 AM UTC-5 Jofre Riba Sánchez wrote:

> you could try to deploy through the API, skipping the CLI: 
> https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions/create?apix=true_params=%7B%22appsId%22%3A%22%3CYOUR-APP-ID%3E%22%2C%22servicesId%22%3A%22php81%22%2C%22resource%22%3A%7B%22id%22%3A%221%22%2C%22runtime%22%3A%22php81%22%2C%22env%22%3A%22standard%22%2C%22deployment%22%3A%7B%22files%22%3A%7B%22index.php%22%3A%7B%22sourceUrl%22%3A%22https%3A%2F%2Fstorage.googleapis.com%2Fbucket%2Fobject%22%2C%22sha1Sum%22%3A%22sha1%22%7D%7D%7D%7D%7D
>
> Interestingly, when I try, the error it gives me is this one:
> {
>   "error": {
> "code": 400,
> "message": "Invalid runtime 'php81' specified. Accepted runtimes are: 
> [php, php55, python27, java, java7, java8, nodejs8, php72, nodejs16, 
> java11, php74, php73, go116, nodejs10, go114, go115, go112, nodejs14, 
> python38, go113, python37, nodejs12, go111, python39, ruby27, ruby26, 
> ruby25]",
> "status": "INVALID_ARGUMENT"
>   }
> }
>
> Note that the API does not give me PHP81 as valid, which is different from 
> you (and you also seem to have a bunch of additional canary/preprod options 
> that do not appear for me).
>
> On Thu, Jan 27, 2022 at 3:55 PM Tom Sykes  wrote:
>
>> In fact, if I deploy with a runtime that really doesn't exist, I get the 
>> following error which lists php81 as an option (but it doesn't work)
>>
>> ```
>> ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Invalid runtime 'php80' 
>> specified. Accepted runtimes are: [php, php55, python27, java, java7, 
>> java8, dotnet3, go111, go112, go113, go114, go115, go116, java11, java17, 
>> nodejs10, nodejs12,
>>  nodejs14, nodejs16, php72, php73, php74, php81, python37, python38, 
>> python39, python310, ruby25, ruby26, ruby27, ruby30, gcf preprod, gcf prod, 
>> gcf staging, java8 canary, php55 canary]
>> ```
>>
>> On Thursday, 27 January 2022 at 14:49:53 UTC Tom Sykes wrote:
>>
>>> Spotted this today while trying to investigate a separate issue
>>> https://console.cloud.google.com/gcr/images/gae-runtimes/global/php81
>>>
>>> I've tried deploying a test using php81 as the runtime, but it doesn't 
>>> work.
>>>
>>> Does this mean php 8.1 support is coming? Does anyone have a timeframe 
>>> for public availability?
>>>
>>> On Thursday, 13 January 2022 at 14:27:19 UTC llu...@google.com wrote:
>>>
 I think your point makes sense and I agree that warning people who use 
 deprecated software could be useful. 

 I looked if there were any feature request with that or a similar idea 
 but I wasn't able to find any.
 I'd like to encourage you to create a feature request 
  
 explaining 
 your idea of warning people who use deprecated versions of software.

 On Tuesday 11 January 2022 at 23:09:59 UTC+1 fkra...@gmail.com wrote:

> Yeah that makes sense. But given that PHP 7.2 is still not even 
> deprecated (at least based on documentation) and PHP 7.4 soon reaching 
> the 
> official deprecation from the PHP team without an alternative on App 
> Engine 
> is concerning. Like obviously if anyone wanna use PHP 7.2 thats there 
> business but I feel like Google could at least pro-active warn about 
> using 
> PHP 7.2 instead PHP 7.4 and hopefully provide soon PHP 8.0 and 8.1 
> support 
> so people can use a PHP version that is actively maintained.
>
> On Tuesday, January 11, 2022 at 2:14:32 a.m. UTC-8 llu...@google.com 
> wrote:
>
>> Hi, 
>>
>> I understand your concerns about PHP 7.2 being available in GAE even 
>> though it's out of security support. 
>> However, please note that according to the terms of service 
>> 
>>  Google 
>> has to notify 12 months before discontinuing any Service. 
>>
>> On Tuesday 11 January 2022 at 09:22:20 UTC+1 fkra...@gmail.com wrote:
>>
>>> 

[google-appengine] Re: App Engine Flexible Environment Deployed Version Management

2022-01-20 Thread 'David (Cloud Platform Support)' via Google App Engine


You can deploy it this way:

1-gcloud app deploy --no-promote -v

2-gcloud app services set-traffic  --splits =1

By using the no promote flag, when you perform a deployment, the new 
version won’t directly serve traffic. Then, you could choose how much of 
the traffic you want to be sent by using set traffic.

If let’s say you want to send 50% of your traffic, you could do this:

gcloud app services set-traffic  --splits =.5,=.5

You could gradually send all traffic to the new version if that works 
better for your use case.

You could also do this within the UI.
On Thursday, January 20, 2022 at 7:58:21 AM UTC-5 Maha Farhat wrote:

> Hi,
> We use App engine Flexible environment for executing long running 
> asynchronous tasks.
> When we make changes to the app and deploy a new version using the 
> command: "gcloud app deploy app.yaml", it deploys the new version routes 
> 100% traffic to the newly deployed version, and stops the old version. This 
> results in the failure of any request that was in process on the old 
> version.
>
> We have tried keeping the old version alive by using the flag 
> --no-stop-previous-version 
> but in this case, even after the new version is deployed and the latest 
> version is serving 100% requests the new request keeps getting served by 
> the older version. 1. Is there a way to keep the old version running until 
> the requests it is processing are completed? 2. How to make sure in the 2nd 
> scenario that all the new requests after new deployment are served by the 
> latest version instead of the old one?
>
> Thanks,
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/79150031-9709-4765-93a8-a8bc3fa9670dn%40googlegroups.com.


Re: [google-appengine] Updates from the Google App Engine team (Fall 2021)

2021-11-04 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

Other than applying changes within your own application so it will go easy 
at startup, you can try using warmup requests 

 
along with tweaking the min_idle_instances element 

 
in your app.yaml, in order to reduce request and response latency during 
the time when your app's code is being loaded to a newly created instance.
There’s not an official way of forcing the scaling to behave like it used 
to be on python 2.7. However, this type of feedback can be passed to the 
App Engine engineering team in the form of a feature request. You can 
create such a feature request here 
. 
The App Engine engineering team would then evaluate it and decide whether 
it could be implemented or not.
On Thursday, November 4, 2021 at 11:38:52 AM UTC-4 Joshua Smith wrote:

> Thanks for sending out this update. I did, indeed, miss most of this news.
>
> This item, in particular, is *awesome*:
>
>
>
>- 
>
>Extending support for App Engine bundled services 
>
> 
>  
>(Sep 2021) 
>
>
> This sounds like it will make it so much easier to migrate to Python 3.7.
>
> One thing I've noticed is that my older apps on 2.7 seem to handle peak 
> scaling a lot better than my newer apps on 3.7. For example, if I have a 
> web page that hits a 2.7 app with 100 REST calls at startup (bad design, 
> but it happens), the old app serves them all eventually. But if I do the 
> same thing in a 3.7 app, it's likely to choke and fail a bunch of those 
> requests with these:
>
>
> The specific pattern is that after the first couple requests, it spins up 
> a new instance. That takes 5 seconds to serve its first request (simple 
> app, so I guess that's just GAE overhead). Then it spins up a couple more. 
> Then I start getting those errors on some of the requests, because 15s have 
> passed. In this capture the blue ones are new instances spinning up, and 
> the orange ones are timeout errors (note the 15s time on those).
>
>
> I've been designing around the issue by making sure my web apps go easy on 
> the server on startup. But it is yet another concern about migrating.
>
> Is there a way to tune the auto-scaling for 3.7 to behave like the 2.7? 
> Here's a similar set of requests to my 2.7 app, which only spins up one 
> extra instance, and never throws timeout errors, ever:
>
>
> -Joshua
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/be0758b0-a47c-4d4e-bdee-6b27ec308e3fn%40googlegroups.com.


[google-appengine] Re: 500 - Request was aborted after waiting too long to attempt to service your reques

2021-09-24 Thread David Scott
Yes, I also saw several services stop responding (error 500) around 12:10AM 
EST on 9/21/2021, also with no changes on our side.

On Wednesday, September 22, 2021 at 4:24:29 AM UTC-4 Neelanshu Jain wrote:

> Yes, I've also started seeing these since very recently(past 1-2 days) on 
> services served by App Engine. Glad to know it's not just me , meaning not 
> somethng that I've done wrong. :) 
>
> On Tuesday, September 21, 2021 at 3:57:13 PM UTC+1 Leonard Cremer wrote:
>
>> We are suddenly getting a lot of these type of errors on services that 
>> have not changed recently. 
>>
>> Is anyone else experiencing similar errors. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e6a0fa7d-bcaf-45db-a0eb-9a399327f2c5n%40googlegroups.com.


[google-appengine] Re: Custom Domain much slower than $PROJECT_ID.appspot.com

2021-07-17 Thread David Smith

I am having this same problem and I'm not in a 'slow'' region. I have 
relocated to us-west4 (Las Vegas) to avoid this issue but I'm still getting 
a much slower response time from the custom domain:

Custom domain: 1.25 seconds
appspot: 200ms

I testing this from Sydney using Go1.15 on App Engine Standard.

Is it still possible I have made some error or are others seeing this 
difference even in regions that are not know as slow?


On Thursday, August 22, 2019 at 8:03:46 AM UTC+10 diogoa...@google.com 
wrote:

> Hello Adam,
>
> As commented by George, it is recommend to add a comment on the issue 
> tracker so that the product team will know how many more App Engine users 
> are being impacted by this issue.
>
> I see that the product team is actively working on this issue and updates 
> will be posted in the issue tracker as soon as they have concrete progress 
> towards the resolution.
>
>
> On Wednesday, August 21, 2019 at 8:09:53 AM UTC-4, Adam Weaver wrote:
>>
>> Hmmm I dont think it will ever resolve. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9138cf00-d36c-4951-9937-5bf3a80d593an%40googlegroups.com.


[google-appengine] Re: Disabling TLS 1.0

2021-07-16 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

In the past, to update your TLS version, you needed to create a ticket with 
GCP support. However, right now, the recommended approach by GCP is to use 
Cloud 
Load Balancing and serverless NEGS 
. 
Please review this page 

 
for more information. You do not need to create a ticket anymore. 
On Thursday, July 15, 2021 at 11:31:03 AM UTC-4 Stefano Ciccarelli wrote:

> The serverless NEGs are a good solution that we investigated, not only for 
> security purposes. The real problem we have encountered is that serverless 
> NEGs have a default 30 seconds timeout not customizable, and this is a real 
> stopper for our use cases.
>
>
> Il giorno giovedì 15 luglio 2021 alle 17:14:56 UTC+2 
> patrice.b...@gmail.com ha scritto:
>
>>
>> June 2018 was the deadline for discontinuing the use of TLS 1.0, (
>> https://blog.pcisecuritystandards.org/are-you-ready-for-30-june-2018-sayin-goodbye-to-ssl-early-tls)
>>  
>> and after that date numerous audit tools point the use of TLS 1.0 and 1.1 
>> as alerts.  
>> It is now July 2021, 3 years passed the deadline, and it seems App Engine 
>> is still using both.A number of GAE users have asked how disabling old 
>> TLS versions could be achieved, but the answers they got are not quite 
>> satisfactory.   
>> Some say "you should create a ticket with GCP, but you will have to have 
>> a support subscription first" (
>> https://serverfault.com/questions/1003762/how-to-disable-tls-1-0-for-google-app-engine
>>  
>> or https://stackoverflow.com/questions/58073141/how-to-update-tls-version).  
>>  
>>
>> Others say the solution is to set up an SSL policy, which would only be 
>> possible after using  Cloud Load Balancing and serverless NEGS.  That would 
>> be a lot of trouble, plus added costs, for the sole purpose of making our 
>> GAE based application compliant with 2018 guidelines. 
>> But these are just end-user advice given on SO, I would be happy to get 
>> the official word from GCP on that matter.   It is quite unusual to see GAE 
>> being 3 years late on a security related issue.
>> Thank you for your input,
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ece316a5-53a4-4707-9e17-1bd5d37d9201n%40googlegroups.com.


[google-appengine] Re: Can we store images and videos using Google Cloud nDB?

2021-07-08 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

Storing images is not preferable with scaling/performance and so it has 
been omitted for the database itself. With the migration from app engine 
ndb to cloud ndb, comes a move from using BlobStore 
 to the use 
of Cloud Storage 

 
instead.
On Wednesday, July 7, 2021 at 1:24:32 PM UTC-4 boltr...@gmail.com wrote:

> Dear Fellows, 
>
> We developed a project using nDB and webapp2. 
> Now we upgrade the project to REACT and Django using cloud NDB.
>
> My technical team tried to use Cloud nDB for storing images and media 
> files and 
> they say it is not possible. I myself sit with a big that how is it 
> possible that 
> we are unable to store our media files on the Cloud Ndb. 
>
> In the past for nDB we used blob store to store the images or media flies. 
> Therefore, now I need help. 
>
> Kind regards, 
> Bolt. 
>
>
> https://cloud.google.com/appengine/docs/standard/python3/migrating-to-cloud-ndb
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/63cba01a-8e79-474b-92e7-34af609eb7b7n%40googlegroups.com.


[google-appengine] Re: AppEngine Standard - Connection reset by peer

2021-06-22 Thread 'David (Cloud Platform Support)' via Google App Engine


This could be an issue with a specific library that you may be using or 
something within the app’s response that App Engine isn’t liking. Of course 
it could be many other things. First, I would recommend you to implement 
logging within your app to see if you can attribute this error to a 
specific line of code. After doing this, you could try posting the stack 
trace of the error and the relevant lines of codes as well as the libraries 
being used in Stack overflow so maybe the community can provide you with 
some advice as it is hard to tell without having all the pieces of 
information.

You could also try contacting GCP support  
as they can inspect your application and provide you with more details of 
what could be going wrong.

On Saturday, June 19, 2021 at 2:54:49 AM UTC-4 dron...@gmail.com wrote:

> Update: I see that this problem has started appear since June 1 2021 when 
> accessing to my app on different Google Projects.
>
> пятница, 18 июня 2021 г. в 21:46:34 UTC+5, Andrey Hudyakov: 
>
>> Hello all,
>>
>> I have a spring web java application on Google App Enginge Standard 
>> (Java8) and I'm getting on a client side errors "Connection reset by peer" 
>> frequently.
>> I don't see potential problems in Google Logging which can cause this 
>> error.
>> Has anybody met such problem or can suggest what I can look at to find 
>> the root cause?
>> I'll be glad to hear any idea :)
>>
>> Thanks,
>> Andrey.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8cc5b3a2-74af-4a2c-bad2-dc8b8c018150n%40googlegroups.com.


[google-appengine] Re: How to authenticate a curl request in my app?

2021-06-15 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

As you mentioned, a good way of doing this would be using secret manager. 
This is the official document 
 
that explains how to use secret manager and should help you in getting your 
curl to work properly.


On Monday, June 14, 2021 at 1:37:09 PM UTC-4 bha...@gmail.com wrote:

>
> Hello,
>
> I've added a step to curl into an endpoint in my app as follows:
>
> name: gcr.io/google.com/cloudsdktool/cloud-sdk
> entrypoint: "bash"
> args:
> - "-c"
> - |
> RESPONSE=$(curl -o /dev/null -s -w "%{http_code}" -H "X-AppEngine: 1" 
> $_APP_BASE_URL)
> if [ "200" != "$$RESPONSE" ];
> then
> exit 1;
> fi
>
> I would like to authenticate this request on my app level. 
>
> What are my options?
>
> To generate a token, store it inside Secret Manager and inside my DB or 
> env variables. Pass the token via header (get) or payload (post) and then 
> compare the two?
>
> Any more secure ways of doing this?
>
> Thanks
> Bill
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/43b093a9-cab0-450d-9293-d6cc76efae90n%40googlegroups.com.


[google-appengine] Re: Google Cloud Trial Ended

2021-06-14 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

There are many guides out there that explain how to set up projects and 
start up with GCP. You can see the official page of getting started with GCP 
. Now, while going through 
these guides, you may experience issues which for you would need to seek 
help individually. The good news is that there is a lot of information out 
there within the documentation of GCP, Stack overflow and many third party 
websites on how to proceed. 

As for your immediate specific problem with the Cloud Build service 
account, you can take a look at this doc 
 which 
explains how to add permissions in general and this is another doc 
 that explains 
the permissions for the Cloud Build service account. Looking at these two 
documents, you can get back on track with the Cloud Build service account.
On Friday, June 11, 2021 at 12:25:42 PM UTC-4 raymon...@gmail.com wrote:

> My Google Cloud trial ended so now I am unable to upload any changes to my 
> app to app engine.
>
> I updated billing, but the rest of the process and documentation for 
> getting everything working again is a bit confusing.  I am not sure what to 
> do next (I think I also accidently deleted permissions on the cloud build 
> service).  
>
> Anyways, is there good instruction, video or docs that will clarify next 
> steps (and also help on the deleted permissions)?
>
> Thank you
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9f160004-1e13-4ac6-9257-f11b355e29ccn%40googlegroups.com.


[google-appengine] Re: Not able to register for Google Cloud Platform Free Trial

2021-05-04 Thread 'David (Cloud Platform Support)' via Google App Engine
Hello,

I have brought this issue to the attention of the Cloud Billing engineering 
team. Please follow this Issue Tracker 
. 
On Tuesday, May 4, 2021 at 12:24:47 PM UTC-4 talkto...@gmail.com wrote:

> Me too not able to register successfully.
> Help from cloud team really appreciated.
>
> On Tuesday, May 4, 2021 at 6:34:27 PM UTC+5:30 animeshs...@gmail.com 
> wrote:
>
>> Every time Rs 1 got deducted but it lands on the same page. Without 
>> showing me any error message. Neither the accounts got activated.
>>
>> On Tuesday, May 4, 2021 at 2:38:10 AM UTC+5:30 srihar...@gmail.com wrote:
>>
>>>
>>> Hi,
>>>
>>> I'm unable to activate GCP free trial, whenever I try it just deducts 
>>> nominal amount and again takes me back to same page.
>>>
>>> Tried to chat with support, but Billing Assistant is of no use and when 
>>> tried option "Contact Billing support"  it says that I should be a billing 
>>> administrator to use this option.
>>>
>>> Even tried chat option from "Google Cloud Platform Free Trial 
>>> Troubleshooter" which is taking me to alien page "
>>> https://login.corp.google.com/request?s=pantheon.corp.google.com:443/uberproxy/=https://pantheon.corp.google.com/support/chat%3Fupxsrf%3DAO9zFu0T7dcjh_CgyYGHog1JahPMn80b7B3psZy96Q9_NciaWQ:1620059392421=1200=200=xSS,Caq;
>>>  
>>> that is asking for google credentials
>>>
>>> Appreciate any help   
>>> On Tuesday, July 21, 2020 at 12:04:48 AM UTC+5:30 Katayoon (Cloud 
>>> Platform Support) wrote:
>>>
 Hi Atanu,

 You can reach out to the Cloud Billing team via following the "Contact 
 Cloud Billing Support" link provided in this documentation 
 . You can 
 find multiple channels of free Cloud Billing support there such as phone, 
 chat, community support and create a ticket with the billing team.

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/da70c67d-1dc8-41f6-8737-210b899507c4n%40googlegroups.com.


[google-appengine] Re: Unstable latency inside of the Google infrasturcture during execution requests to Google AppEngine Standard

2021-04-29 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

Just by looking at this, it may be hard to tell why there’s a discrepancy 
between the first and second attempt. It could be related to cold starts 1 

,2 
.
 
I would recommend you to contact GCP support 
 as they are able to inspect your App 
Engine service and provide you with more information regarding this 
discrepancy on latency you are seeing.
On Wednesday, April 28, 2021 at 8:28:33 AM UTC-4 dron...@gmail.com wrote:

> Hello,
>
> I faced strange latencies during execution HTTP requests to a Java (Spring 
> Web) application which is deployed on Google AppEngine Standard.
>
> For testing purposes, I've used
> - VM in GCP and located in *us-central1* region to make client requests
> - Java Web App in Google AppEngine Standard and deployed in *us-east1* 
> region
>
> Made exactly the same GET request to my application multiple times from VM 
> in GCP. Below you can see a couple of request details
>
> *Attempt #1*
>
> *curl output*
> time_namelookup: 0.004209
> time_connect: 0.005623
> time_appconnect: 0.01674
> time_pretransfer: 0.016828
> time_starttransfer: 0.246101
> size_request: 280
> 
> time_total: 0.24617
>
>
> *Google AppEngine Wallclock time*
> Total clock time in milliseconds spent by App Engine on the request. This 
> time duration does not include time spent between the client and the server 
> running the instance of your application (According to 
> https://cloud.google.com/appengine/docs/standard/java/logs)
>
> 37ms
>
> So I expect that latency on Google network can be calculated as
> time_starttransfer - time_appconnect - warclock_time
>
> Try to explan this formula: we subtract time to connect to Google Frontend 
> Server and time of processing requst by GAE infrastructure from time to 
> receive the first byte of a response
>
> And we can see that we lost 192.361ms in Google Network
>
> *Attempt #2*
>
> *curl output*
> time_namelookup: 0.012408
> time_connect: 0.014181
> time_appconnect: 0.024485
> time_pretransfer: 0.024586
> time_starttransfer: 0.107834
> size_request: 280
> 
> time_total: 0.107901
>
> *Google AppEngine Wallclock time*
> Total clock time in milliseconds spent by App Engine on the request. This 
> time duration does not include time spent between the client and the server 
> running the instance of your application (According to 
> https://cloud.google.com/appengine/docs/standard/java/logs)
>
> 46ms
>
> Now we lost only 37.349ms in Google Network
>
>
> The difference between ~192ms and ~37ms makes me confused a bit.
>
> Could you please help me to understand this issue and may be suggest what 
> I can do with it to make this latency low?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/eba21f99-97ee-4b6e-9dcf-5703fca0476cn%40googlegroups.com.


[google-appengine] Re: Can GAE handle requests from the same user in a same instance

2021-04-28 Thread 'David (Cloud Platform Support)' via Google App Engine


Since GAE is serverless, you can’t route requests to a specific instance 
depending on the user. Within GCP, you may be able to use VM’s with a load 
balancer to route requests to specific VM’s depending on the user using the 
URL as a distinction, but it would require a lot of work to implement and 
it can be very pricey.
On Tuesday, April 27, 2021 at 9:09:01 AM UTC-4 jonasr...@gmail.com wrote:

> It's clear said in GAE documentation that  *Any request can be routed to 
> any instance, so consecutive requests from the same user are not 
> necessarily sent to the same instance*.
>
> But what if the requests from the same user need to be always handled in 
> the same instance, and the requests from another user are handled in 
> another instance?
> Is there a way to realize this? Or any other GCP products are targeted to 
> handle this situation?
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/882f065b-0da2-4c52-9560-cd6c7c53eaaan%40googlegroups.com.


[google-appengine] Re: Redirected custom domain from Google does not show in browser address bar

2021-04-26 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,
After properly following mapping custom domains 

 
and waiting for DNS propagation, you should be able to see these domain 
names within your address bar and it should not redirect you to the 
appspot.com domain. Please make sure you configure the cname as instructed 
in the document.

On Monday, April 26, 2021 at 4:09:26 AM UTC-4 Glenn Richard wrote:

> I believe that's what I did originally, but in case I am mistaken, I have 
> tried that again with one of the two purchased Google custom domains. After 
> several steps, the process culminated with "DNS changes can take up to 24 
> hours to take effect. Your SSL certificate will take several minutes to 
> activate." Accordingly, all of this should work within 24 hours, at which 
> time I will check the redirection process and report the results here.
>
> Thanks.
>
> On Sunday, April 25, 2021 at 3:39:36 PM UTC-4 NoCommandLine wrote:
>
>> Hi,
>>
>> >>> and have redirected them to my App Engine project addresses <<<
>>
>> How did you do this? Did you use the 'Add a Custom Domain' under App 
>> Engine > Settings? If you didn't, try that method 
>>
>> On Sunday, April 25, 2021 at 6:09:30 AM UTC-7 Glenn Richard wrote:
>>
>>> I purchased two custom domains from Google, and have redirected them to 
>>> my App Engine project addresses. I performed the steps of setting up DNS 
>>> for both. When I enter either of the custom domains into a browser address 
>>> bar, the redirection does occur, and the page content is displayed in the 
>>> browser window, however the custom domain names do not remain in the 
>>> address bar. Instead, the App Engine addresses are displayed. How can I 
>>> configure these so that the custom domain names remain in the address bar 
>>> instead? It seems that this should go smoothly, since I am using a Google 
>>> product to connect to another Google product, making any external 
>>> verification of ownership unnecessary.
>>>
>>> Thanks.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/164d5064-672b-4b05-9084-7daad13da04dn%40googlegroups.com.


[google-appengine] Re: App Engine - Deployment Failing

2021-04-20 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

This issue could be occurring due to a preoccupied running operation. If 
this is the case, to avoid this error, you may need to add to your build 
steps a ‘waitFor’ 1 
, 2 

. 

If this doesn’t help, I would suggest you to contact Google Cloud Platform 
Support  so they can investigate further.

On Tuesday, April 20, 2021 at 11:35:40 AM UTC-4 stephe...@gmail.com wrote:

> Hello,
>
> I am seeing a strange issue when I am attempting to deploy to App Engine. 
> My deployments have been working for months now with no issues but in the 
> last few days I am getting a strange error. I have redacted some 
> information. 
>
> My deployment command is pretty standard: 
>
> `*gcloud --quiet app deploy app.yaml dispatch.yaml --project=XXX*`
>
> And all looks good until the very end 
>
>
>
>
>
> *Stopping version [].Sent request to stop version [XXX]. This 
> operation may take some time to complete. If you would like to verify that 
> it succeeded, run: $ gcloud app versions describe -s XXX until it shows 
> that the version has stopped.Deployed service [XXX] to [XXX]Updating config 
> [dispatch]failed.ERROR: (gcloud.app.deploy) Apps instance [XXX] is the 
> subject of a conflict: Cannot operate on XXX because an operation is 
> already in progress for  by 4143835e-704c-470a-965d-94087c37ab39. *
>
> The GUID in the error message changes every time and it looks to be 
> referring to the current deployment. If I run ‘gcloud app operations list’ 
> and look for the GUID then I can see it in the list and it has a status of 
> complete. 
>
> It almost as if updating the dispatch config is failing due to the current 
> deployment being in progress but this hasn't been an issue before.
>
> This is all done through our CI system which hasn’t changed. We use the 
> ‘google/cloud-sdk:alpine’ Docker image to preform the deployment. 
>
> At a bit of a loss if I am being honest. 
>
> Any advice or a point in the right direction would be great.
>
> Thanks,
> Stephen 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8c072a3a-1bd6-4c7c-b7e2-c5a656eec8e5n%40googlegroups.com.


Re: [google-appengine] Re: Determining if running local on App Engine Standard with Java 11

2021-04-18 Thread 'David Dadon' via Google App Engine
I did not check but there is the metadata server on AppEngine with Java 
11[1]

So basically if you try to reach 
*http://metadata.google.internal/computeMetadata/v1/project/project-id*  :
- On GCP it would return you the project ID assigned to your project
- It would fail locally

So you could wrap this in a method to tell you if you are running on GCP or 
not.

There are also some Environment variables[2] set by the runtime. It would 
be a more straightforward solution but I don't know if they are also set 
locally or not.

[1] 
https://cloud.google.com/appengine/docs/standard/java11/runtime#metadata_server
[2] 
https://cloud.google.com/appengine/docs/standard/java11/runtime#environment_variables

On Thursday, April 8, 2021 at 11:33:31 PM UTC+2 t...@terratrue.com wrote:

> I have found this works for my case, as null is being returned when 
> running locally in spring boot via maven.
>
>  null = ServiceOptions.getAppEngineAppId()
>
> In any non-static context, using the spring profile is the way to go.
>
> Thanks,
> Tom Harris
> Tech Lead
> TerraTrue, Inc.
> On Wed, Apr 7, 2021 at 11:42 AM 'Elliott (Cloud Platform Support)' via 
> Google App Engine  wrote:
>
>> Hello Tom,
>>
>> Thank you for your question regarding 
>> “SystemProperty.environment.value()” not being available for Java 11. Since 
>> upgrading to java 11, the value output of this code is always just null.
>>
>> For the community, this code is used to know if you are running the code 
>> locally or out in the cloud. You may see the details here 
>> 
>> .
>>
>> You would like to know the equivalent code for App Engine 11 because 
>> there doesn't seem to be any documentation for this feature at all.
>>
>> I was able to verify your claim in public documentation. The information 
>> I researched is very old and does not appear to be included in the Java 11 
>> Runtime as you need it.
>>
>> So this is an opportunity to request this functionality but to add value 
>> to this feature request, how would you implement it?
>>
>> We may use your ideas to get this done but please note that there is no 
>> guarantee that it will be implemented but we will take a look and consider 
>> your request seriously.
>>
>>
>> On Wednesday, April 7, 2021 at 10:45:20 AM UTC-4 t...@terratrue.com 
>> wrote:
>>
>>> Hi all:
>>>
>>> I am in the process of upgrading all our App Engine 8 services to 11, 
>>> but I am running into an issue. We use the 
>>> `SystemProperty.environment.value()` 
>>> to determine if we are running locally on one of our developer machines or 
>>> out in the cloud, however since upgrading to java 11, the value is always 
>>> just null.
>>>
>>> What is the equivalent code for App Engine 11? There doesn't seem to be 
>>> any documentation for this at all.
>>>
>>> Thanks,
>>> Tom Harris
>>> Tech Lead
>>> TerraTrue, Inc.
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-appengi...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/3a358b5b-dbef-4f53-9685-f94ec2cb9033n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/40d510d2-e4b4-4570-9146-d3159ef64d7an%40googlegroups.com.


[google-appengine] Re: How to allow Proxy-Authorization header in request and response on GAE

2021-04-14 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

The “Proxy-Authorization” header is stripped for security reasons.

A possible workaround would be moving from Standard to Flexible 
environment. Bear in mind the different headers' limitations for App Engine 
Flexible 

 
if you decide to move. You could also try creating a feature request 
 
about this within our Issue Tracker. Please make sure to change the type 
from bug to feature request if you decide to do so.

On Wednesday, April 14, 2021 at 10:29:37 AM UTC-4 netd...@gmail.com wrote:

>
> Hi,
> is it possible to allow some restricted HTTP headers on GAE?
>
> I need to allow 'Proxy-Authorization' header in request on our app and in 
> response from our app. 
>
> We have a java spring boot application on GAE standard environment and 
> according to 
> https://cloud.google.com/appengine/docs/standard/go/reference/request-response-headers
>   
> is header 'Proxy-Authorization' always removed from request.
>
> Can I allow this header? 
>
> Thanks 
> Jaromir
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b83e004a-eec9-4d37-87c4-c18e821464fen%40googlegroups.com.


[google-appengine] Re: Server side GTM using App Engine

2021-04-12 Thread David Loake
Understood, thanks

On Friday, April 9, 2021 at 7:28:04 PM UTC+1 wus...@google.com wrote:

> the App Engine standard is only used for testing.. Once being deployed to 
> the production, 3  instances with 1 vCPU, 0.5 GB memory, 10 GB disk and App 
> Engine Flex insensate are required , you can only increase or reduce the 
> amount of the instance rather than modify the container. 
>
> On Thursday, April 8, 2021 at 5:33:31 PM UTC-4 davidloak...@gmail.com 
> wrote:
>
>> Hi - I followed this doc in order to setup GTM server side In App Engine:
>> https://developers.google.com/tag-manager/serverside/script-user-guide
>>
>> Using this command as per the instructions runs a script to auto 
>> configure GTM:
>> bash -c "$(curl -fsSL 
>> https://googletagmanager.com/static/serverjs/setup.sh)"
>>
>> However, that script sets up a Flexible instance of App Engine - I only 
>> need a Standard instance. I would edit the yaml file but that script seems 
>> to delete it (GCP support confirmed this earlier).
>>
>> I've setup a new App Engine instance - F1 - my question is how do I 
>> configure it with the configuration reference provided in GTM. I think the 
>> relevant bit of the script above is this:
>>
>> prompt_container_config() { while [[ -z "${container_config}" || 
>> "${container_config}" == '?' ]]; do suggested="$(generate_suggested 
>> "${cur_container_config}" "Required")" printf "Container Config 
>> (${suggested}): " read container_config if [[ -z "${container_config}" ]]; 
>> then container_config="${cur_container_config}" fi if [[ 
>> "${container_config}" == '?' ]]; then echo "${CONTAINER_CONFIG_HELP}" elif 
>> [[ -z "${container_config}" ]]; then echo " Container config cannot be 
>> empty."
>>
>> So basically, what command can I run in gcloud shell in order to set the 
>> container config reference provided in GTM.
>>
>> Or - can I alter that script 'simply' to have it configure a Standard 
>> instance rather than a Flexible one.
>>
>> Any advice gratefully received.
>>
>> Cheers
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9a63b117-0de0-4374-b66b-bd951f6cb153n%40googlegroups.com.


[google-appengine] Server side GTM using App Engine

2021-04-08 Thread David Loake
Hi - I followed this doc in order to setup GTM server side In App Engine:
https://developers.google.com/tag-manager/serverside/script-user-guide

Using this command as per the instructions runs a script to auto configure 
GTM:
bash -c "$(curl -fsSL 
https://googletagmanager.com/static/serverjs/setup.sh)"

However, that script sets up a Flexible instance of App Engine - I only 
need a Standard instance. I would edit the yaml file but that script seems 
to delete it (GCP support confirmed this earlier).

I've setup a new App Engine instance - F1 - my question is how do I 
configure it with the configuration reference provided in GTM. I think the 
relevant bit of the script above is this:

prompt_container_config() { while [[ -z "${container_config}" || 
"${container_config}" == '?' ]]; do suggested="$(generate_suggested 
"${cur_container_config}" "Required")" printf "Container Config 
(${suggested}): " read container_config if [[ -z "${container_config}" ]]; 
then container_config="${cur_container_config}" fi if [[ 
"${container_config}" == '?' ]]; then echo "${CONTAINER_CONFIG_HELP}" elif 
[[ -z "${container_config}" ]]; then echo " Container config cannot be 
empty."

So basically, what command can I run in gcloud shell in order to set the 
container config reference provided in GTM.

Or - can I alter that script 'simply' to have it configure a Standard 
instance rather than a Flexible one.

Any advice gratefully received.

Cheers

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/80ced3db-d938-40ca-8aa2-90f53f0d61f0n%40googlegroups.com.


[google-appengine] Re: Google Cloud Platform Core Services

2021-04-01 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

Do you have any specific question about GCP or was this post created by 
mistake?
On Thursday, April 1, 2021 at 10:11:48 AM UTC-4 infotec...@gmail.com wrote:

> Before we do a deep dive into Google Cloud Platform core services 
> , let's have a tour to introduce 
> all of the most important core services.
>
> It will also allow you to choose the best fit for your use case.
>
> *Google Cloud Platform Core Services:*
> Google divides the services into the following logical groups:
>
>- Computing and hosting services
>- Storage services
>- Networking services
>- Big data services
>- Machine learning (ML) services
>- Identity services
>
> have a look at each of Google Cloud Platform Core Services 
> 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9c348e86-78c5-4e9b-a43f-7c5b02dd46can%40googlegroups.com.


[google-appengine] Re: Service in multiple languages

2021-03-25 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

You can deploy different services/versions and communicate internally when 
using App Engine Flex, as Flex instances are similar to GCE instances you 
can configure Firewall rules and add a network tag on a VPC network to 
control access to your services. Please look at this document 
for
 
a reference on how to configure your app.yaml file to specify a network 
tag. This will work for Flex to Flex services. 

For App Engine Standard, you can send targeted HTTP requests to communicate 
with another service. Please take a look at our documentation 

 
about this specifically for App Engine Standard which may list other 
alternatives. 

App Engine services can also communicate using Cloud Pub/Sub, which 
provides reliable asynchronous many-to-many messaging between processes.

On Thursday, March 25, 2021 at 11:48:15 AM UTC-4 robbe...@gmail.com wrote:

> Hi.
>
> It is possible to deploy an API built in two different languages (Node.js 
> and Python here) as one service?
>
> If not, how fast is it to communicate between two services compared to it 
> with external server?
>
> According to the previous post and documentation below, I think it should 
> be deployed as two separate services and communicate each other through an 
> HTTP invocation.
>
> However, I'd like to know some solutions to the issue if exists, as it is 
> important for my app to response to client immediately.
>
> Thank you.
>
>
> Previous post: Multiple languages in the same application
> https://groups.google.com/g/google-appengine/c/wZZAgKN8BwU
>
> Google Documentation (especially "App Engine Services as microservices" 
> section):
>
> https://cloud.google.com/appengine/docs/standard/python/microservices-on-app-engine
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6399c1e4-26a1-4440-bed3-4e02438b2583n%40googlegroups.com.


Re: [google-appengine] Re: Not able to call cloud firestore and cloud task api from app engine flexible environment

2021-03-23 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

I would recommend you to follow the snippet provided in here 
.
 
Also, please take a look at this Issue Tracker 
 which may provide with some 
help regarding firewall rules. Now, I’m providing you this information as 
Google Groups is reserved for conceptual discussions only and not meant to 
be a place to troubleshoot issues. If none of these links provide you with 
information to get it working, I would recommend you to directly contact Google 
Cloud Platform Support  since they would 
be able to inspect your project and troubleshoot the issue with you. Please 
note that unless you are in a free trial, you will require to purchase a 
support package. If you are on a free trial, you may be able to receive free 
trial support .
On Tuesday, March 23, 2021 at 1:07:45 AM UTC-4 ashikr...@gmail.com wrote:

> Basically I not getting any error when calling the required function to 
> create a task or the function for crud on firestore.
> After a certain time, periods request is killed by the server(app engine).
>
> No, I have not created public issues for the same.
>
> On Tue, Mar 23, 2021 at 2:46 AM 'jlibera' via Google App Engine <
> google-a...@googlegroups.com> wrote:
>
>> Hi, 
>>
>> Thanks for providing this information about your app.
>>
>> Regarding your error, are the timeouts still reoccurring? How often do 
>> these timeouts occur (daily, intermittently, etc.)? It would also be 
>> helpful to have a screenshot of the error message; this will provide us 
>> details of the necessary steps for mitigating this issue for your 
>> application.
>>
>> For readability and troubleshooting purposes, it would be beneficial to 
>> bring this issue to the App Engine team via Issue tracker as provided from 
>> the previous message. Have you managed to open up a public issue tracker 
>> ticket already for your issue?
>>
>> On Thursday, March 18, 2021 at 9:47:01 AM UTC-4 ashikr...@gmail.com 
>> wrote:
>>
>>> I am using the flask application on the google app engine flexible 
>>> environment.
>>>
>>> 1. I want to create a task whenever some URL has been hit by a user and 
>>> queues should hit the google app engine endpoint for executing the task. 
>>> For example, I am appending the code here
>>> The same code is working fine and creating a task if executed from 
>>> another server
>>>
>>> import json
>>> import datetime
>>> from google.cloud import tasks_v2beta3
>>> from google.protobuf import timestamp_pb2
>>>
>>> import json
>>> import datetime
>>> from google.cloud import tasks_v2beta3
>>> from google.protobuf import timestamp_pb2
>>>
>>>
>>> class CloudTaskManager:
>>> def __init__(self):
>>> self.client = tasks_v2beta3.CloudTasksClient()
>>>
>>> def create_task(self, project, queue, location, payload=None, 
>>> in_seconds=5):
>>> parent = self.client.queue_path(project, location, queue)
>>>
>>> task = {
>>> 'app_engine_http_request': {
>>> 'http_method': tasks_v2beta3.HttpMethod.POST,
>>> 'relative_uri': '/api/v1/rating/cloud_task_handler',
>>> 'headers': {
>>> 'Content-Type': 'application/json',
>>> 'Org_Name': 'organization1'
>>> },
>>> 'body': json.dumps(payload).encode()
>>> }
>>> }
>>>
>>> if in_seconds is not None:
>>> d = datetime.datetime.utcnow() + 
>>> datetime.timedelta(seconds=in_seconds)
>>> timestamp = timestamp_pb2.Timestamp()
>>> timestamp.FromDatetime(d)
>>> task['schedule_time'] = timestamp
>>>
>>> response = self.client.create_task(parent=parent, task=task)
>>> return response
>>>
>>> 2. Another case is that I want to use cloud firestore API that is in 
>>> native mode and the code snippet are as below.
>>>cred = credentials.Certificate('name.json')   
>>> # cred = credentials.ApplicationDefault()
>>> if not firebase_admin._apps:
>>> firebase_admin.initialize_app(cred, {
>>>   'projectId': 'project-id',
>>> })
>>> db = firestore.client()
>>> collection_refs = db.collection('collection-name')
>>> documents = collection_refs.stream()
>>> for doc in documents:
>>> return doc.to_dict()
>>>
>>> On Thu, Mar 18, 2021 at 1:45 AM 'jlibera' via Google App Engine <
>>> google-a...@googlegroups.com> wrote:
>>>
 Hi,

 Would you be able to please provide a screenshot or full log the error 
 message/response you are seeing? This will help to better visualize and 
 diagnose as to why these are occurring in the first place. Better yet, I 
 would suggest to open an public issue tracker ticket [1] to look into your 
 inquiry further.

 Would you be able 

[google-appengine] Re: AppEngine Firewall does not allow access from other AppEngine Flexible IPs

2021-03-18 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

I see you mentioned apps are running in App Engine flexible and the 
document you are using is meant for App Engine standard. Please refer to this 
document 
 
which is intended for App Engine flexible. However, I do see you have the 
relevant IP addresses for flexible added to your firewall rules 0.1.0.40 
and 10.0.0.1.
How are you trying to communicate between these two services? The simplest 
approach for communicating with your App Engine service is to send targeted 
HTTP requests. Please take a look at our documentation 

 
about this in order to learn more.
On Wednesday, March 17, 2021 at 3:46:19 PM UTC-4 daniel...@gmail.com wrote:

> I set the Firewall rules according to this:
> https://cloud.google.com/appengine/docs/standard/ruby/creating-firewalls
>
>
> Allow 0.1.0.40 
> Allow 10.0.0.1
> Allow 10.1.0.41
> Deny *
>
> The default is `Deny` 
>
> I can't connect from other AppEngine Flexible services to this service.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ae585535-a407-4e31-a300-1f2f96f7e36bn%40googlegroups.com.


[google-appengine] Re: Google App Engine with Postgres & Go - Unable to connect to DB

2021-02-24 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

Please note that Google Groups is reserved for conceptual discussions that 
don’t involve debugging. I understand you may know this already but just 
ran out of options to get additional assistance other than Stack Overflow. 
In order for you to get proper assistance, I would recommend you to check 
out Google Cloud Platform Support.  If 
you happen to be on a free trial, you may be eligible for free support 
(click on free trial) .

Also, please take a look at this working example of gae/go and postgresql 

 
which also uses pgx as it may be helpful. This is part of the Cloud SQL 
quick start so should work almost out of the box (I say almost because you 
still need to add your own cloud sql instance information).

On Friday, February 19, 2021 at 2:06:13 PM UTC-5 brycech...@gmail.com wrote:

> Hello,
>
> I am having a lot of trouble deploying my project to GAE and connecting to 
> Postgres Cloud SQL. I tried Stack Overflow but no such luck.
>
> postgresql - Go API on Google App Engine with Postgres - Stack Overflow 
> 
>  
>
> My Go program MWE can connect to postgres on my local machine but it 
> cannot connect when deployed. I have provided a rather robust description 
> of my Code and errors on SO. I don't know where else to go to ask for help. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2c8015fa-d0f7-4b63-a6e7-7d489916fb64n%40googlegroups.com.


[google-appengine] Give IAP permission to App engine standard services

2021-02-18 Thread David Pomeroy
Hello,

I have 2 services deployed in the standard app engine. These services are 
both
python 3.8 django projects. They share data between each other via an API 
interface.
With my current IAP settings, service 1 is not authorised to make requests 
to service 2
due to the request header not having the correct token.

What is the best way to give permissions to the services within the same 
App engine so that they can send API requests to each other?

I thought they would have had the permissions granted if the app engine 
service account
has the role of IAP-secured web app user.

Do I need to create JWT authentication tokens within the API code in each 
service?
I have read this guide:
https://cloud.google.com/iap/docs/signed-headers-howto

Regards
David

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f048cf8d-026f-487b-997f-0c104c3b5b32n%40googlegroups.com.


Re: [google-appengine] Re: Cron job targeting a specific service returns status 400

2020-12-16 Thread David Pomeroy
Hi Elliott,
I have been able to narrow down the problem. There is a mismatch
between the app URL with a defined service name and the cron job "host"
used.
I can explain it as follows:
if you have an app.yaml file such as this:

runtime: python38

handlers:
# This configures Google App Engine to serve the files in the app's static
# directory.
- url: /static
  static_dir: static/

# This handler routes all requests not caught above to your main app. It is
# required when static routes are defined, but can be omitted (along with
# the entire handlers section) when there are no static files defined.
- url: /.*
  script: auto
#END OF APP.YAML
-
and a cron.yaml file that looks like this:
cron:
  - description: "Example cron job"
url: /myjob/
schedule: every 2 minutes
#END OF CRON.YAML

The App Engine cron job will make a request to the "resource": "/myjob/"
and "host": "projectid.ew.r.appspot.com"
as seen in the protoPayLoad in the log file for the app on the App Engine.
This works fine as the app url is "projectid.ew.r.appspot.com"

If you give the app a service name such as service1 in the app.yaml file by
adding:
service: service1

and then target that service in the cron.yaml file which looks like this:
cron:
  - description: "Example cron job"
url: /myjob/
schedule: every 2 minutes
target: service1

Then, the app is deployed to service1-dot-projectid.ew.r.appspot.com
But the cron job uses a "resource":/myjob/ and "host": "
service1.projectid.ew.r.appspot.com"

There is a mismatch between the app url and the host the cron job uses. The
app has -dot- between the service and the project name
while the cron looks for service1.projectid.ew.r.appspot.com with just "."
instead of "-dot-"

What is the best way to ensure the cron job uses the right "host" URL?
Preferably "-dot-".

Regards
David



On Tue, Dec 15, 2020 at 7:38 PM 'Elliott (Cloud Platform Support)' via
Google App Engine  wrote:

> Hello,
>
> I understand that you have a problem with your application. Although
> Google Groups is meant for general discussions, we may still be able to
> guide you, at least a little bit.
>
> To move things forward, would you be able to share some redacted logs
> about the 400 error? I was able to find this
> <https://developer.mozilla.org/en-US/docs/Web/HTTP/Status> article with
> basic information.
>
> Client error responses:
> 400 Bad Request
> The server could not understand the request due to invalid syntax.
>
>
>
> On Tuesday, December 15, 2020 at 12:04:59 PM UTC-5 da...@stoicstrats.com
> wrote:
>
>> Hi have a Python 3.8 Django app deployed to GAE standard with a working
>> cron job that
>> executes an endpoint. The endpoint returns a 200 when everything goes
>> well.
>> The app.yaml file does not define the service name and is the default
>> service.
>> there is only one job in the cron.yaml and does not specify a target
>> service.
>>
>> When I specify the service name in the app.yaml and specify the cron job
>> to
>> target that same service, it executes the endpoint but returns a status
>> 400
>> and doesn't execute the code in the endpoint function.
>>
>> What is causing the status 400?
>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-appengine/YShxDzvhd28/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-appengine+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/e66be266-5356-45f6-971b-520cdca4b48an%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/e66be266-5356-45f6-971b-520cdca4b48an%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CACux6Ck0f0BPtTGjE365RzATqLO1xrQfXnkqwptXwo7Zcbuc1Q%40mail.gmail.com.


[google-appengine] Cron job targeting a specific service returns status 400

2020-12-15 Thread David Pomeroy
Hi have a Python 3.8 Django app deployed to GAE standard with a working 
cron job that
executes an endpoint. The endpoint returns a 200 when everything goes well.
The app.yaml file does not define the service name and is the default 
service.
there is only one job in the cron.yaml and does not specify a target 
service. 

When I specify the service name in the app.yaml and specify the cron job to
target that same service, it executes the endpoint but returns a status 400
and doesn't execute the code in the endpoint function.

What is causing the status 400?


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/31530d54-1153-491f-b143-044fe70032adn%40googlegroups.com.


Re: [google-appengine] Broke GCS bucket by deploying a container to an older classic appengine project?

2020-09-16 Thread 'David (Cloud Platform Support)' via Google App Engine


I believe you may have ended in the wrong support channel. Basic billing 
GCP support is provided to everyone. For questions like these that require 
project’s inspection to investigate an issue about a specific product, in 
this case App Engine and/or GCS, even though a billing issue may be a 
possible case, it needs to be assessed by a technical support agent.  

Looking at your questions, note that App Engine has its own quota page and 
also there’s the main quota page that may have other related quotas as well 
not displayed within the App Engine quota page but that are being used by 
your application. Not entirely sure if this was a GAE quota, could have 
been a GCS quota as well. I do agree that if a quota was being exceeded, it 
should have been displayed either in the App Engine quota page or the main 
quota page, and that “internal” is not descriptive enough to know what was 
happening. Usually, internal error comes with an error code as well, but I 
can’t confirm or not that this is the case with what you were experiencing.

If you or anyone else ever experiences something like this again, I would 
recommend you to try to check if there’s an error code first and google it. 
If there’s no information about it, then it would be a good idea to contact GCP 
technical support <https://cloud.google.com/support#tab2> in order to get a 
speedy and accurate response. However, you would need to sign up for a 
support plan or if you are in a free trial 
<https://cloud.google.com/free/docs/gcp-free-tier#free-trial>, you are able 
to get free trial technical support 
<https://cloud.google.com/free/docs/gcp-free-tier#support> as well. Billing 
support would not be able to provide any help for these types of issues. 
Additionally, if you ever notice an issue with any GCP product, and you 
believe it’s a general issue on Google’s end and not related to your 
specific configuration, you are able to create an Issue Tracker while the 
issue is reproducible and if determined that the issue qualifies as a 
product bug, an investigation would be launched. Please note that Issue 
Tracker <https://cloud.google.com/support/docs/issue-trackers> is meant to 
report general issues and feature requests related to products within the 
GCP suite.
On Monday, September 14, 2020 at 3:31:28 PM UTC-4 ph0...@gmail.com wrote:

> GCP support was not able to help me. I eventually managed to find the 
> issue by using Audit Logs to view all GCS accesses, and turns out one of my 
> apps was misbehaving and trying to read a file every second.
>
> It still isn't clear to me why:
> 1. It gave me quota limit errors instead of just charging my billing 
> account
> 2. Why the limit being hit wasn't shown on any page
> 3. why it was failing in some strange non-descriptive "internal error" way
>
> It seems like it was actually hitting some internal "rate limit" that not 
> surfaced at all in GCP. Which is strange for a Cloud which is meant to be 
> able to scale up without limits.
>
> On Monday, September 14, 2020 at 2:59:39 PM UTC-4 David (Cloud Platform 
> Support) wrote:
>
>> Hello,
>>
>> This error can show up due to various matters usually related to billing 
>> or a quota being exceeded. I would recommend you to contact GCP support as 
>> they would be able to inspect your project and tell you the reason you are 
>> seeing this error message.
>> On Tuesday, September 8, 2020 at 12:39:35 AM UTC-4 ph0...@gmail.com 
>> wrote:
>>
>>> Nvm, this is still happening. The closest I can find is this:
>>>
>>> https://stackoverflow.com/questions/61052413/google-cloud-storage-quota-hit-how
>>> But I'm not anywhere near my limit.
>>>
>>> On Saturday, August 15, 2020 at 4:38:32 PM UTC-4 Ehsan Kia wrote:
>>>
>>>> For what it's worth, it got fixed the next day as the quotas reset, 
>>>> even though no quota showed as past it's limit and even though I had 
>>>> billing enabled. So if you run into the same issue, just deploy the right 
>>>> thing again and wait a day.
>>>>
>>>> On Sat., Aug. 15, 2020, 4:11 p.m. Ehsan Kia,  wrote:
>>>>
>>>>> 3 days ago, I went to deploy a newer AppEngine project using `gcloud 
>>>>> app deploy` but forgot that the default project was set to an older 
>>>>> project.
>>>>> I have since reverted that by redeploying the older project, but my 
>>>>> Google Cloud Storage seems to be completely broken.
>>>>>
>>>>> It does not let me access any of the files, either from the UI or 
>>>>> gsutil. It throws "Internal server error", and on gsutil it gives me "The 
>>>>> App Engine application do

Re: [google-appengine] Can we create a billing account without turning on the free $300/90 days credit?

2020-09-16 Thread 'David (Cloud Platform Support)' via Google App Engine


As per the free trial documentation 
, the free trial will 
start automatically when you set up your billing account so you must be 
prepared to use your free trial when doing this.
On Tuesday, September 15, 2020 at 7:21:59 PM UTC-4 NP wrote:

>  then create a billing account there 
>  and see if you can do 
> so w/o activting the Free Trial <<<
>
> Right now, it looks to me like it will activate it. I don't want to 
> complete the step in case it does activate the free trial (since there's no 
> way to turn it off). Is there any way to confirm if it will or will not 
> activate the free trial?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7dd76c05-b8e7-4ee3-845e-337e6ba45cbdn%40googlegroups.com.


Re: [google-appengine] Broke GCS bucket by deploying a container to an older classic appengine project?

2020-09-14 Thread 'David (Cloud Platform Support)' via Google App Engine
Hello,

This error can show up due to various matters usually related to billing or 
a quota being exceeded. I would recommend you to contact GCP support as 
they would be able to inspect your project and tell you the reason you are 
seeing this error message.
On Tuesday, September 8, 2020 at 12:39:35 AM UTC-4 ph0...@gmail.com wrote:

> Nvm, this is still happening. The closest I can find is this:
>
> https://stackoverflow.com/questions/61052413/google-cloud-storage-quota-hit-how
> But I'm not anywhere near my limit.
>
> On Saturday, August 15, 2020 at 4:38:32 PM UTC-4 Ehsan Kia wrote:
>
>> For what it's worth, it got fixed the next day as the quotas reset, even 
>> though no quota showed as past it's limit and even though I had billing 
>> enabled. So if you run into the same issue, just deploy the right thing 
>> again and wait a day.
>>
>> On Sat., Aug. 15, 2020, 4:11 p.m. Ehsan Kia,  wrote:
>>
>>> 3 days ago, I went to deploy a newer AppEngine project using `gcloud app 
>>> deploy` but forgot that the default project was set to an older project.
>>> I have since reverted that by redeploying the older project, but my 
>>> Google Cloud Storage seems to be completely broken.
>>>
>>> It does not let me access any of the files, either from the UI or 
>>> gsutil. It throws "Internal server error", and on gsutil it gives me "The 
>>> App Engine application does not have enough quota".
>>> i see 429 when trying to access from the API and 403 in other places. 
>>> Trying to transfer the files or download the files or anything just 
>>> continuously throws errors.
>>> I don't actually see any quotas that are full, and it doesn't matter 
>>> anyways because I have billing enabled and nowhere close my budget limit. 
>>> Not sure what "quota" this is referring to.
>>> Nothing seems to fix it, the whole storage bucket seems to be locked up 
>>> and erroring. Anyone have any idea how I can recover this?
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to google-appengi...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-appengine/ba0c56bb-d7fa-4739-b83d-313a20ba5209o%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/30d4aba7-0842-4643-87cc-a9935631c4c4n%40googlegroups.com.


[google-appengine] Re: Obtaining refresh_token through offline_access scope to be used with IAP

2020-09-01 Thread 'David (Cloud Platform Support)' via Google App Engine
This documentation 
<https://developers.google.com/identity/protocols/oauth2/web-server#offline> 
about refreshing an access token (offline access) using Google's 
authorization server could be helpful. 

On Monday, August 31, 2020 at 8:26:25 AM UTC-4 jose.c...@iota.org wrote:

> I am using IAP to protect a Web API Application. I have enabled a service 
> account to get access to the APIs through an id_token. I am able to obtain 
> an id_token (JWT) by signing a JWT (using the keys of my service account) 
> with the following assertions
> {
>  "iss": "xx.iam.gserviceaccount.com", 
>  "sub": "xx.iam.gserviceaccount.com", 
>  "aud": "https://oauth2.googleapis.com/token;, 
>  "target_audience": "my_application_client_id", 
>  "iat": 1598702078, 
>  "exp": 1598705593
>  }
>
> and then Posting to the token service as follows
> curl --location --request POST 'https://oauth2.googleapis.com/token' \ 
> --header 'Content-Type: application/x-www-form-urlencoded' \
>  --data-urlencode 'assertion=’
>  --data-urlencode 'grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer' 
> \ 
> --data-urlencode 'scope=openid’ 
>
> Now I would like to also obtain a refresh_token and has been impossible. I 
> have tried with *scope=openid offline_access* but no luck. Is 
> *offline_access* implemented in the Google Auth Server? Any other 
> mechanism to obtain a refresh_token?
>
> Thank you very much
>
> *IOTA Foundation*
> c/o Nextland
> Strassburgerstraße 55
> 10405 Berlin, Germany
>
> Board of Directors: Dominik Schiener, David Sønstebø, Serguei Popov, Navin 
> Ramachandran
> ID/Foundation No.: 3416/1234/2 (Foundation Register of Berlin)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9687fedb-925a-42ef-9c26-439febdf168fn%40googlegroups.com.


[google-appengine] Re: Getting an error in the php zip module

2020-08-24 Thread 'David (Cloud Platform Support)' via Google App Engine


Could you specify if you are using App Engine standard or flexible?
Zip should be enabled by default in both App Engine Standard 

 
and Flexible 
.
  
However, if you believe this is a Wordpress specific issue, you may benefit 
from asking this within the Wordpress Community Forums 
.
On Saturday, August 22, 2020 at 2:53:58 PM UTC-4 suhenda...@gmail.com wrote:

> Hi,
>
> Firstly can I thank you for offering this community support - it's 
> invaluable.
>
> My question is how to enable the php zip module on php runtime?
>
> Many thanks in advance for your help.
>
> Suhendar
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/bba79df3-8385-465d-ae7f-42851676bfbfn%40googlegroups.com.


[google-appengine] Re: Google BLOB service stopped to upload files in US region,

2020-08-19 Thread 'David (Cloud Platform Support)' via Google App Engine


Jason, if you are still experiencing this issue and you believe it’s an 
issue on our end, you are able to create a private Issue Tracker 
 
and provide information such as Project ID. If determined this issue is not 
only individually affecting you, an investigation will be launched. 
Otherwise, you are also able to open a support ticket with GCP support 
 if you have access to a support 
package.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f76ec6cb-1b9e-4928-99d2-d10f44738c2ao%40googlegroups.com.


[google-appengine] Re: Additional containers in the Appengine Managed VM environment

2020-06-27 Thread 'David (Google Cloud Support)' via Google App Engine
I do not believe that there is a way to inject additional containers in an 
App Engine Flex instance when reviewing documentation. It seems that the 
containers that an instance would have would be the container that includes 
the runtime or that runs the source code 

 and 
the common ones listed as fluentd_logger, memcache_proxy and nginx_proxy 

 
as you have mentioned.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/af2f2577-d59b-42a5-b004-503380cd32abo%40googlegroups.com.


[google-appengine] Re: App Engine not mapping custom domains

2020-06-22 Thread 'David (Cloud Platform Support)' via Google App Engine
I would recommend re-mapping the custom domain 
.
 
If after doing this, you are still not able to get it working, you should 
probably reach out to GCP support  as 
they would be able to inspect your project and work with you to find out 
what could be causing the issue.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6b62be97-d0c2-4596-81ac-29627c109648o%40googlegroups.com.


[google-appengine] trouble getting Google-manage SSL certificate

2020-06-16 Thread David Manz
Hi,

I am trying to point a domain (registered with Google Domains) at my App 
Engine App.  I followed the steps in the GCP console for adding a custom 
domain, but it's not working.  A screenshot of my settings is attached.

I noticed that Google Domains is appending a dot (".") to the end of the 
CNAME record in my DNS, and it does not appear that the CNAME is actually 
being set.

https://dnschecker.org/all-dns-records-of-domain.php?query=52outs.com=CNAME

Can anyone help me figure out what I'm doing wrong?

David

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3fb8c12d-f94d-4d87-825b-bf21dcebd0f9o%40googlegroups.com.


[google-appengine] Re: App Engine internal implementations

2020-06-14 Thread David Snyder
Hello Aviad -


I read your article, 
https://medium.com/faun/dry-helm-charts-for-micro-services-db3a1d6ecb80, 
and thought it was very substantive.

I am supporting a program that is developing system following a 
micro-services based architecture, containerizing code deliveries, using 
Kubernetes and Helm.

I am very interested in using an umbrella chart to manage the system as a 
whole and had some questions.

You indicate in your article, that the use of an umbrella chart allows 
developers to continue to deploy services independently if they would like 
to as well as enabling deployment and management of the system as a whole.  
Can you expand on this?   How does this approach enable one to deploy 
services independently.

Secondly, developers have asked how an umbrella chart deals 
with/accomodates the values.yaml files of each specific microservice.  Do 
you have any insight into this?

a good email for me is:  david_snyde...@yahoo.com.

Thank you!  VR,

Dave




On Thursday, April 14, 2016 at 4:57:18 PM UTC-4, Aviad Moreshet wrote:
>
> Hello,
>
> I'm making a research on distributed systems and would like to gather some 
> information about App Engine's underlying implementations, especially in 
> the following topics:
>
> Architecture, Underlying processes, Communication, Synchronization, 
> Consistency and Replication, Fault Tolerance and Security of course.
>
> I've been googling for hours but all the info I found is about the 
> features the system offers instead of what I'm looking for.
>
> Any intel would be appreciated, so don't hesitate.
>
> Thanks for helpers!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0040e0bb-8998-44cf-baf9-bc66acd54550o%40googlegroups.com.


[google-appengine] Re: App Engine Deployer role is missing permissions to carry out the --stop-previous-version

2020-06-04 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

You are able to create a feature request 
 
for each of your inquiries:

1-To introduce a finer grained permissions that only includes .stop

2-For the App Engine Deployer role to support the --stop-previous-version 
argument

Then you would just need to follow those feature requests for any updates.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/92f824c7-b8d0-40d1-8759-fa463fcd2c78o%40googlegroups.com.


[google-appengine] Re: Google Cloud Build - build.yaml & app.yaml in a sub directory not building correct source

2020-06-03 Thread 'David (Cloud Platform Support)' via Google App Engine


Here is the official documentation of dir 
, not sure if 
you can escape up. However, it’s recommended to have the app.yaml in the 
same directory where the main is. Maybe if you could provide more 
information about what you are trying to accomplish with having this 
specific setup, there could be other different aproaches. For example, If 
you want is to deploy a stage and prod, you could just have one 
cloudbuild.yaml file at root specifying different deployments, and have a 
prod and a stage directory under it having the source files in each of 
their respective directory.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/69979ef6-9c93-4a7e-9bb7-5a1571948f4f%40googlegroups.com.


[google-appengine] Re: Google Cloud Build - build.yaml & app.yaml in a sub directory not building correct source

2020-06-01 Thread 'David (Cloud Platform Support)' via Google App Engine
When you use the dir field in a build step, you are setting the working 
directory to its value and in this case, assuming your source files are not 
in that working directory and from what you have mentioned that it’s 
deploying empty, it’s not finding your source files and you can check this 
if you go to your deployed application versions, under “diagnose” right 
click on tools -> source and you will be able to see the files that were 
deployed.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0abaa82e-d36b-4627-8ce5-c9d146897eb5%40googlegroups.com.


[google-appengine] Re: Unable to export to Monitoring service because: GaxError RPC failed, caused by 3: One or more TimeSeries could not be written

2020-05-25 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

1-This is an error from the Stackdriver logging which I have seen before 
but it was fixed in the past.

2-There is a possibility that both of these are related if they started 
happening about the same time with no change on your end.

In order to investigate further, please create a private Issue Tracker 
 
or contact Google Cloud Platform Support 
.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/17432984-a17c-491a-9d56-83f76790c482%40googlegroups.com.


[google-appengine] Re: Would jasper report work on AppEngine standard

2020-05-25 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

Since Java 8 on App Engine 
 
supports Java's native image manipulation classes such as AWT 
 and 
Java2D 
,
 
it should be possible to run Jasper Reports.

Please see these links 1 ,2 

 
with possible issues you might encounter when attempting to do this. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/bb8e8e9c-7eac-41d7-a220-eb7a95adaccd%40googlegroups.com.


[google-appengine] Re: Blobstore API failing to init blobs in local dev environment

2020-05-11 Thread 'David (Cloud Platform Support)' via Google App Engine


You probably need to import apiproxy_stub_map and register the file service 
stub:

from google.appengine.api import apiproxy_stub_map

from google.appengine.api.files import file_service_stub

See This Document 

 
for more information about how you could register the file service stub.

Please note that this question is better suited for Stack Overflow since 
Google Groups is meant for conceptual discussions about GCP products and 
not for programming issues.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a8dd92e1-80b8-4802-bf6f-044a35139287%40googlegroups.com.


Re: [google-appengine] Re: Google Cloud Run Container Status

2020-05-08 Thread 'David (Cloud Platform Support)' via Google App Engine


You mentioned you tried delaying port binding and it did not work, can you 
explain what happens exactly? As Cloud Run should start sending traffic to 
your application once you start listening on the port number so if you are 
delaying the port binding, it should work in your benefit.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7008bf2f-c092-4fcf-aad6-599fb2f518eb%40googlegroups.com.


[google-appengine] Re: Can't add *.netlify.app to Authorized urls

2020-05-08 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

If you are referring to Credentials ->Create Credentials->OAuth Client 
ID->Web Application, I’m able to add “*.netlify.app” to my "Authorized 
redirect URIs" and "Authorized JavaScript origins”, maybe posting a 
screenshot or video showing the error would give the community a better 
change in helping you identifying the issue but please make sure that no 
personal information is shown including project ID.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7b622154-2750-4e6b-9e6a-2845c16b1a7b%40googlegroups.com.


[google-appengine] Re: How to mapping default services to other services ?

2020-05-08 Thread 'David (Google Cloud Support)' via Google App Engine
Services are listed from top to bottom based on how recently they were 
deployed, meaning that recently deployed services appear at the top and 
older services appear at the bottom.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c131a89d-be5f-4a6f-8b91-e5eecfa8378b%40googlegroups.com.


[google-appengine] Re: Can't deploy flexible

2020-05-06 Thread 'David (Google Cloud Support)' via Google App Engine


Hello,

The error message is indicating that the timeout is being reached, which 
would explain why you are waiting for a long time before failing. By 
default, the timeout is 10 minutes, but you can specify a greater timeout 
value considering that the instance might need a longer time to deploy 
properly. Regarding why that specific project is failing to deploy the 
instance, is there anything different about it compared to the others? Is 
it able to deploy other applications without any problems?

[1] 
https://cloud.google.com/cloud-build/docs/deploying-builds/deploy-appengine#configuring_the_deployment

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1156d74f-f965-4d2c-9c22-ce6770253320%40googlegroups.com.


[google-appengine] Re: 502 Bad Gateway (nginx)

2020-05-06 Thread 'David (Google Cloud Support)' via Google App Engine


Hello,

To debug this, you might be interested in enabling logging and SSHing into 
your instance 
, 
you could find information as to why your instance is not working properly 
after the deployment.

Configuration may also be a cause of the gateway error, so it might be 
worth verifying the configuration you are using to the ones in the official 
Github for a Spring app in App Engine Standard 

.

Although you are deploying your application through a JAR file 
 [4], it is always 
useful to review your code, and you could attempt deploying your 
application without a JAR file but rather with all your files to see if it 
makes any difference.

It may also be a good idea to consider opening an Issue Tracker entry 
 so that you can get 
more attention and support from an agent with your App Engine issue.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/55bbbcf3-6b49-428a-bc7f-0c7e8f657599%40googlegroups.com.


[google-appengine] Re: Your migration stories

2020-05-02 Thread David Trupiano
Hi Charlie,

We've almost completed our migration off of AppEngine python 2.7.  We ended 
up just jumping over to Kubernetes rather than the python 3 version of 
AppEngine.  The biggest reason for this being that we ended up needing to 
manage the replacements for many of the builtin services from 2.7 (ie 
Elasticsearch to replace the search API, Redis to replace Memcache etc...) 
so it was just easier to put everything into a Kubernetes cluster (just one 
thing to manage, most of these services have operators available, some of 
the services will be co-located,  etc...). The Kubernetes move will also 
remove our dependence on any particular vendor which is nice to have 
(especially given this recent experience with AppEngine).

The biggest pain points for us were not really updating any code but rather 
around how to replace the builtin services from 2.7 and how those changes 
ended up impacting our dev workflow.  Before it was really simple: just run 
the emulated environment locally and start coding away.  Now, the dev 
workflow is a lot more complex.  We are doing a lot with docker and 
minikube to make everything work locally before we deploy.  I would also 
say that a big reason that our code updates were fairly easy was the 
extensive tests that we had built out - huge lifesaver for detecting issues 
during the transition.

Hope this helps

Dave

On Friday, May 1, 2020 at 5:18:33 PM UTC-4, Charlie Engelke wrote:
>
> Have you recently migrated from App Engine for Python 2.7 to App Engine 
> for Python 3.7? Are you working on migrating now, or planning to soon? Or 
> maybe you are using App Engine for Python 2.7 and aren't planning such a 
> migration.
>
> In each of those cases, I'd like to hear how things went or are going for 
> you, pain points you encounter, things that went easily, and anything else 
> you have to share. I'm working on creating some new code samples to help 
> with this, and your stories will be a big help.
>
> Thanks,
>
> Charlie
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d0e736b7-e1c6-40a4-b5a9-3719f9cec3c7%40googlegroups.com.


[google-appengine] Re: Understanding incremental upload in gcloud app deploy

2020-04-23 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

Here is some information about the default and staging buckets 
.
 
As for the artifact, this is a bucket for the build cache which holds 
intermediary build output. The staging and artifact buckets hold temporary 
files which are part of the deployment process. It is not recommended to 
delete any of these buckets but it won’t break your project if you do.

Manually running the command "gcloud app deploy" should check for any file 
changes and only upload those files that were updated. The behavior may be 
different if done from a Cloud Build step. In this case, it would need to 
use previous builds in order to speed up the building time. For more 
information about making your builds faster, please see our documentation on 
best 
practices for speeding up builds 
.

Please review this document about running Django on GAE standard 

 
which provides information about Django's collectstatic. Build steps wise:

 

args: ['-m', 'pip', 'install', '-t', '.', '-r', 'requirements.txt']

args: ['./manage.py', 'collectstatic', '--noinput']

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9af0394d-3b54-48d6-b49a-db2b759228e6%40googlegroups.com.


[google-appengine] Re: Google App deploy fails on timeout: ERROR: CONTEXT DEADLINE EXCEEDED. How can i fix this?

2020-04-08 Thread 'David (Cloud Platform Support)' via Google App Engine
Another workaround other than increasing the timeout limit would be adding 
“grpcio==1.27.2” 
to your requirements.txt and then try to redeploy

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/83cbefbf-8a4a-48a2-82de-ab241bfce6d2%40googlegroups.com.


[google-appengine] Re: Google App deploy fails on timeout: ERROR: CONTEXT DEADLINE EXCEEDED. How can i fix this?

2020-04-07 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

I’m seeing this excessive time now with Pub/Sub and Cloud Task libraries. 
You can follow this IssueTracker  
that I have created to raise awareness with the App Engine Flex engineering 
team. You can also report this yourself from an user perspective on Github 
. As for now, the 
workaround is to increase the timeout limit. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6c2297e2-7a3b-47f4-80b0-a7e95a0b04ab%40googlegroups.com.


[google-appengine] Re: Google App deploy fails on timeout: ERROR: CONTEXT DEADLINE EXCEEDED. How can i fix this?

2020-04-07 Thread 'David (Cloud Platform Support)' via Google App Engine


“google-auth 1.13.1 has requirement setuptools>=40.3.0, but you'll have 
setuptools 39.1.0 which is incompatible” and “You are using pip version 
10.0.1, however version 20.0.2 is available” are warning messages that show 
up as the version for these libraries are updated gradually and might not 
always be on the latest version. However, it should not produce any issues 
at the moment of deploying or any issues with the application itself.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8144f6c1-7c64-49c5-8ea9-e153dc9d808f%40googlegroups.com.


[google-appengine] Re: GAE Standard returns HTTP 302 to task queue push message

2020-03-31 Thread 'David (Google Cloud Support)' via Google App Engine


Hello,

302 error status can occur for various reasons, and from what I have found, 
it could be the configuration for security constraints 
 or the handlers in the 
app.yaml file 
.
 
Here is another StackOverflow post 

 
indicating not to redirect from HTTP to HTTPS unless filtering Task Queue 
requests.

Note that Task Queue is considered to be superseded App Engine service and 
is no longer a recommended solution 
. 
Considering that you are using GAE Standard in Python 2, it is recommended 
that you migrate to Python 3.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8ed78ce8-16ef-42b4-94ef-742cdbd2c32d%40googlegroups.com.


[google-appengine] Re: How to resolve google app engine latency while autoscaling?

2020-03-25 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

The first request made after deployment usually takes longer than 
subsequent requests as well as the first request when an application has 
not been serving traffic for a while since it will be a loading request 
.
 
As you mentioned, using warmup requests is a way to reduce or avoid this 
latency. However, please note that warmup requests won’t work in every case 
.
 
Now, if you have noticed that even after that initial request, while your 
application is serving requests normally it’s still taking a while, I would 
recommend you to increase the number of minimum idle instances so there 
will be an instance ready to handle requests which should reduce the 
latency while autoscaling. 

However, if you believe the delay is unusual and you would like to get more 
detailed information, you may open a support ticket 
 where your application would be 
analyzed in order to get more information about what could be causing this 
delay. Please note that if you are during a free trial period, you are able 
to open a support ticket using the free trial support 
.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6867a4c0-e4d1-4832-ad3a-5349e7eca474%40googlegroups.com.


[google-appengine] Re: Error when I tried to create app enigne

2020-03-24 Thread 'David (Google Cloud Support)' via Google App Engine


Hello,

Could you be more descriptive of what is happening when you are receiving 
this error? What were you trying to accomplish with App Engine when you got 
the error and what were you expecting instead? It is hard for other users 
to figure out what is happening here without any context.

Also, I have taken the liberty of moving this issue from `gce-discussion` 
to `Google App Engine`; make sure that you open posts in the correct group 
discussion to ensure that your issue gets the proper visibility and support.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/fcfaff95-0a96-4be3-a784-74fda7f083ed%40googlegroups.com.


[google-appengine] Re: struggling for the pass couple of weeks to connect google cloud to mysql and app engine using nodejs

2020-03-23 Thread 'David (Cloud Platform Support)' via Google App Engine
This error can happen if you deployed an application before enabling the 
Cloud SQL admin API. I would recommend you to disable/enable the Cloud SQL 
admin API in both projects then redeploy the application.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f62e6591-c0dc-48c2-9c93-4490b14a3189%40googlegroups.com.


[google-appengine] Re: App Engine won't start instances in standard environment

2020-03-16 Thread 'David (Cloud Platform Support)' via Google App Engine
Hello,

I believe this could be related to authentication issues. I came to this 
theory when you mentioned that If you deploy it manually, it works properly 
but if you do it through triggers, it does not. Please make sure that 
whatever authentication your application is doing is being properly handled 
(not looking for a key in a local path).

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1d6ad272-3e3c-4844-8a25-9979b6bf92a9%40googlegroups.com.


[google-appengine] Re: '[internal google IP] refused to connect' error when activating custom WP theme

2020-03-10 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

In order for you to get better help from the community, it would be helpful 
if you could specify whether you are using App Engine or Compute Engine and 
if you are using App Engine since this is the App Engine group, which 
version of App Engine you deployed your WP to, standard or flex as these 
have different limitations. Also, was everything working properly before 
you tried to active this custom wp theme and can you active others wp 
themes? A screenshot of the exact error you are seeing on your end would be 
helpful as well. That way we could help you in finding out if the error is 
due to a mis-configuration of WP or a limitation/issue of/with App Engine.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5b387cec-fb41-462c-818e-89b68e259ed6%40googlegroups.com.


[google-appengine] Re: gcloud app deploy error: Service not available?

2020-03-10 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

By the error you are receiving, it looks like it was a transient issue at 
the moment you attempted this deployment. Could you try again and see if 
it’s still happening?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/57a21fc9-7997-4150-a8ec-ab78d533954e%40googlegroups.com.


[google-appengine] Re: Keep getting TransientError when call lease_tasks() to pull from Cloud Tasks

2020-03-09 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello Limin,

As a first step, even though you mentioned the errors came out of nowhere, 
I would try increasing the maximum rate of the queue as this may help in 
reducing these type of errors. However, please note that Google Groups is 
meant for general conceptual discussions about GCP products. If you would 
like someone to conduct an in depth analysis of this issue you are 
experiencing, you may consult our support hub page 
 that will show the different options 
of support. Within our support hub page, you can find a link to our support 
packages  as well as free support 
options such as our free trial support which may be beneficial if you have 
signed up for a free trial.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/733f890f-92b8-4c25-a704-06db57ce84e7%40googlegroups.com.


[google-appengine] Re: Cloud Datastore Emulator support?

2020-03-04 Thread 'David Do' via Google App Engine


Hello Jon,

Unfortunately, since this is not the correct group for providing support 
for the Datastore Emulator, I suggest that you focus on monitoring the 
thread you have already opened 
 
in the Google Cloud Datastore group.

Alternatively, I agree that it would be a good idea to post your issue on 
Stack Overflow as you have mentioned, and you may also consider using Issue 
Tracker . From there, 
you would either consult existing Datastore issues 
 or create your own entry 
 
describing the Datastore emulator test issue you are encountering.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/dacf6ad8-386e-42c7-ac79-136e13e7ef09%40googlegroups.com.


[google-appengine] Re: .appspot.com is currently unable to handle this request. HTTP ERROR 500 -

2020-02-28 Thread 'David (Cloud Platform Support)' via Google App Engine


This could be due to a number of reasons. I would recommend you to check 
your logs which will provide you with more information about what’s causing 
the issue. You can check your logs by going on App Engine> Versions> Tools 
(under diagnose) -> logs.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f9227e13-aca5-41da-929b-49a06c9fafc2%40googlegroups.com.


[google-appengine] Re: Google appengine free quota per application?

2020-02-24 Thread 'David (Cloud Platform Support)' via Google App Engine
For the always free 
 
program within the free tier 
, most quotas are per 
billing account. However, for App Engine specifically, I can confirm as 
Ryan mentioned, it is per application and not per billing account.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f4b61ed2-2bcf-4cf6-971d-14f6435cf086%40googlegroups.com.


[google-appengine] Re: Google appengine free quota per application?

2020-02-20 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello Animesh,

I would like to clarify this for you. Free quotas are per billing account 
and not per application.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4986bb53-2774-4a05-b76d-226321fa43f8%40googlegroups.com.


Re: [google-appengine] Re: Coursebuilder 1.11.001

2020-02-12 Thread David Barrymore
Hi Aref,

I did and manage to proceed, however, It stopped and said I needed Xcode,
which I found out it only for apple, Mac.
*Kind Regards*
*David*

*www.psychicdavidgolden.com <http://www.psychicdavidgolden.com> *


On Wed, Feb 12, 2020 at 1:36 PM 'Aref Amiri (Cloud Platform Support)' via
Google App Engine  wrote:

> Hi David,
>
> You may want to follow the List of Steps provided on this page
> <https://edu.google.com/openonline/course-builder/docs/1.11/set-up-course-builder/set-up-course-builder.html>,
> as it provides steps on setting up Course Builder.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/24664bcf-f108-4a99-a53c-81f79beb604e%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/24664bcf-f108-4a99-a53c-81f79beb604e%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAOiR--uAHcGVXVS7%2BPptL5r%3DUqVKEiPLZDG6wtogsF1SMT2yMw%40mail.gmail.com.


[google-appengine] Coursebuilder 1.11.001

2020-02-11 Thread David Barrymore
Hi All,

Can someone guide me on how to place course builder 1.11 onto Google Cloud 
Console so I can create a course?

Course builder has been downloaded to my harddrive

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/cf62b056-107b-4d33-9165-fcbde11b62a6%40googlegroups.com.


[google-appengine] Re: App Engine nginx request logs, does it include response time

2020-02-10 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

The information in the nginx request logs does not take into account the 
load balancer. "jsonPayload.latencySeconds" corresponds to the request time 
starting from when Nginx reads the first byte until Nginx sends the last 
byte of the response body and it differs from a full response time as it is 
only measuring upstream server response time.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ec7d1bab-6c38-4483-ada9-5e2aea59a8f8%40googlegroups.com.


[google-appengine] Re: How can I see in which environment my App Engine module is running?

2020-02-05 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

Yes, you can see in which environment your App Engine application is 
running. Just head over to your Cloud Console and click the hamburger top 
left corner to see the settings menu, then go to App Engine - > versions 
and you should be able to see some information about your application which 
includes the environment.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/04ffe0bd-4cfc-4c42-8ffd-c37bdc7543d0%40googlegroups.com.


[google-appengine] Re: automatic scaling when using websockets

2020-02-04 Thread 'David Do' via Google App Engine


Hello,

As Olu mentioned, many metrics, called Resources, can affect scaling 
decisions as seen in this documentation [1], which lists CPU as you have 
stated but also memory. Depending on our configuration in the app.yaml 
file, these will affect the available resources per instance by having App 
Engine create a Machine Type based on those CPU and memory settings. That 
machine is guaranteed to have at least what you have specified, or with the 
possibility of having more.

As for the target utilization, it is an indicator of the average CPU 
utilization that the autoscaler should maintain [2]. In the case that the 
average CPU utilization is lower than the target, then it will create a new 
instance, while a utilization lower than the target will remove instances 
to maintain the utilization you have set [3]. So, in your case, since you 
would have set the CPU utilization at 0.5 and your 3 instances are at 0.1, 
which are not gonna be idle as they have a load to work on, it is lower 
than the target and the autoscaler would scale down to remove instances. 
That can be prevented by setting the min_num_instances to 3 in the app.yaml 
as indicated in [1]

[1] 
https://cloud.google.com/appengine/docs/flexible/python/reference/app-yaml#resource-settings

[2] 
https://cloud.google.com/compute/docs/autoscaler/scaling-cpu-load-balancing?hl=en_US&_ga=2.46193063.-1877344601.1575944051#scaling_based_on_cpu_utilization
[3] 
https://cloud.google.com/compute/docs/autoscaler/scaling-cpu-load-balancing?hl=en_US&_ga=2.46193063.-1877344601.1575944051#scaling_based_on_cpu_utilization

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3e57f215-1ca9-4aad-9cee-ece7576f89df%40googlegroups.com.


[google-appengine] Re: perfomance test is possible in this condition to GAE ??

2020-02-04 Thread 'David Do' via Google App Engine
Hello,

I have provided a response to your other post that had the same questions 
[1].

[1] https://groups.google.com/forum/#!topic/google-appengine/Jee8WxvmLe8

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/344c8fcd-15ea-4eab-a2aa-afe0f41da775%40googlegroups.com.


[google-appengine] Re: performance test limitation

2020-02-04 Thread 'David Do' via Google App Engine


If you are referring to GCP’s App Engine instances, since this is the App 
Engine group, you would need to refer to the quota documentations [1] to 
make sure you are not exceeding them, as they quotas are considered the 
“limits” of GCP products. Note that a high usage may become very expensive.

If you are referring to Compute Engine instances, since you were using the 
word “servers”, I also recommend that you take a look at its quotas, 
especially regional and global quotas, and CPUs [2] as they closely dictate 
how many instances can be run in total. Again, note that a high usage may 
become very expensive. Also, if you were referring to Compute Engine, make 
sure that you post your inquiries in the correct group in the future.

[1] https://cloud.google.com/appengine/quotas
[2] https://cloud.google.com/compute/quotas#regional_and_global_quotas

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/86a73d44-bc49-4565-84d6-7f78c8fd6bb7%40googlegroups.com.


[google-appengine] Re: Best way to handle long running tasks

2020-01-08 Thread 'David (Cloud Platform Support)' via Google App Engine


When using AppEngine, it is better to use Cloud Tasks 
 at the moment of 
performing long-running requests. As you mentioned, you could also use 
Compute Engine and there could be ways to integrate PubSub but if you are 
already in App Engine and you would like to stick to it, Cloud Tasks would 
be a good solution for you.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/fc1b5060-837f-470f-b799-204f6b781632%40googlegroups.com.


[google-appengine] Re: Error when I'm deploying (error pushing image: failed to push to destination)

2020-01-08 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

This seems to be an authentication issue. You can try running “gcloud auth 
revoke” and then authenticating once again using “gcloud auth 
application-default login” as well as updating your Cloud SDK version. If 
none of this works, I would recommend you to create a public Issue Tracker 
 as Google Groups is 
meant for conceptual discussions and Issue Tracker would be a better place 
for this as you are reporting an issue with the platform. That way we could 
investigate further to see if this could be an issue on our end. 

In addition, I would recommend you to edit out your projectID as it should 
not be shared with the public.

If you decide to open an Issue Tracker, please open a private issue and 
provide your project ID and the command you are running and if possible, 
run the command with --verbosity=debug and include the output.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8a6a1613-5a50-4579-89cf-68333e577e96%40googlegroups.com.


[google-appengine] Re: The newly created VM has been unable to log in

2020-01-06 Thread 'David Do' via Google App Engine


You can find troubleshooting documentation 
 
about SSHing into a Compute Engine instance [1]. In the future, please make 
sure that your screenshots are in English or provide a description that is 
in English so that other people may be able to help your more easily. 
Additionally, make sure that your future Compute Engine issues are posted 
in gce-discussion instead, as this is a Google App Engine group.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/eda54bbe-840c-4a4d-966c-14bf030bf072%40googlegroups.com.


[google-appengine] N00b - CPU Quota Error Message

2020-01-06 Thread David Dickenson
Last night as a test I left a task running over night (something I normally 
don't do) and this morning I discover my instance was no longer running and 
was unable to restart it - I got the attached notification.

I upgraded billing from the free tier to actual billing and was still 
unable to start.

I've tried upgrading from an 8GB RAM, 2 x CPU to 16GB RAM, 4 x CPU) but the 
instance still won't restart.

Do I need to wait 24 hours before the instance can be restarted?

Thanks for all help in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2e075201-9d47-4d32-9f66-771ddc872a84%40googlegroups.com.


[google-appengine] Re: Project Missing from Dashboard

2019-12-02 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

If you are added to the project as a Project Billing Manager, the project 
may not show up in your dashboard so this is likely just a permission 
issue. You would need to have the organization admin or maybe someone else 
who was an owner add you to the project as a viewer at least. There are 
other permissions that would allow you to see the project other than just 
being a viewer but project billing manager is not one of them. This 
documentation  may be helpful 
in your case. 

If you are already an organization admin, then it’s possible that the 
project was never added to the organization but it’s linked to your billing 
account. If you believe this is the case, please contact the Google Cloud 
Platform Billing support 
 and 
explain the situation. You could also try opening a Google Issue Tracker 
and we could possibly 
verify on our end what’s the issue preventing you from seeing this project.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ac783ffa-aaed-4a4c-ba9d-dd81f603ba34%40googlegroups.com.


[google-appengine] Re: problems when upload large files from google app engine to google storage help plz

2019-11-29 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

This sounds like you may be hitting some type of quota. Please review this 
documentation about the Quotas and LImits for Cloud Storage 
. It would be helpful to look for 
specific errors at your App Engine application logs so you can have an idea 
of what could be happening.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/bd281703-4dec-4b05-8740-0da611ef3aea%40googlegroups.com.


[google-appengine] Re: Google AppEngine - Despite being granted more quota for Billing apps, I still cannot add Billing to the 6th or more apps

2019-11-21 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,


Could you please submit the request again using this form [1] as by the 
response you received I believe somehow your request wasn’t routed to the 
proper team.


As a friendly reminder, if you are using services like Compute Engine, 
BigQuery, Cloud SQL, Cloud Storage, MAPs API and others, you'll have to 
choose paid services under the kind of services question.


[1]https://support.google.com/code/contact/billing_quota_increase

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/69c7f24f-c6f9-457a-b5b4-86415afdb1e0%40googlegroups.com.


[google-appengine] Re: Header names after september 30 (Load balancers)

2019-09-16 Thread David Mattatall
Does this only affect "google injected headers" or all headers that 
traverse through the google load balancer?

Where is the official google change release document? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/55114dfa-3f52-476f-9df5-39223c8f3af6%40googlegroups.com.


[google-appengine] Really confused by Warmup Requests on NodeJS + not working!

2019-08-23 Thread David Williams
I have a node server running in App Engine Standard using a custom domain. 
Everything works fine.

When I deploy a new version there is a huge latency spike as the old 
instances are stopped and new ones started.

>From reading the docs, it would appear that I need to:
1. Enable warmup requests by adding to app.yaml
inbound_services:
-  warmup
2. Create a handler for /_ah/warmup
3. Deploy new version without promoting: gcloud deploy --no-promote app.yaml
4. From the App Engine versions page, use Migrate to move traffic from old 
to new

I'm new to App Engine, and the docs are vague so I'm have questions and a 
major problem:

1. What is the point of the /_ah/warmup handler? Since I initialize 
everything I need to when the node app starts, there is nothing for this 
handler to do.
2. Is the handler optional? I assume yes since I read somewhere that a 404 
response would be OK.
3. If it's not optional, what response is expected?

4. This is the biggie!:

I've tried this (omitting the handler). The Migrate button becomes 
available and appears to migrate traffic to the new version HOWEVER, after 
a while my site starts failing. The problem is different after each Migrate 
-  one time was corrupt/invalid HTML, another a JavaScript syntax error, 
another the entire site was wrapped inside a PRE tag in HTML I didn't 
write! The only way I've found to "fix" the corruption is to remove 
inbound_services: -warmup from app.yaml & re-deploy

To make it even weirder, the corruption only happens if the site is 
accessed from the custom domain. If I hit the appspot.com address 
everything is OK

My head hurts. Any help/insight gratefully received

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5506ecab-2674-4e24-8947-9469ae5f0047%40googlegroups.com.


[google-appengine] Really confused by Warmup Requests on NodeJS + not working!

2019-08-23 Thread David Williams
I have a node js server running in App Engine using a custom domain. 
Everything works fine.

When I deploy a new version there is a huge latency spike as the old 
instances are stopped and new ones started.

>From reading the docs, it would appear that I need to:
1. Enable warmup requests by adding to app.yaml

inbound_services:

-  warmup

2. Create a handler for /_ah/warmup
3. Deploy new version without promoting: gcloud deploy --no-promote app.yaml
4. From the App Engine versions page, use Migrate to move traffic from old 
to new

I'm new to App Engine, and the docs are vague so I'm have questions and a 
major problem:

1. What is the point of the /_ah/warmup handler? Since I initialize 
everything I need to when the node app starts, there is nothing for this 
handler to do.
2. Is the handler optional? I assume yes since I read somewhere that a 404 
response would be OK.
3. If it's not optional, what response is expected?

4. This is the biggie!:

I've tried this (omitting the handler). The Migrate button becomes 
available and appears to migrate traffic to the new version HOWEVER, after 
a while my site starts failing. The problem is different after each Migrate 
-  one time was corrupt/invalid HTML, another a JavaScript syntax error, 
another the entire site was wrapped inside a PRE tag in HTML I didn't 
write! The only way I've found to "fix" the corruption is to remove 
inbound_services: -warmup from app.yaml & re-deploy

To make it even weirder, the corruption only happens if the site is 
accessed from the custom domain. If I hit the appspot.com address 
everything is OK

My head hurts. Any help/insight gratefully received

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5bbacf4d-61b1-4581-9e46-e84a01cd6420%40googlegroups.com.


[google-appengine] Re: How to redirect www.mysite.appspot.com to mysite.appspot.com

2019-08-13 Thread David Smith
Hi George,
This does not seem to be the case:

If you go to www.givebackourbusses.appspot.com you get a 'Did Not Connect: 
Potential Security Issue' message.

Without www it serves okay: givebackourbusses.appspot.com.

On Wednesday, 14 August 2019 04:47:19 UTC+10, George (Cloud Platform 
Support) wrote:
>
> Hello David, 
>
> You can use www.mysite.appspot.com and mysite.appspot.com 
> interchangeably: you get to the same page in both cases. 
>
> You may consider using  a custom domain instead, and map it to your 
> appspot.com domain, as detailed on the "Mapping Custom Domains" 
> documentation page 
> <https://cloud.google.com/appengine/docs/standard/python/mapping-custom-domains>
> . 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6186a3e7-4f75-4a14-abb9-9d1dcddf055d%40googlegroups.com.


[google-appengine] How to redirect www.mysite.appspot.com to mysite.appspot.com

2019-08-13 Thread David Smith
Hi, I've asked this question on stackoverflow but it's not getting much 
attention:

https://stackoverflow.com/questions/57470503/how-to-avoid-potential-security-issue-if-users-incorrectly-use-www-for-an-apps

If a user incorrectly uses www in the URL they can not get through at all 
and it looks like a really suspicious site.

The short question is, how do I redirect www.mysite.appspot.com to 
mysite.appspot.com just using the app.yaml file?

This must be a really stupid question because I've searched for hours and 
found nothing to answer it.

This is more detail in the SO question which I can insert here if you think 
that's best.

Thanks,

Dave

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0cf977ca-6182-4f83-b79e-32e86ef4a13d%40googlegroups.com.


[google-appengine] Re: Changing GAE region

2019-07-31 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

Unfortunately you can’t change the location for your app once created. If 
you are interested in a feature that would allow you to do this, you can 
follow this feature request . As 
a workaround, you may be able to export the Data of your Cloud SQL and 
import it back to your other Cloud SQL instance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/49d6be76-c1c8-4f33-bd7a-1a62b57f8799%40googlegroups.com.


[google-appengine] Google Speech-to-Text

2019-07-29 Thread David Akerson
I am developing an app to transcribe audio recordings on my phone.

I am using the "video" model.  The problem I am having is that the 
transcription breaks the text into various speakers, even though its just 
me speaking.  

I am wondering whether I should be using the Phone Call model instead, 
which supports the Speaker Diarization function (video does not, 
apparently.)   And if I use the Phone Call model, and I have a recording 
which is three hours long, will this cause problems?

Finally, if I am trying to produce a transcript with the most accurate 
punctuation, does one model (Video, Phone Call, etc) work better than 
others?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/298a770b-32ae-4304-beba-24d72a1010ed%40googlegroups.com.


[google-appengine] Re: How does Scoring Documents in App Engine Search API affect price?

2019-07-23 Thread 'David (Cloud Platform Support)' via Google App Engine
You can find the pricing for the search API in this link 
. 
For more information about pricing, please see this link 
 as well.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e38a1c63-d463-45dc-b22c-9536bc7f1a81%40googlegroups.com.


[google-appengine] Re: How does Scoring Documents in App Engine Search API affect price?

2019-07-22 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

Scoring documents can be expensive in terms of billable operations and 
execution time, but it is not always the case. As it depends on the 
document and term you are searching. The reason of expensive is the extra 
processing in sorting the value as per the frequency of the search terms. 
If you turn off the match scoring then in that case, search will use the 
default order of the sort expression class which is descending 
.
 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3dec7b71-bc9a-4e66-8999-a5b222345b7f%40googlegroups.com.


[google-appengine] Re: I can't deploy because of InvalidBuildError・・・

2019-07-22 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

As a first step, please make sure to update your Cloud SDK to the latest 
version  and then please follow our 
quickstart 
 about 
App Engine Flex as usually this issue is related to a misconfiguration. If 
you are not able to deploy even by following our quickstart, please post 
the output from running the command with the flag --verbosity=debug which 
will show more information about this issue. Please do not include any 
personal information as this is a public post.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/19726f08-ab49-477e-b2c4-443431f32eb3%40googlegroups.com.


[google-appengine] Re: Trying to create redis instance, but says location not found

2019-07-22 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello,

Try adding a “1” to europe-west, so it would be “europe-west1”. Please take 
a look at the memorystore locations 
. Europe-west in 
App Engine and Europe-west1 in memorystore are the same region based in 
Belgium.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/23fb2c32-bbf4-4923-974d-effaff0aaef8%40googlegroups.com.


Re: [google-appengine] Re: 500 error while trying to post to a flask app from postman

2019-07-19 Thread 'David (Cloud Platform Support)' via Google App Engine
This error is most likely caused by the inability of properly using SQL 
lite on App Engine standard. However, please take a look at Cloud SQL 
 which is 
pretty easy to get started with within App Engine.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e7711529-3f21-4cef-800a-78400c7783c0%40googlegroups.com.


Re: [google-appengine] Re: 500 error while trying to post to a flask app from postman

2019-07-18 Thread 'David (Cloud Platform Support)' via Google App Engine


The 500 error you are receiving may be due to an issue with what happens in 
your post, specifically when you try to write to your database. You can try 
catching any errors in that method or you could also check more details 
about the error by using the Stackdriver Logging 
. You can easily access your 
application's logs by going to the Cloud Console and clicking on the 
hamburger left top corner -> App Engine -> Services -> select the proper 
service then click on versions -> select the proper version and below 
diagnose, right click -> Logs. You can also access these logs from the 
Stackdriver Logging menu by using the filtering option. 

I have removed your projectID from the post as this is personal information 
that should not be shared with the public.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c78b836d-5be1-40bd-ad89-70b77c7b2a7f%40googlegroups.com.


[google-appengine] Re: 500 error while trying to post to a flask app from postman

2019-07-17 Thread 'David (Cloud Platform Support)' via Google App Engine


Hello Karan,

This 500 error you are receiving could be due to missing libraries (flask) 
since I do not see a requirements.txt on your github. Please follow our 
quickstart 
 on 
how to get started with Python 3.7 which covers how to install libraries 
using a requirements.txt. 


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/98e08141-3566-42d1-a7b5-041f1198%40googlegroups.com.


[google-appengine] Re: App without sensitive or restricted scopes still showing "Unverified App" message to clients

2019-07-16 Thread 'David Charles Martinez' via Google App Engine


Hello,

The answer is no. They should not see the “unverified app” message if the 
application is whitelisted. We can confirm this by reviewing this Gsuite 
updates documentation 
 
which I understand is not the clearest but it does states that after july 
8, New users will not be able to install unverified apps unless you “trust 
them” which would be whitelisting. Hence, after whitelisting, the 
“unverified app” message should not be displayed.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8a5a0d5c-68e3-4406-82e6-417d6f9d95fd%40googlegroups.com.


  1   2   3   4   5   6   7   8   9   10   >