[google-appengine] Re: gcloud app deploy command broken

2021-04-27 Thread Assistant RDV
Hi, 
there is the log of Cloud Build. 
It seem that 2 files are corrupted in bold font. 

Is there any command I can use to flush existing file/image and upload 
brand new files?

Thanks



starting build "80322687-0c4e-4b52-bd98-9441d3472263"

FETCHSOURCE
BUILD
Starting Step #0 - "fetcher"
Step #0 - "fetcher": Already have image (with digest): 
gcr.io/cloud-builders/gcs-fetcher
Step #0 - "fetcher": Fetching manifest 
gs://staging.MyDomain-285409.appspot.com/ae/c5657965-8828-4902-9503-a03b636f3255/manifest.json.
Step #0 - "fetcher": Processing 7035 files.
*Step #0 - "fetcher": Failed to fetch 
gs://staging.MyDomain-285409.appspot.com/c01d687f09edc9d559130bd3053ed0ce0b02,
 
will no longer retry: fetching 
"gs://staging.MyDomain-285409.appspot.com/c01d687f09edc9d559130bd3053ed0ce0b02"
 
with timeout 1h0m0s to temp file 
"/workspace/.download/staging.MyDomain-285409.appspot.com-c01d687f09edc9d559130bd3053ed0ce0b02-197704-2":
 
order/forms.py SHA mismatch, got 
"9bf9c4edd1510f1544344c22d886a11655fdd3b7", want 
"c01d687f09edc9d559130bd3053ed0ce0b02"*
*Step #0 - "fetcher": Failed to fetch 
gs://staging.MyDomain-285409.appspot.com/c1b08832160d6368663495576f8b636d11849a1d,
 
will no longer retry: fetching 
"gs://staging.MyDomain-285409.appspot.com/c1b08832160d6368663495576f8b636d11849a1d"
 
with timeout 1h0m0s to temp file 
"/workspace/.download/staging.MyDomain-285409.appspot.com-c1b08832160d6368663495576f8b636d11849a1d-31499-2":
 
order/views.py SHA mismatch, got 
"037cb47b5236eff2edba89126193de9689f91583", want 
"c1b08832160d6368663495576f8b636d11849a1d"*
Step #0 - "fetcher": Failed to download at least one file. Cannot continue.
Finished Step #0 - "fetcher"
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/gcs-fetcher" failed: step exited 
with non-zero status: 1


Le mardi 27 avril 2021 à 20:40:54 UTC+2, wus...@google.com a écrit :

> please add --verbosity(
> https://cloud.google.com/sdk/gcloud/reference#--verbosity) flag to debug 
> to pull out the error details for further understanding
>
> On Tuesday, April 27, 2021 at 9:09:10 AM UTC-4 in...@rdvassistant.com 
> wrote:
>
>> hello, 
>> I am looking for help for an issue of GAE deploy
>>
>> I switched branch of my local repo while executing command "gcloud app 
>> deploy"
>>
>> Now I get an error message every time I run the command.
>>
>> Beginning deployment of service [default]...
>> ╔╗
>> ╠═ Uploading 0 files to Google Cloud Storage═╣
>> ╚╝
>> File upload done.
>> Updating service [default]...failed.
>> ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 
>> dfc8fb71-1240-4de0-9b16-bc4260f02bc6 status: FAILURE
>> Build error details: Failed to download at least one file. Cannot 
>> continue.
>>
>> Full build logs: 
>> https://console.cloud.google.com/cloud-build/builds/x
>>
>> The error just repeat and I cannot get rid of it . 
>> Does anyone have any idea about this problem?
>>
>> 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/fb708652-f5f4-49d7-954b-0c98271c58dbn%40googlegroups.com.


[google-appengine] Re: gcloud app deploy command broken

2021-04-27 Thread 'Shawn Wu' via Google App Engine
please 
add --verbosity(https://cloud.google.com/sdk/gcloud/reference#--verbosity) 
flag to debug to pull out the error details for further understanding

On Tuesday, April 27, 2021 at 9:09:10 AM UTC-4 in...@rdvassistant.com wrote:

> hello, 
> I am looking for help for an issue of GAE deploy
>
> I switched branch of my local repo while executing command "gcloud app 
> deploy"
>
> Now I get an error message every time I run the command.
>
> Beginning deployment of service [default]...
> ╔╗
> ╠═ Uploading 0 files to Google Cloud Storage═╣
> ╚╝
> File upload done.
> Updating service [default]...failed.
> ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 
> dfc8fb71-1240-4de0-9b16-bc4260f02bc6 status: FAILURE
> Build error details: Failed to download at least one file. Cannot continue.
>
> Full build logs: 
> https://console.cloud.google.com/cloud-build/builds/x
>
> The error just repeat and I cannot get rid of it . 
> Does anyone have any idea about this problem?
>
> 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/c5fa232e-b210-4436-9b97-82af08e9728an%40googlegroups.com.


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

2021-04-27 Thread NoCommandLine -
I don’t know of specific documentation about this (apart from code 
suggestions/approaches on Stackoverflow).

On a project which was written in Python (with Flask), we added the code to 
@app.before_request so it gets executed before each request to the Application 
(and redirected the user to the custom domain). On another project, we created 
a separate service (this means we had a dispatch.yaml file) to handle all such 
urls and returned a 404 error

   . NoCommandLine ..
 https://nocommandline.com 

A GUI for Google App Engine






> On Apr 27, 2021, at 9:58 AM, Glenn Richard  wrote:
> 
> 
> Thanks for your feedback, NoCommandLine. Personally, it's fine with me if 
> someone finds a way into my site via the appspot domain name, so long as the 
> custom name prevails in the address bar when it is used as the access method. 
> But for those who read this thread and wish to redirect visitors who get to 
> their sites via their appspot domain, where is there documentation that 
> describes how to accomplish this redirect?
> On Tuesday, April 27, 2021 at 11:36:21 AM UTC-4 NoCommandLine wrote:
> Looks good. Glad you figured it out.
> 
> Note: If for some reason someone goes directly to the .appspot link, it won’t 
> automatically redirect to your custom domain. You need to have code that will 
> handle this redirect. However, some people don’t worry about this based on 
> the argument that the probability of someone going directly to the appspot 
> link is very low because the person would need to know the Application Id, 
> and also know it’s being hosted on GAE.
> 
>. NoCommandLine ..
>  https://nocommandline.com 
> 
> A GUI for Google App Engine
> 
> 
> 
> 
> 
> 
> 
>> On Apr 27, 2021, at 5:52 AM, Glenn Richard > > wrote:
>> 
> 
>> Thanks, NoCommandLine, and David for your help. The redirect works correctly 
>> now. Following your advice, with assistance from links you provided, I 
>> re-performed the mapping process from scratch.
>> 
>> For the benefit of others, I am providing the following summary of the steps 
>> that I believe were relevant:
>> At the top of the page, the pull-down menu was used to select the project 
>> for which the designated custom domain was to be applied.
>> From the navigation menu in the upper left, I scrolled down to the App 
>> Engine submenu in the COMPUTE section, and chose Setting from the list that 
>> appeared.
>> I selected the Custom domains tab.
>> From there, I clicked on Add a custom domain, then selected the appropriate 
>> custom domain previously purchased from Google from the pull-down menu.
>> I mapped both the naked domain and the www subdomain. For the naked domain, 
>> this created four A records and four  records. For the www subdomain, it 
>> created one CNAME record. These can be viewed at any time via the Add a 
>> custom domain tab.
>> Offline, I edited the app.yaml file for the project to add the following:
>> - url: /.*
>>   secure: always
>>   redirect_http_response_code: 301
>>   script: auto
>> 
>> Back online, I uploaded the revised app.yaml file and redeployed the project.
>> To avoid the hazard of having the cached version of the appspot url from 
>> appearing in the address bar, I removed that address from the history in ny 
>> browser, which is Google Chrome.
>> After that, it works, thanks! If any of the above is inaccurate or requires 
>> clarification, please advise.
>> 
>> 
>> 
>> 
>> On Monday, April 26, 2021 at 6:38:55 PM UTC-4 NoCommandLine wrote:
>> You need to map both the naked domain and the sub domain. See this 
>> StackOverflow  response (you 
>> can ignore the SSL bit)
>> 
>> On Monday, April 26, 2021 at 3:25:51 PM UTC-7 Glenn Richard wrote:
>> Hi David,
>> 
>> So,delving a little more into the problem, if I type the www subdomain of 
>> the custom name into the address bar, the custom name does appear there 
>> after redirection occurs. This leads me to believe that the problem is that 
>> I need to create another CNAME record for the naked domain. Where should 
>> that be done?
>> 
>> On Mon, Apr 26, 2021 at 2:33 PM 'David (Cloud Platform Support)' via Google 
>> App Engine googlegroups.com > 
>> wrote:
>> 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 c

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

2021-04-27 Thread Glenn Richard

Thanks for your feedback, NoCommandLine. Personally, it's fine with me if 
someone finds a way into my site via the appspot domain name, so long as 
the custom name prevails in the address bar when it is used as the access 
method. But for those who read this thread and wish to redirect visitors 
who get to their sites via their appspot domain, where is there 
documentation that describes how to accomplish this redirect?
On Tuesday, April 27, 2021 at 11:36:21 AM UTC-4 NoCommandLine wrote:

> Looks good. Glad you figured it out.
>
> *Note:* If for some reason someone goes directly to the .appspot link, it 
> won’t automatically redirect to your custom domain. You need to have code 
> that will handle this redirect. However, some people don’t worry about this 
> based on the argument that the probability of someone going directly to the 
> appspot link is very low because the person would need to know the 
> Application Id, and also know it’s being hosted on GAE.
>
>   * .* NoCommandLine *..*
>  https://nocommandline.com
>
> *A GUI for Google App Engine*
>
>
>
>
>
>
> On Apr 27, 2021, at 5:52 AM, Glenn Richard  wrote:
>
> Thanks, NoCommandLine, and David for your help. The redirect works 
> correctly now. Following your advice, with assistance from links you 
> provided, I re-performed the mapping process from scratch.
>
> For the benefit of others, I am providing the following summary of the 
> steps that I believe were relevant:
>
>- At the top of the page, the pull-down menu was used to select the 
>project for which the designated custom domain was to be applied.
>- From the navigation menu in the upper left, I scrolled down to the *App 
>Engine* submenu in the *COMPUTE* section, and chose *Setting* from the 
>list that appeared.
>- I selected the *Custom domains* tab.
>- From there, I clicked on *Add a custom domain, *then selected the 
>appropriate custom domain previously purchased from Google from the 
>pull-down menu.
>- I mapped both the* naked domain* and the *www subdomain*. For the 
>naked domain, this created four *A* records and four ** records. 
>For the www subdomain, it created one *CNAME* record. These can be 
>viewed at any time via the *Add a custom domain* tab.
>- Offline, I *edited the app.yaml file* for the project to add the 
>following:
>
> - url: /.*
>   secure: always
>   redirect_http_response_code: 301
>   script: auto
>
>
>- Back online, I uploaded the revised *app.yaml* file and redeployed 
>the project.
>- To avoid the hazard of having the cached version of the appspot url 
>from appearing in the address bar, I removed that address from the history 
>in ny browser, which is Google Chrome.
>
> After that, it works, thanks! If any of the above is inaccurate or 
> requires clarification, please advise.
>
>
>
>
> On Monday, April 26, 2021 at 6:38:55 PM UTC-4 NoCommandLine wrote:
>
>> You need to map both the naked domain and the sub domain. See this 
>> StackOverflow  response 
>> (you can ignore the SSL bit)
>>
>> On Monday, April 26, 2021 at 3:25:51 PM UTC-7 Glenn Richard wrote:
>>
>>> Hi David,
>>>
>>> So,delving a little more into the problem, if I type the www subdomain 
>>> of the custom name into the address bar, the custom name does appear there 
>>> after redirection occurs. This leads me to believe that the problem is that 
>>> I need to create another CNAME record for the naked domain. Where should 
>>> that be done?
>>>
>>> On Mon, Apr 26, 2021 at 2:33 PM 'David (Cloud Platform Support)' via 
>>> Google App Engine  wrote:
>>>
 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 metho

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

2021-04-27 Thread NoCommandLine -
Looks good. Glad you figured it out.

Note: If for some reason someone goes directly to the .appspot link, it won’t 
automatically redirect to your custom domain. You need to have code that will 
handle this redirect. However, some people don’t worry about this based on the 
argument that the probability of someone going directly to the appspot link is 
very low because the person would need to know the Application Id, and also 
know it’s being hosted on GAE.

   . NoCommandLine ..
 https://nocommandline.com 

A GUI for Google App Engine






> On Apr 27, 2021, at 5:52 AM, Glenn Richard  wrote:
> 
> Thanks, NoCommandLine, and David for your help. The redirect works correctly 
> now. Following your advice, with assistance from links you provided, I 
> re-performed the mapping process from scratch.
> 
> For the benefit of others, I am providing the following summary of the steps 
> that I believe were relevant:
> At the top of the page, the pull-down menu was used to select the project for 
> which the designated custom domain was to be applied.
> From the navigation menu in the upper left, I scrolled down to the App Engine 
> submenu in the COMPUTE section, and chose Setting from the list that appeared.
> I selected the Custom domains tab.
> From there, I clicked on Add a custom domain, then selected the appropriate 
> custom domain previously purchased from Google from the pull-down menu.
> I mapped both the naked domain and the www subdomain. For the naked domain, 
> this created four A records and four  records. For the www subdomain, it 
> created one CNAME record. These can be viewed at any time via the Add a 
> custom domain tab.
> Offline, I edited the app.yaml file for the project to add the following:
> - url: /.*
>   secure: always
>   redirect_http_response_code: 301
>   script: auto
> 
> Back online, I uploaded the revised app.yaml file and redeployed the project.
> To avoid the hazard of having the cached version of the appspot url from 
> appearing in the address bar, I removed that address from the history in ny 
> browser, which is Google Chrome.
> After that, it works, thanks! If any of the above is inaccurate or requires 
> clarification, please advise.
> 
> 
> 
> 
> On Monday, April 26, 2021 at 6:38:55 PM UTC-4 NoCommandLine wrote:
> You need to map both the naked domain and the sub domain. See this 
> StackOverflow  response (you 
> can ignore the SSL bit)
> 
> On Monday, April 26, 2021 at 3:25:51 PM UTC-7 Glenn Richard wrote:
> Hi David,
> 
> So,delving a little more into the problem, if I type the www subdomain of the 
> custom name into the address bar, the custom name does appear there after 
> redirection occurs. This leads me to believe that the problem is that I need 
> to create another CNAME record for the naked domain. Where should that be 
> done?
> 
> On Mon, Apr 26, 2021 at 2:33 PM 'David (Cloud Platform Support)' via Google 
> App Engine > wrote:
> 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 externa

Re: [google-appengine] Re: GAE request URI traffic stats

2021-04-27 Thread Amogh Asgekar
Thanks for you response Yanan!

Here's what I'm looking for. Say my appengine instance is hosted on website.com 
( http://website.com/ ) and exposes the following routes

website.com/api/search ( http://website.com/api/search )

website.com/api/posts ( http://website.com/api/posts )

website.com/api/search?q="google ( http://website.com/api/posts?q="google ) "

that my clients will hit with traffic. I'd like to know what is the qps and 
latency across each of those routes separately.

Looking at stackdriver logs, I see that protoPayload.latency already logs the 
latency for each request separately. I'm just looking for a way to show all of 
them aggregated per route.

Amogh

Sent via Superhuman ( https://sprh.mn/?vip=amo...@pncl.tech )

On Mon, Apr 26, 2021 at 1:28 PM, yananc < yan...@google.com > wrote:

> 
> 
> 
> Hi,
> 
> 
> 
> By the ‘URI’, are you referring to instances, a service or other resources
> in App Engine? And also, it might help to refer to the Cloud Monitoring
> metric list for App Engine (
> https://cloud.google.com/monitoring/api/metrics_gcp#gcp-appengine ) for the
> complete information available. Hope it helps!
> 
> On Sunday, April 25, 2021 at 9:09:11 AM UTC-4 amo...@pncl.tech wrote:
> 
> 
>> Is there a page that shows the per URI stats for services hosted in GAE? I
>> can find a bunch of monitoring and reporting that shows overall latency,
>> qps etc, but not one that can help me drill down across specific URI's
>> that might be requested for the GAE application.
>> 
>> 
>> If not in cloud monitoring, is it possible to have an off the shelf
>> solution like prometheus / grafana to be easily configured to do so with
>> GAE traffic?
>> 
>> 
>> Amogh
>> 
> 
> 
> 
> 
> 
> --
> 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/ B21GoY1NnzQ/ unsubscribe (
> https://groups.google.com/d/topic/google-appengine/B21GoY1NnzQ/unsubscribe
> ).
> To unsubscribe from this group and all its topics, send an email to 
> google-appengine+unsubscribe@
> googlegroups. com ( google-appengine+unsubscr...@googlegroups.com ).
> To view this discussion on the web visit https:/ / groups. google. com/ d/
> msgid/ google-appengine/ 47c027f8-4922-4ec9-a387-4de4483c1a75n%40googlegroups.
> com (
> https://groups.google.com/d/msgid/google-appengine/47c027f8-4922-4ec9-a387-4de4483c1a75n%40googlegroups.com?utm_medium=email&utm_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/knzclh5w.038c66cc-fbaf-4696-aa0d-0112b84c9903%40we.are.superhuman.com.


[google-appengine] gcloud app deploy command broken

2021-04-27 Thread Assistant RDV
hello, 
I am looking for help for an issue of GAE deploy

I switched branch of my local repo while executing command "gcloud app 
deploy"

Now I get an error message every time I run the command.

Beginning deployment of service [default]...
╔╗
╠═ Uploading 0 files to Google Cloud Storage═╣
╚╝
File upload done.
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [9] Cloud build 
dfc8fb71-1240-4de0-9b16-bc4260f02bc6 status: FAILURE
Build error details: Failed to download at least one file. Cannot continue.

Full build logs: 
https://console.cloud.google.com/cloud-build/builds/x

The error just repeat and I cannot get rid of it . 
Does anyone have any idea about this problem?

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/a41017f2-bf36-4044-8b96-b2afeb1cd334n%40googlegroups.com.


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

2021-04-27 Thread Jonas C
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/5080765a-87c7-4ff7-8669-a20d1ae75150n%40googlegroups.com.


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

2021-04-27 Thread Glenn Richard
Thanks, NoCommandLine, and David for your help. The redirect works 
correctly now. Following your advice, with assistance from links you 
provided, I re-performed the mapping process from scratch.

For the benefit of others, I am providing the following summary of the 
steps that I believe were relevant:

   - At the top of the page, the pull-down menu was used to select the 
   project for which the designated custom domain was to be applied.
   - From the navigation menu in the upper left, I scrolled down to the *App 
   Engine* submenu in the *COMPUTE* section, and chose *Setting* from the 
   list that appeared.
   - I selected the *Custom domains* tab.
   - From there, I clicked on *Add a custom domain, *then selected the 
   appropriate custom domain previously purchased from Google from the 
   pull-down menu.
   - I mapped both the* naked domain* and the *www subdomain*. For the 
   naked domain, this created four *A* records and four ** records. For 
   the www subdomain, it created one *CNAME* record. These can be viewed at 
   any time via the *Add a custom domain* tab.
   - Offline, I *edited the app.yaml file* for the project to add the 
   following:

- url: /.*
  secure: always
  redirect_http_response_code: 301
  script: auto


   - Back online, I uploaded the revised *app.yaml* file and redeployed the 
   project.
   - To avoid the hazard of having the cached version of the appspot url 
   from appearing in the address bar, I removed that address from the history 
   in ny browser, which is Google Chrome.

After that, it works, thanks! If any of the above is inaccurate or requires 
clarification, please advise.




On Monday, April 26, 2021 at 6:38:55 PM UTC-4 NoCommandLine wrote:

> You need to map both the naked domain and the sub domain. See this 
> StackOverflow  response 
> (you can ignore the SSL bit)
>
> On Monday, April 26, 2021 at 3:25:51 PM UTC-7 Glenn Richard wrote:
>
>> Hi David,
>>
>> So,delving a little more into the problem, if I type the www subdomain of 
>> the custom name into the address bar, the custom name does appear there 
>> after redirection occurs. This leads me to believe that the problem is that 
>> I need to create another CNAME record for the naked domain. Where should 
>> that be done?
>>
>> On Mon, Apr 26, 2021 at 2:33 PM 'David (Cloud Platform Support)' via 
>> Google App Engine  wrote:
>>
>>> 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-appengi...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-appengine/1

Re: [google-appengine] Re: GAE Microservices

2021-04-27 Thread wesley chun
Hi Mukesh, in addition to my colleague Andrew's recommendations, I'll add
the following:

   1. You inquired about microservices. We have a Python 2 *App Engine
   microservices architecture*
   

document
   that should be interesting to you.
   2. You could probably replicate a similar architecture on Python 3,
   however Python 3 on App Engine slightly different (no bundled services) so
   we didn't publish a similar page for 3.x. Another reason is that such an
   architecture on Python 3 may be better suited for its sister product, Google
   *Cloud Functions*
   . What
   you call "modules" can be implemented as individual functions.
   3. If you're going to store data in Firebase, you might as well use
*Firebase
   Auth * to authenticate your
   users. Learn about that and other auth options on App Engine from this
   page
   

   in the docs. (It's very likely the same technique can be used w/Cloud
   Functions as well).
   4. Heads-up there's a "new" product that combines the Firebase RTDB
    + Google
   Cloud's NoSQL Cloud Datastore 
called *Cloud
   Firestore*  that launched in 2017
   
   as the next-gen successor to both. If you're considering one of them,
   here's the page in the docs helping you decide b/w Firebase & Firestore
   .

Good luck and let us know how it goes!
--Wesley

On Sun, Apr 25, 2021 at 6:09 AM mukesh raj dass 
wrote:

> Hi
>
> Appreciate the feedback.
>
> I am using Standard environment in Python 3.7.  I need to create a URL for
> services that can only be access from inside the application after login
> authentication.  The
> services will be modules that will available.  It cannot be accessed from
> outside the application.  Do i restrict access via app.yaml only to allow
> access from within the application into a module which will be a "service"
> .  How best to do it ?
>
> Mukesh Raj
>
>
> On Friday, 23 April 2021 at 18:24:40 UTC+10 anco...@google.com wrote:
>
>> Which documentation are you following? Are you thinking of using GAE Flex
>> or GAE Standard?
>>
>> I have added a couple of links that you might find interesting that
>> details how requests are routed in GAE. Please note, this is for Python but
>> the concept is the same for other languages.
>>
>>-
>>
>>How Requests are Routed
>>
>> 
>>-
>>
>>Communicating Between Your Services
>>
>> 
>>-
>>
>>Serverless network endpoint groups overview
>>
>> 
>>
>>
>> On Monday, April 12, 2021 at 11:54:36 AM UTC+2 optimum...@gmail.com
>> wrote:
>>
>>> Hi
>>>
>>> I am trying to develop an GAE with multiple modules each having distinct
>>> codes talking to Firebase.  A client might need an app with only 2 modules
>>> and other might need 5 modules...i was hoping to load them as services or
>>> microservices...problem is how to connect them together ?
>>>
>>> It is like going to an accounting system and having a GL, Job Costing,
>>> Project costing as a separate module.  In the main entry point  (services:
>>> default) there will be a button to go to each services or modules  From
>>> what i understand in the documentation...each services (previously modules)
>>> cannot access to each of them unless via REST.
>>>
>>> Any bright ideas how to do it in GAE using Firebase ?
>>>
>>> Appreciate the 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/b7a45753-f14a-41ab-adb1-34f0daa4c12en%40googlegroups.com
> 
> .
>


-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A computer never does what you want... only what you tell it."
wesley chun :: @wescpy  :: Software
Architect & Engineer
Developer Advocate at Google Cloud by day; at night...
Python training & consulting : http://CyberwebConsulting.com
"Core Python" books : http://CorePython.com
P