Re: [google-appengine] Make appspot URL unsearchable

2017-02-07 Thread himanshu kapoor
Thanks @barry

Can i add [login: admin] in nodeJS?

Added below config in my app.yaml and when i try to view appspot URL it 
throws 403 : forbidden
runtime: nodejs

handlers:
- url: /.*
  script: IGNORED
  login: admin

On Friday, February 3, 2017 at 4:31:44 PM UTC+5:30, barryhunter wrote:
>
> Probably the easiest way is to use robots.txt http://www.robotstxt.org/
>
> But its only honorary, engines *choose *to honour it. Google Search 
> should with time. 
>
>
> Could also add [ login: required ] to app.yaml to make need logging into 
> view (that prevents crawlers accessing it!) 
>
> https://cloud.google.com/appengine/docs/python/config/appref
>
>
> Or can implment some custom logic in the application itself. Check for 
> some cookie, or even a white listed list of IPs etc, and only show the site 
> if match. 
>
>
> On 3 February 2017 at 10:24, himanshu kapoor  > wrote:
>
>> Hi, 
>>
>> I have my staging environment running on appspot URL but it is searchable 
>> on google search though it is conflicting with my production URL.
>> Can i remove staging appspot URL for search or make it private?
>>
>> Thanks
>> Himanshu Kapoor
>>
>> -- 
>> 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 post to this group, send email to google-a...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/a611b03f-7086-4cca-a9e7-c9266a84aaa2%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/966ad70f-4576-4cc6-aea2-8988eb784c0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Problems installing jdk8 in flex

2017-02-07 Thread Vinay Chitlangia


On Wednesday, February 8, 2017 at 2:12:54 AM UTC+5:30, Cesar Oyarzun wrote:
>
> Hey Vinay I did try your comand but it doesn't work for me I'm getting 
> this error 
>
> E: The value 'jessie-backports' is invalid for APT::Default-Release as 
> such a release is not available in the sources
>
There was one typo in my command (Note to self: Dont type when you can 
copy!!). Copy pasting the Dockerfile that worked for me.

FROM gcr.io/google_appengine/jetty9-compat

RUN apt-get -q update && \

apt-get -y -q --no-install-recommends -t jessie-backports install 
openjdk-8-jdk && \

apt-get clean && \

rm /var/lib/apt/lists/*_*

ADD . /app
 

>
> On Monday, February 6, 2017 at 11:06:45 PM UTC-5, Vinay Chitlangia wrote:
>>
>> Thanks Adam.
>> In case anybody is facing a similar issue. This is the command that 
>> worked.
>> apt-get -y -q --no-install-recommends install -t jessie-backports openjdk
>> -8-jdk && \
>>
>> On Saturday, February 4, 2017 at 3:05:38 AM UTC+5:30, Adam (Cloud 
>> Platform Support) wrote:
>>>
>>> It looks like openjdk-8-jre was updated in jessie-backports but 
>>> openjdk-8-jdk-headless wasn't updated in the same repository (by the Debian 
>>> maintainers). Two things you can try are:
>>>
>>> 1) Use the version from the 'stable' distribution in your Dockerfile:
>>> apt-get -y -q --no-install-recommends install -t stable openjdk-8-jdk && 
>>> \
>>>
>>>
>>> 2) Manually install the needed dependency before openjdk-8-jdk:
>>> apt-get -y -q --no-install-recommends install openjdk-8-jdk-headless=
>>> 8u121-b13-1~bpo8+1 && \
>>>
>>> The second step would only work if that version existed in a repository, 
>>> and you had that repo in your /etc/apt/sources.list (eg. 'testing' or 
>>> 'unstable'), so further messing about with that may be necessary.
>>>
>>> On Friday, February 3, 2017 at 11:54:05 AM UTC-5, Vinay Chitlangia wrote:

 I am facing some problem when trying to install openjdk-8 in the flex 
 environment.

 Our setup is to use jetty9-compat runtime with openjdk-8 (We install 
 jdk to do dynamic compilation). The setup was working fine till about 2-3 
 days back.

 Now when I try to install I get the following error:


 The following packages have unmet dependencies:

  openjdk-8-jdk : Depends: openjdk-8-jre (= 8u121-b13-1~bpo8+1) but 
 8u111-b14-2~bpo8+1 is to be installed

  Depends: openjdk-8-jdk-headless (= 8u121-b13-1~bpo8+1) 
 but it is not going to be installed



 Our dockerfile is:

 FROM gcr.io/google_appengine/jetty9-compat

 RUN apt-get -q update && \

 apt-get -y -q --no-install-recommends install openjdk-8-jdk && \

 apt-get clean && \

 rm /var/lib/apt/lists/*_*

 ADD . /app

>>>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/80f0fdd9-9c2f-4f4c-9dd6-09e1fb375d8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: google endpoints (java), session cookies and iOS

2017-02-07 Thread 'George (Cloud Platform Support)' via Google App Engine


Hello Louis-Martin, 

Have you tried what is documented in “Using Endpoints in an iOS Client” 
above? What have you tried exactly, in iOS? What are the errors or what 
lack of functionality prevents you from implementing your app in iOS vs. 
success in Android? More detail would be welcome. If you want to provide 
information of non-public nature, you may simply send me an email. 

Maybe worth mentioning: the present discussion group is for general ideas 
on the Google App Engine, and related problems and trends. For coding and 
arcane issues in specific languages and situations, you’ll be at an 
advantage to rather post your questions on Stackoverflow 
, to gain this way access to a large number of 
experts; it is meant for providing you help with coding.

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2108157f-4815-42c0-b71a-3a995235694e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Google AppEngine Search, Python API missing from SDK?

2017-02-07 Thread Nick Papadonis
Hi Folks,

I would like to use this API, however after installing google-appengine via 
PIP (1.5.1 latest), I'm unable to find the Search API in the module.

# pip list |grep appengine
google-appengine (1.5.1)

$ ls env/lib/python2.7/site-packages/google/appengine/api | grep search
prospective_search

^ expecting search.py or search subdirectory

Yet, I see all the Google Cloud Docs referencing this functionality.

>From my app:
from google.appengine.api import search

Traceback (most recent call last):
  File "cds.py", line 4, in 
from google.appengine.api import search
ImportError: cannot import name search

Any insight appreciated.

Thanks so much,
Nick

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/17d05d11-36ba-44ea-a84d-6bed9a82d64a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Problems installing jdk8 in flex

2017-02-07 Thread 'Adam (Cloud Platform Support)' via Google App Engine
To use the backports repo you actually need to add it to your sources.list, 
as covered in the Debian Backports Instructions 
:

   1. 
   
   For jessie add this line
   
   deb http://ftp.debian.org/debian jessie-backports main
   
   to your *sources.list* (or add a new file with the ".list" extension to 
   /etc/apt/sources.list.d/) You can also find a list of other mirrors at
   https://www.debian.org/mirror/list
   2. 
   
   Run *apt-get update*
   

On Tuesday, February 7, 2017 at 3:42:54 PM UTC-5, Cesar Oyarzun wrote:
>
> Hey Vinay I did try your comand but it doesn't work for me I'm getting 
> this error 
>
> E: The value 'jessie-backports' is invalid for APT::Default-Release as 
> such a release is not available in the sources
>
> On Monday, February 6, 2017 at 11:06:45 PM UTC-5, Vinay Chitlangia wrote:
>>
>> Thanks Adam.
>> In case anybody is facing a similar issue. This is the command that 
>> worked.
>> apt-get -y -q --no-install-recommends install -t jessie-backports openjdk
>> -8-jdk && \
>>
>> On Saturday, February 4, 2017 at 3:05:38 AM UTC+5:30, Adam (Cloud 
>> Platform Support) wrote:
>>>
>>> It looks like openjdk-8-jre was updated in jessie-backports but 
>>> openjdk-8-jdk-headless wasn't updated in the same repository (by the Debian 
>>> maintainers). Two things you can try are:
>>>
>>> 1) Use the version from the 'stable' distribution in your Dockerfile:
>>> apt-get -y -q --no-install-recommends install -t stable openjdk-8-jdk && 
>>> \
>>>
>>>
>>> 2) Manually install the needed dependency before openjdk-8-jdk:
>>> apt-get -y -q --no-install-recommends install openjdk-8-jdk-headless=
>>> 8u121-b13-1~bpo8+1 && \
>>>
>>> The second step would only work if that version existed in a repository, 
>>> and you had that repo in your /etc/apt/sources.list (eg. 'testing' or 
>>> 'unstable'), so further messing about with that may be necessary.
>>>
>>> On Friday, February 3, 2017 at 11:54:05 AM UTC-5, Vinay Chitlangia wrote:

 I am facing some problem when trying to install openjdk-8 in the flex 
 environment.

 Our setup is to use jetty9-compat runtime with openjdk-8 (We install 
 jdk to do dynamic compilation). The setup was working fine till about 2-3 
 days back.

 Now when I try to install I get the following error:


 The following packages have unmet dependencies:

  openjdk-8-jdk : Depends: openjdk-8-jre (= 8u121-b13-1~bpo8+1) but 
 8u111-b14-2~bpo8+1 is to be installed

  Depends: openjdk-8-jdk-headless (= 8u121-b13-1~bpo8+1) 
 but it is not going to be installed



 Our dockerfile is:

 FROM gcr.io/google_appengine/jetty9-compat

 RUN apt-get -q update && \

 apt-get -y -q --no-install-recommends install openjdk-8-jdk && \

 apt-get clean && \

 rm /var/lib/apt/lists/*_*

 ADD . /app

>>>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5e913847-242e-440f-b69d-394b23c92a2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Problems installing jdk8 in flex

2017-02-07 Thread Cesar Oyarzun
Hey Vinay I did try your comand but it doesn't work for me I'm getting this 
error 

E: The value 'jessie-backports' is invalid for APT::Default-Release as such 
a release is not available in the sources

On Monday, February 6, 2017 at 11:06:45 PM UTC-5, Vinay Chitlangia wrote:
>
> Thanks Adam.
> In case anybody is facing a similar issue. This is the command that worked.
> apt-get -y -q --no-install-recommends install -t jessie-backports openjdk-
> 8-jdk && \
>
> On Saturday, February 4, 2017 at 3:05:38 AM UTC+5:30, Adam (Cloud Platform 
> Support) wrote:
>>
>> It looks like openjdk-8-jre was updated in jessie-backports but 
>> openjdk-8-jdk-headless wasn't updated in the same repository (by the Debian 
>> maintainers). Two things you can try are:
>>
>> 1) Use the version from the 'stable' distribution in your Dockerfile:
>> apt-get -y -q --no-install-recommends install -t stable openjdk-8-jdk && 
>> \
>>
>>
>> 2) Manually install the needed dependency before openjdk-8-jdk:
>> apt-get -y -q --no-install-recommends install openjdk-8-jdk-headless=
>> 8u121-b13-1~bpo8+1 && \
>>
>> The second step would only work if that version existed in a repository, 
>> and you had that repo in your /etc/apt/sources.list (eg. 'testing' or 
>> 'unstable'), so further messing about with that may be necessary.
>>
>> On Friday, February 3, 2017 at 11:54:05 AM UTC-5, Vinay Chitlangia wrote:
>>>
>>> I am facing some problem when trying to install openjdk-8 in the flex 
>>> environment.
>>>
>>> Our setup is to use jetty9-compat runtime with openjdk-8 (We install jdk 
>>> to do dynamic compilation). The setup was working fine till about 2-3 days 
>>> back.
>>>
>>> Now when I try to install I get the following error:
>>>
>>>
>>> The following packages have unmet dependencies:
>>>
>>>  openjdk-8-jdk : Depends: openjdk-8-jre (= 8u121-b13-1~bpo8+1) but 
>>> 8u111-b14-2~bpo8+1 is to be installed
>>>
>>>  Depends: openjdk-8-jdk-headless (= 8u121-b13-1~bpo8+1) 
>>> but it is not going to be installed
>>>
>>>
>>>
>>> Our dockerfile is:
>>>
>>> FROM gcr.io/google_appengine/jetty9-compat
>>>
>>> RUN apt-get -q update && \
>>>
>>> apt-get -y -q --no-install-recommends install openjdk-8-jdk && \
>>>
>>> apt-get clean && \
>>>
>>> rm /var/lib/apt/lists/*_*
>>>
>>> ADD . /app
>>>
>>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6a306e57-bd13-40b4-872e-238a4c38bec5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: 4 Instance spinning in 4 secs

2017-02-07 Thread 'Nick (Cloud Platform Support)' via Google App Engine
... and as a last bit of additional information, if you use gcloud beta 
logging read, be sure you read the help document for that command (gcloud 
beta logging read --help) and pay special attention to the need to use 
filters  to 
specify the resource you want to target.

On Tuesday, February 7, 2017 at 11:33:23 AM UTC-5, Nick (Cloud Platform 
Support) wrote:
>
> One thing I'd add to the above excellent comment by Nicholas G:
>
> There's currently a beta feature in the gcloud tool which can read app 
> logs and show any info, warning, error, etc. logs from within the requests, 
> while the gcloud app logs read won't show this information:
>
> gcloud beta logging read
>
>
> As to your last comment, Rajesh, yes I'd say that gathering logs like this 
> will contain information you probably don't want to share with the public, 
> so you would want to either email it to us directly or open a Public 
> Issue Tracker  
> report with the label "Restrict-View-EditIssue". 
>
> Cheers,
>
> Nick
> Cloud Platform Community Support
>
> On Tuesday, February 7, 2017 at 10:05:19 AM UTC-5, Nicholas (Google Cloud 
> Support) wrote:
>>
>> To get logs for a specific GAE service, you can use one of the following:
>>
>>- Selecting the text of the logs in the browser when viewing the 
>>Logging window in the Developers Console.  With most modern browsers, 
>> it's 
>>possible for web site designers to control how content is copied and 
>> pasted 
>>despite how it may be rendered on the page.  Thus, some page components 
>>that seem as though they won't look right when pasted elsewhere in plain 
>>text can actually look readable.
>>- Cloud SDK in the terminal with app logs read 
>>.  The 
>>output of such commands is generally formatted to be read in monospace, 
>>plain text window and are therefore suitable for plain text exchanges.
>>
>> * gcloud app logs read --level=debug --service= 
>> --version=*
>>
>>- Create an Export into a sink like Cloud Storage 
>>
>> 
>>  
>>so that you could then share the logs as files in an email
>>
>> These are generally very useful ways to troubleshoot as it makes it 
>> easier search key terms from logs in forums such as Google, Stack Overflow 
>> or this Google Group.  I hope the above is helpful.
>>
>> On Tuesday, February 7, 2017 at 12:08:05 AM UTC-5, Rajesh Gupta wrote:
>>>
>>> Hello Nick,
>>>
>>> Is there a way to get the txt of the log files.  I don't see any options 
>>> to export the logs for the given time to a txt file.
>>>
>>> I cannot pass on the text logs to the group, as url's contain some 
>>> information.  I will open a production case.  
>>>  
>>> Regards,
>>> Rajesh
>>> *www.VeersoftSolutions.com *
>>> *www.GainERP.com *
>>> *Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform and 
>>> Mobile*
>>>
>>>
>>>
>>>
>>> On Thu, Dec 29, 2016 at 5:12 AM, 'Nick (Cloud Platform Support)' via 
>>> Google App Engine  wrote:
>>>
 Hey Rajesh,

 The scaling behaviour on your app is highly dependent on the contents 
 of your app.yaml / appengine-web.xml file. Could you post that? 

 Also, it would be good to get a larger time-window selection of logs in 
 text format (rather than screenshot) along with a screenshot of the 
 instance numbers graph covering the same time period. This would be very 
 helpful in reasoning about what is happening here.

 If you have any further questions, feel free to send them along with 
 your reply and I'll be glad to assist in answering them. 

 Cheers,

 Nick
 Cloud Platform Community Support  


 On Sunday, December 25, 2016 at 9:56:07 PM UTC-5, Rajesh Gupta wrote:

> Sorry, in 4 minutes (not 4 sec) there are 4 new instances.  You can 
> see that betwee 23:32 & 23:36.
>
> There are only 6-7 requests during that time.
>
> On Mon, Dec 26, 2016 at 7:57 AM, Rajesh Gupta <
> rajesh.gu...@veersoftsolutions.com> wrote:
>
>> Hello 
>> Following is the traffic to our website.  
>>
>> You can see suddenly, there are new four instances ('i' in the orange 
>> color denotes log.warning).  I do log.warning in my context listener.  
>> Between 23:32 & 23:36, ie 4 secs, there are new four instances.  The 
>> traffic could have well served with the normal instance.  Each of the 
>> instance spinning and serving is taking approx 22 sec.  
>>
>> This is a very bad experience to our users.
>>
>> Please suggest the recommended correct settings for low traffic 
>> 

Re: [google-appengine] Re: 4 Instance spinning in 4 secs

2017-02-07 Thread 'Nick (Cloud Platform Support)' via Google App Engine
One thing I'd add to the above excellent comment by Nicholas G:

There's currently a beta feature in the gcloud tool which can read app logs 
and show any info, warning, error, etc. logs from within the requests, 
while the gcloud app logs read won't show this information:

gcloud beta logging read


As to your last comment, Rajesh, yes I'd say that gathering logs like this 
will contain information you probably don't want to share with the public, 
so you would want to either email it to us directly or open a Public Issue 
Tracker  report with 
the label "Restrict-View-EditIssue". 

Cheers,

Nick
Cloud Platform Community Support

On Tuesday, February 7, 2017 at 10:05:19 AM UTC-5, Nicholas (Google Cloud 
Support) wrote:
>
> To get logs for a specific GAE service, you can use one of the following:
>
>- Selecting the text of the logs in the browser when viewing the 
>Logging window in the Developers Console.  With most modern browsers, it's 
>possible for web site designers to control how content is copied and 
> pasted 
>despite how it may be rendered on the page.  Thus, some page components 
>that seem as though they won't look right when pasted elsewhere in plain 
>text can actually look readable.
>- Cloud SDK in the terminal with app logs read 
>.  The 
>output of such commands is generally formatted to be read in monospace, 
>plain text window and are therefore suitable for plain text exchanges.
>
> * gcloud app logs read --level=debug --service= 
> --version=*
>
>- Create an Export into a sink like Cloud Storage 
>
> 
>  
>so that you could then share the logs as files in an email
>
> These are generally very useful ways to troubleshoot as it makes it easier 
> search key terms from logs in forums such as Google, Stack Overflow or this 
> Google Group.  I hope the above is helpful.
>
> On Tuesday, February 7, 2017 at 12:08:05 AM UTC-5, Rajesh Gupta wrote:
>>
>> Hello Nick,
>>
>> Is there a way to get the txt of the log files.  I don't see any options 
>> to export the logs for the given time to a txt file.
>>
>> I cannot pass on the text logs to the group, as url's contain some 
>> information.  I will open a production case.  
>>  
>> Regards,
>> Rajesh
>> *www.VeersoftSolutions.com *
>> *www.GainERP.com *
>> *Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform and 
>> Mobile*
>>
>>
>>
>>
>> On Thu, Dec 29, 2016 at 5:12 AM, 'Nick (Cloud Platform Support)' via 
>> Google App Engine  wrote:
>>
>>> Hey Rajesh,
>>>
>>> The scaling behaviour on your app is highly dependent on the contents of 
>>> your app.yaml / appengine-web.xml file. Could you post that? 
>>>
>>> Also, it would be good to get a larger time-window selection of logs in 
>>> text format (rather than screenshot) along with a screenshot of the 
>>> instance numbers graph covering the same time period. This would be very 
>>> helpful in reasoning about what is happening here.
>>>
>>> If you have any further questions, feel free to send them along with 
>>> your reply and I'll be glad to assist in answering them. 
>>>
>>> Cheers,
>>>
>>> Nick
>>> Cloud Platform Community Support  
>>>
>>>
>>> On Sunday, December 25, 2016 at 9:56:07 PM UTC-5, Rajesh Gupta wrote:
>>>
 Sorry, in 4 minutes (not 4 sec) there are 4 new instances.  You can see 
 that betwee 23:32 & 23:36.

 There are only 6-7 requests during that time.

 On Mon, Dec 26, 2016 at 7:57 AM, Rajesh Gupta <
 rajesh.gu...@veersoftsolutions.com> wrote:

> Hello 
> Following is the traffic to our website.  
>
> You can see suddenly, there are new four instances ('i' in the orange 
> color denotes log.warning).  I do log.warning in my context listener.  
> Between 23:32 & 23:36, ie 4 secs, there are new four instances.  The 
> traffic could have well served with the normal instance.  Each of the 
> instance spinning and serving is taking approx 22 sec.  
>
> This is a very bad experience to our users.
>
> Please suggest the recommended correct settings for low traffic 
> website, so that instance spinning is not taking place.
>
>
> 23:54:14.017GET200203 B132 msGooglebot 2/robots.txt
> 23:54:12.571GET200203 B1.2 sGooglebot 2/robots.txt
> 23:36:08.111POST20031.12 KB23.3 sChrome 55
> /_ah/spi/com.veersoft.services.api.MastersApiV3.listProducts
> 23:35:51.633POST200291 B22.6 sChrome 55
> /_ah/spi/com.veersoft.services.api.ReportAPI.viewLedgerTransaction
> 23:34:09.281POST20051.89 KB19.1 sChrome 55
> /_ah/spi/com.veersoft.services.api.ReportAPI.viewLedgerTransaction
> 

[google-appengine] Re: /_ah/bounce

2017-02-07 Thread 'Nicholas (Google Cloud Support)' via Google App Engine
I made the issue private as it contained a fair amount of project-sensitive 
information.  Nevertheless, I've created a generalized and publicly 
available reproduction of the issue 
 which includes a 
usable workaround provided by another contributor on the reported issue. 
 Once this issue is properly triaged, I will sanitize its contents of 
sensitive information and make it public again.

On Tuesday, February 7, 2017 at 6:44:58 AM UTC-5, Attila-Mihaly Balazs 
wrote:
>
> @johnP: did you make the issue private intentionally?
>
> Thanks,
> Attila
>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d32864d6-52f7-4b0f-a902-cca25ea2edcc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Custom domain redirecting to appspot URL

2017-02-07 Thread Nicola Donadoni
Hi Alex,

We recently moved a professional website from Heroku to Google Cloud and we 
are experiencing the same problem when trying to use a custom domain. At 
the moment our users are having troubles due to the change in the domain, 
could you please whitelist volo.org.uk? You can contact me for any 
information you may need.

Kind Regards,
Nicola

On Thursday, 2 February 2017 21:41:54 UTC+1, Alex (Cloud Platform Support) 
wrote:
>
> Hi Fernando,
>
> It does seem that your issue may be solved by whitelisting your custom 
> domain as well and you will be contacted by email shortly to provide 
> additional information regarding your project. 
>
> For anyone reading this post in future and experiencing the same issue, it 
> will be necessary to proceed as this Custom Domains Inquiry form 
> 
>  
> advises and wait for it to become available for further assistance.
>
> Regards,
>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9d1b7f90-eade-44d1-8ee4-f02a1ed556ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Discovery Doc generation missing "format" tag for doubles

2017-02-07 Thread Eric Wasserman
I upgraded to Cloud Endpoints 2.0 recently. I never saw this issue when 
generating the now deprecated RPC doc. I believe there is an issue with 
discovery document generation, where it doesn't create the '"format": 
"double' for double fields. creditAmount below should have the format tag. 

Fixing this manually for all the similar fields fixed the errors when 
running the service generator for iOS client library generation. Has 
anybody else encountered this?

See:


"creditKickbackKash": {
 "httpMethod": "PUT",
 "id": "servUsApi.admin.creditKickbackKash",
 "parameterOrder": [
  "userId",
  "creditAmount"
 ],
 "parameters": {
  "userId": {
   "format": "int64",
   "location": "path",
   "required": true,
   "type": "string"
  },
  "creditAmount": {
   "location": "path",
   "required": true,
   "type": "number"
  }
 },
 "path": "creditKickbackKash/{userId}/{creditAmount}",
 "response": {
  "$ref": "ResultDTO"
 },
 "scopes": [
  "https://www.googleapis.com/auth/userinfo.email;
 ]
}

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/58ce01ae-b6b7-413d-9c5b-118c9f20a6eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: 4 Instance spinning in 4 secs

2017-02-07 Thread 'Nicholas (Google Cloud Support)' via Google App Engine
To get logs for a specific GAE service, you can use one of the following:

   - Selecting the text of the logs in the browser when viewing the Logging 
   window in the Developers Console.  With most modern browsers, it's possible 
   for web site designers to control how content is copied and pasted despite 
   how it may be rendered on the page.  Thus, some page components that seem 
   as though they won't look right when pasted elsewhere in plain text can 
   actually look readable.
   - Cloud SDK in the terminal with app logs read 
   .  The 
   output of such commands is generally formatted to be read in monospace, 
   plain text window and are therefore suitable for plain text exchanges.
   
* gcloud app logs read --level=debug --service= 
--version=*

   - Create an Export into a sink like Cloud Storage 
   

 
   so that you could then share the logs as files in an email
   
These are generally very useful ways to troubleshoot as it makes it easier 
search key terms from logs in forums such as Google, Stack Overflow or this 
Google Group.  I hope the above is helpful.

On Tuesday, February 7, 2017 at 12:08:05 AM UTC-5, Rajesh Gupta wrote:
>
> Hello Nick,
>
> Is there a way to get the txt of the log files.  I don't see any options 
> to export the logs for the given time to a txt file.
>
> I cannot pass on the text logs to the group, as url's contain some 
> information.  I will open a production case.  
>  
> Regards,
> Rajesh
> *www.VeersoftSolutions.com *
> *www.GainERP.com *
> *Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform and 
> Mobile*
>
>
>
>
> On Thu, Dec 29, 2016 at 5:12 AM, 'Nick (Cloud Platform Support)' via 
> Google App Engine  wrote:
>
>> Hey Rajesh,
>>
>> The scaling behaviour on your app is highly dependent on the contents of 
>> your app.yaml / appengine-web.xml file. Could you post that? 
>>
>> Also, it would be good to get a larger time-window selection of logs in 
>> text format (rather than screenshot) along with a screenshot of the 
>> instance numbers graph covering the same time period. This would be very 
>> helpful in reasoning about what is happening here.
>>
>> If you have any further questions, feel free to send them along with your 
>> reply and I'll be glad to assist in answering them. 
>>
>> Cheers,
>>
>> Nick
>> Cloud Platform Community Support  
>>
>>
>> On Sunday, December 25, 2016 at 9:56:07 PM UTC-5, Rajesh Gupta wrote:
>>
>>> Sorry, in 4 minutes (not 4 sec) there are 4 new instances.  You can see 
>>> that betwee 23:32 & 23:36.
>>>
>>> There are only 6-7 requests during that time.
>>>
>>> On Mon, Dec 26, 2016 at 7:57 AM, Rajesh Gupta <
>>> rajesh.gu...@veersoftsolutions.com> wrote:
>>>
 Hello 
 Following is the traffic to our website.  

 You can see suddenly, there are new four instances ('i' in the orange 
 color denotes log.warning).  I do log.warning in my context listener.  
 Between 23:32 & 23:36, ie 4 secs, there are new four instances.  The 
 traffic could have well served with the normal instance.  Each of the 
 instance spinning and serving is taking approx 22 sec.  

 This is a very bad experience to our users.

 Please suggest the recommended correct settings for low traffic 
 website, so that instance spinning is not taking place.


 23:54:14.017GET200203 B132 msGooglebot 2/robots.txt
 23:54:12.571GET200203 B1.2 sGooglebot 2/robots.txt
 23:36:08.111POST20031.12 KB23.3 sChrome 55
 /_ah/spi/com.veersoft.services.api.MastersApiV3.listProducts
 23:35:51.633POST200291 B22.6 sChrome 55
 /_ah/spi/com.veersoft.services.api.ReportAPI.viewLedgerTransaction
 23:34:09.281POST20051.89 KB19.1 sChrome 55
 /_ah/spi/com.veersoft.services.api.ReportAPI.viewLedgerTransaction
 23:33:10.557POST2003.49 KB1 sChrome 55
 /_ah/spi/com.veersoft.services.api.ReportAPI.viewLedgerTransaction
 23:33:06.428POST2001.46 KB246 msChrome 55
 /_ah/spi/com.veersoft.services.api.MastersApiV3.listBankCashAccounts
 23:32:40.392POST20031.12 KB463 msChrome 55
 /_ah/spi/com.veersoft.services.api.MastersApiV3.listProducts
 23:32:11.464POST2008.87 KB26.5 sChrome 55
 /_ah/spi/com.veersoft.services.api.MastersApiV3.viewCustomerTransaction
 23:31:56.158POST200644 B594 msChrome 55
 /_ah/spi/com.veersoft.services.api.MastersApiV3.viewCustomerTransaction
 23:31:09.541POST2008.87 KB707 msChrome 55
 /_ah/spi/com.veersoft.services.api.MastersApiV3.viewCustomerTransaction
 23:30:34.928POST2007.83 KB807 msChrome 55
 /_ah/spi/com.veersoft.services.api.MastersApiV3.viewCustomerTransaction
 23:30:11.573POST20027.9 KB672 msChrome 55
 

[google-appengine] Re: Unable to see SSL certificates in the console

2017-02-07 Thread Attila-Mihaly Balazs
Hi Anastasios / Alex,

- Anastasios - that has been the case (ie. only the uploading user being 
able to see the certificate) until recently, which is annoying and not 
documented anywhere. However recently it seems that not even the original 
user is able to see it (!!!).

- Alex - we checked with both users and with neither of them could we see 
any domains in the search console. Additionally, the users which verified 
the domains and the one which uploaded the certificate are different. Ie. 
user A verified the domains, user B uploaded the certificate. Both user A 
and user B can see the custom domains, however now neither can see the SSL 
certificate (although accessing the domain trough HTTPS works as expected).

Please clarify how both users can get access to the SSL settings (not to 
download the certificate, but to be able to set the (sub)domains on which 
the certificates are active for example).

Attila

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/35513e8a-bdc1-4f42-b6c0-7da62b313ace%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: When to use PubSub vs Task Queues

2017-02-07 Thread Joshua Fox
Thank you. We indeed use Task Queues for scheduling tasks, so if I
understand correctly, PubSub could not serve as a replacement.

On Fri, Feb 3, 2017 at 8:30 PM, 'Kim Lewandowski' via Google App Engine <
google-appengine@googlegroups.com> wrote:

> Hi Joshua --
>
> It’s a good question, and it has a complicated answer. Broader
> documentation on when to prefer one over the other is in process, and we
> hope that the feature set we expect to evolve in Cloud Tasks (Alpha
> signup here ) will make the distinctions clearer.
>
> Much of the answer is historical. Task Queues evolved as part of the App
> Engine developer libraries (back in 2009) and was (internally) slated for
> deprecation and replacement with release of Pub/Sub. As you observed:
> Pub/Sub does seem like a strong generalization of Task Queues. When Pub/Sub
> launched, however, we found that it did not meet the needs of a significant
> number of customers. A number of features that we thought weren’t
> particularly import (de-duplication, scheduled delivery, rate management,
> concurrency management, tagged tasks, configurable retries, etc) turned out
> to be critical and not supported in Pub/Sub.
>
> In response to that feedback, we took a step back and tried to define the
> core differences. The conclusion we arrived at is that Pub/Sub is a
> networking and big data product. It is agnostic to both the content and the
> target and focuses on delivering very high throughput capabilities to
> arbitrary handlers. Task Queues is a managed execution product. It is
> intended for running and managing large numbers of explicit commands. We’re
> working to repackage Task Queues as Cloud Tasks and open it up for broader
> integration with the rest of GCP. For example, we want to make it possible
> to enqueue Datastore operations or Cloud Functions for asynchronous
> execution. The idea is to make it as easy as possible to spin up large
> distributed systems without needing to write handlers and managers.
>
> An example of what we are trying to enable is the App Engine mapreduce
> library (written on top of Datastore and Task Queues). Instructions (in
> this case, map or reduce shards) are explicitly encoded and a user-space
> library can capitalize on Task Queues infrastructure to avoid needing any
> management tools or orchestration services.
>
> I hope that’s helpful and feel free to send me more details on your use
> case and we can provide you with more guidance.
>
> -Kim
> Product Manager of Task Queues
>
> On Thursday, February 2, 2017 at 7:34:00 AM UTC-8, Joshua Fox wrote:
>>
>> This Task Queues
>>  page  says "Tip:
>> In some cases Google Cloud Pub/Sub
>>  is a good alternative to pull
>> queues."
>>
>> Is there a doc that  says more about that?
>>
>> - In what cases are Pub/Sub or  Task Queues preferable?
>> - Why is PubSub only an alternative for pull task-queues given that both
>> push- and pull-style subscriptions are supported in Pub/Sub?
>> - Since Pub/Sub appears more general, why do Task Queues exist? Is it
>> just the scheduled push feature? Or the specific support for serialization
>> of Task objects?
>>
>> --
> 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 post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/70d72de0-84b8-44bd-974b-
> df6bca6f0ead%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*JOSHUA FOX*
Principal Software Architect | Freightos


☏* (Israel): *+972-545691165 | ☏* (US)*:  +1-3123400953* | Skype*:
joshuafox.freightos
Smoother shipping with the world's online freight marketplace.
Online Marketplace

 / In the News

 / Freightos Blog


-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this 

[google-appengine] Re: /_ah/bounce

2017-02-07 Thread Attila-Mihaly Balazs
@johnP: did you make the issue private intentionally?

Thanks,
Attila

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3721da56-e00c-481a-974a-543003b443aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.