[google-appengine] Re: Deployment suddenly failed today

2016-04-13 Thread Yan Zhou
Yes, it works, I add --oauth2 , and I can deploy after authenticate with 
browser
Thanks for your help


On Thursday, April 14, 2016 at 10:12:40 AM UTC+8, Ulapph Corporation wrote:
>
> Hi everyone! I also encountered same issue but below command works fine:
> appcfg.py --application= --email= --oauth2 update 
> PROJECT_DIR
>
> This will launch Chrome to authenticate using oauth2. Let me know if you 
> have any questions. 
>
> On Wednesday, April 13, 2016 at 10:07:34 PM UTC+8, Yan Zhou wrote:
>>
>> I tried to deploy my two projects today, one in python ,one in php, both 
>> failed. 
>>
>> It was OK yesterday, I wonder if anyone has the same problem.
>>
>> Here is the error for python project:
>> Error 404: --- begin server output ---
>> https://developers.google.com/accounts/docs/AuthForInstalledApps
>> --- end server output ---
>>
>> Here is the error for php project:
>> ERROR appcfg.py:2615 An unexpected error occurred. Aborting. 
>> Traceback (most recent call last):
>>   File "C:\Program Files (x86)\Google\google_appengine\
>> google\appengine\tools\appcfg.py", line 2452, in DoUpload
>> missing_files = self.Begin()
>>   File "C:\Program Files 
>> (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1974, 
>> in Begin
>> payload=config_copy.ToYAML())
>>   File "C:\Program Files 
>> (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1740, 
>> in Send
>> result = self.rpcserver.Send(url, payload=payload, **kwargs)
>>   File "C:\Program Files 
>> (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", 
>> line 440, in Send
>> self._Authenticate()
>>   File "C:\Program Files 
>> (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", 
>> line 581, in _Authenticate
>> super(HttpRpcServer, self)._Authenticate()
>>   File "C:\Program Files 
>> (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", 
>> line 310, in _Authenticate
>> credentials = self.auth_function()
>>   File "C:\Program Files 
>> (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3241, 
>> in GetUserCredentials
>> password = self.raw_input_fn(password_prompt)
>> EOFError: EOF when reading a line
>>
>> 2016-04-13 21:13:22 (Process exited with code 1)
>>
>> I appreciate if you can help
>> 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 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/a4203c2f-fdb9-46f7-8fd6-4b8f8d3f190e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Deployment suddenly failed today

2016-04-13 Thread Ulapph Corporation
Hi everyone! I also encountered same issue but below command works fine:
appcfg.py --application= --email= --oauth2 update 
PROJECT_DIR

This will launch Chrome to authenticate using oauth2. Let me know if you 
have any questions. 

On Wednesday, April 13, 2016 at 10:07:34 PM UTC+8, Yan Zhou wrote:
>
> I tried to deploy my two projects today, one in python ,one in php, both 
> failed. 
>
> It was OK yesterday, I wonder if anyone has the same problem.
>
> Here is the error for python project:
> Error 404: --- begin server output ---
> https://developers.google.com/accounts/docs/AuthForInstalledApps
> --- end server output ---
>
> Here is the error for php project:
> ERROR appcfg.py:2615 An unexpected error occurred. Aborting. 
> Traceback (most recent call last):
>   File "C:\Program Files (x86)\Google\google_appengine\
> google\appengine\tools\appcfg.py", line 2452, in DoUpload
> missing_files = self.Begin()
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1974, 
> in Begin
> payload=config_copy.ToYAML())
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1740, 
> in Send
> result = self.rpcserver.Send(url, payload=payload, **kwargs)
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", 
> line 440, in Send
> self._Authenticate()
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", 
> line 581, in _Authenticate
> super(HttpRpcServer, self)._Authenticate()
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", 
> line 310, in _Authenticate
> credentials = self.auth_function()
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3241, 
> in GetUserCredentials
> password = self.raw_input_fn(password_prompt)
> EOFError: EOF when reading a line
>
> 2016-04-13 21:13:22 (Process exited with code 1)
>
> I appreciate if you can help
> 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 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/478241aa-0125-42eb-9a14-da16eb26a111%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Model datastore application

2016-04-13 Thread Susan Lin
Thank you very much for the detail response ! One question as I am not famiar 
with the parent type entities. If I need to list all the contacts would this 
result in 1 read operation of 200 read operations (considering 200 friends)?

-- 
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/0c79a9dd-ead1-45f7-af1b-7a8b5b952c66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: SearchException - Failed to complete request

2016-04-13 Thread 'Nick (Cloud Platform Support)' via Google App Engine
Hey Ananthakrishnan,

This appears to be some kind of internal error, and is not something you 
can necessarily prevent as a developer. It appears it has happened in the 
past 

 
and was related to an internal issue. I'll look into this and report back 
with any findings.

Sincerely,

Nick
Cloud Platform Community Support

On Tuesday, April 12, 2016 at 10:51:18 AM UTC-4, Ananthakrishnan 
Venkatasubramanian wrote:
>
> Hi,
>
>
> We have an application developed using Java running in google appengine.
>
>
> When AppEngine's Search API is accessed for querying the records, 
> sporadically we get the following exception (not always). But when we try 
> again it is responding with results.
>
>
> Stacktrace : 
> Class : class com.google.appengine.api.search.SearchExceptionMessage : Failed 
> to complete request in 9498ms
>
> at 
> com.google.appengine.api.search.IndexImpl$4.convertException(IndexImpl.java:355)
> at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:96)
> at 
> com.google.appengine.api.search.FutureHelper.getInternal(FutureHelper.java:73)
> at com.google.appengine.api.search.FutureHelper.quietGet(FutureHelper.java:32)
> at com.google.appengine.api.search.IndexImpl.search(IndexImpl.java:506)
>
>
> Please let us know what is the issue behind this failure and what's the 
> remedy for it.
>
>
> Thanks in Advance.
>
>
> Regards,
>
> Ananthakrishnan.
>

-- 
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/1f2ac40e-7457-45ad-a08c-c0e32c83d0ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Starting a VM instance automatically when a user attempts to connect

2016-04-13 Thread 'Nick (Cloud Platform Support)' via Google App Engine
Hey Kevin,

This is essentially how autoscaling for vanilla App Engine 
 works. In order 
for it to work with VMs, you'll need to do exactly as you said, have a 
front-end proxy which i) accepts the user request ii) tells a VM to spin up 
iii) serves a waiting page to the user which will periodically check back 
through the proxy to see if the VM is ready iv) redirect to the VM once 
it's up. If an available VM exists, you won't need to spin one up and can 
immediately redirect the user.

This is a pretty common pattern generally, although even with Managed VMs, 
you can use auto-scaling with a minimum of 2 instances, which should cover 
pretty much any scenario. Finally, Compute Engine also has an autoscaler 
.

Hope this was helpful!

Nick

Cloud Platform Community Support

On Wednesday, April 13, 2016 at 2:21:40 PM UTC-4, Kevin Monagle wrote:
>
> Looking for a high level approach to this problem...
>
> Let's say I created 10 VMs. In order to minimize costs, I'd like to 
> observe those VMs and shut them down when no one is connected to them. This 
> part is easy...I can ping the machine and use the Google API to simply shut 
> the machine down if no one is connected.
>
> On the flip side, I'd like to automatically start the machine up when a 
> user attempts to connect. I don't want this to be a manual process.
>
> Users will always connect to my app on the VM via http on a particular 
> port. Would it be possible to put some kind of proxy in front of my 10 VMs 
> that would intercept incoming connections and start the target VM if it was 
> shut down? And then forward the connection to the target once it's running?
>
> Does anybody have any experience with this? Or does Google offer this 
> functionality in any form?   
>
> I'm using NodeJS in my app implementation. Any feedback/ideas would be 
> appreciated. 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 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/e0181006-5384-44f7-b09a-7cc09acf2e42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: my git repo is empty

2016-04-13 Thread 'Nick (Cloud Platform Support)' via Google App Engine
Hey Folks,

Just a quick update here to reassure anyone following that despite not 
updating on April 8th, we have no significant updates. We'll be updating 
the thread at an unspecified future date when we have a useful update to 
provide.

Cheers!

Nick
Cloud Platform Community Support

On Wednesday, March 30, 2016 at 3:06:09 PM UTC-4, Nick (Cloud Platform 
Support) wrote:
>
> Thanks for the quick reply! We'll update this thread with any further info 
> on or before Friday April 8th. If you have any questions or extra 
> information until then, feel free to reply with it and we'll be happy to 
> assist.
>
> Regards,
>
> Nick
> Cloud Platform Community Support
>
> On Wednesday, March 30, 2016 at 2:45:33 PM UTC-4, Andrew Arrow wrote:
>>
>> sure, 
>>
>> ~/dev $ gcloud beta source repos clone --verbosity debug default 
>> DEBUG: Running gcloud.beta.source.repos.clone with 
>> Namespace(__calliope_internal_deepest_parser=ArgumentParser(prog='gcloud.beta.source.repos.clone',
>>  
>>
>> usage=None, description='*(BETA)* Clone project git repository in the 
>> current directory.', version=None, formatter_class=> 'argparse.HelpFormatter'>, conflict_handler='error', add_help=False), 
>> account=None, authority_selector=None, authorization_token_file=None, 
>> cmd_func=> >, 
>> command_path=['gcloud', 'beta', 'source', 'repos', 'clone'], 
>> configuration=None, credential_file_override=None, document=None, 
>> dry_run=False, dst=None, format=None, h=None, help=None, 
>> http_timeout=None, log_http=None, project=None, quiet=None, 
>> src='default', trace_email=None, trace_log=None, trace_token=None, 
>> user_output_enabled=None, verbosity='debug', version=None). 
>> DEBUG: Executing ['git', 'clone', 
>> 'https://source.developers.google.com/p/static-1064/r/default', 
>> '/Users/aa/dev/default', '--config', 'credential.helper="gcloud.sh"'] 
>> Cloning into '/Users/aa/dev/default'... 
>> warning: You appear to have cloned an empty repository. 
>> Checking connectivity... done. 
>> Project [static-1064] repository [default] was cloned to 
>> [/Users/aa/dev/default]. 
>> INFO: Display format "default". 
>>
>>
>>
>> On 3/30/16, 'Nick (Cloud Platform Support)' via Google App Engine 
>>  wrote: 
>> > Hey Andrew, 
>> > 
>> > After attempting a cursory examination, we've determine we'll need more 
>> > info to ensure we're looking at the right parts of the system. Can you 
>> > attempt to clone the repository (gcloud beta source repos clone 
>> > ) 
>>
>> > with `--verbosity debug` flag and reply with the output? 
>> > 
>> > Regards, 
>> > 
>> > Nick 
>> > Cloud Platform Community Support 
>> > 
>> > On Saturday, March 26, 2016 at 12:11:09 PM UTC-4, Andrew Arrow wrote: 
>> >> 
>> >> also empty. I think during a transition from old app engine to new 
>> >> gcloud google lost my code? I want to submitt a support request but 
>> >> I'm on free plan. 
>> >> 
>> >> 
>> >> On 3/26/16, Mihail Russu  wrote: 
>> >> >>Where's my code? 
>> >> > Check the Downloading source code 
>> >> > < 
>> >> 
>> https://cloud.google.com/appengine/docs/python/tools/uploadinganapp#Python_Downloading_source_code>
>>  
>>
>> >> 
>> >> 
>> >> > section 
>> >> > to see if it'll help... 
>> >> > 
>> >> > On Saturday, March 26, 2016 at 1:18:16 AM UTC+2, Andrew Arrow wrote: 
>> >> >> 
>> >> >> my site has been running for a year at: 
>> >> >> 
>> >> >> https://static-1064.appspot.com/ 
>> >> >> 
>> >> >> I went to clone the repo: 
>> >> >> 
>> >> >> https://source.developers.google.com/p/static-1064/r/default 
>> >> >> 
>> >> >> and it clones an empty repo. Where's my code? 
>> >> >> 
>> >> >> 
>> >> > 
>> >> > -- 
>> >> > 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/WCz0JORRoQ0/unsubscribe. 
>>
>> >> 
>> >> 
>> >> > To unsubscribe from this group and all its topics, 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/5e58dc33-0d0d-4c43-8719-f0c4df7f6638%40googlegroups.com.
>>  
>>
>> >> 
>> >> 
>> >> > For more options, visit https://groups.google.com/d/optout. 
>> >> > 
>> >> 
>> > 
>> > -- 
>> > 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/WCz0JORRoQ0/unsubscribe. 
>>
>> > To unsubscribe from this group and all its topics, send an email to 
>> > 

[google-appengine] Re: Google Datastore Pricing

2016-04-13 Thread 'Zeehad (Cloud Platform Support)' via Google App Engine
Hello Susan,

The new pricing 

 
model and its application for Cloud Datastore is still in the works and 
will only go into effect on July 1st, 2016. Which is why it isn't currently 
possible to create a new project with new pricing effective on it.

I hope that helps. 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 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/496f8b4b-b086-49f5-baf3-ceafd998d79a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Executing synchronous queries to Google Cloud Endpoints in Javascript

2016-04-13 Thread 'Nicholas (Google Cloud Support)' via Google App Engine
Thanks for posting your questions here! You mentioned that this is 
something you are trying to accomplish in Javascript. If I understand your 
task correctly, you would like to perform the following:

   - Call gAPI function to send image to server
   - When gAPI call returns a URL (likely where the image can be found), 
   provide URL to the user
   - Save the complete data to the user
   
To help with this, it would be helpful if you could clarify a few things:

   - Where is the Javascript executing? (in browser using XMLHttpRequest or 
   Nodejs using the http package)
   - Is the provided URL required for the complete save?
   - Where is each part of this code executing (client device / App Engine 
   servers)?
   
Knowing the above should help us get more specific information to determine 
the best course of action for you.

On Wednesday, April 13, 2016 at 4:23:34 AM UTC-4, Juan Antonio Fernández 
Sánchez wrote:
>
> I have found a problem with GAE Cloud Endpoints when I  try calling a 
> function and I need the result of this function to other call.
> I know that I could resolve this problem to other way, but I want 
> understand how I can do this. 
> This is the summary, working in JavaScript.
> I call  to a gapi function to send an image to Server, when the process to 
> save finish, it return an url and i use this url to save the complete data 
> to user.
>
> The problem is that the users data always is saved before than the 
> response arrive and it is saved without url that I need because the second 
> call don't wait to first call.
>
>
> I have tried to use callbacks and  other tools but I don't find the way.
>
> Somebody had been the same problem? Thanks 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 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/58f0791f-c201-44db-b448-fc7b5892eaa7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Starting a VM instance automatically when a user attempts to connect

2016-04-13 Thread Kevin Monagle
Looking for a high level approach to this problem...

Let's say I created 10 VMs. In order to minimize costs, I'd like to observe 
those VMs and shut them down when no one is connected to them. This part is 
easy...I can ping the machine and use the Google API to simply shut the 
machine down if no one is connected.

On the flip side, I'd like to automatically start the machine up when a 
user attempts to connect. I don't want this to be a manual process.

Users will always connect to my app on the VM via http on a particular 
port. Would it be possible to put some kind of proxy in front of my 10 VMs 
that would intercept incoming connections and start the target VM if it was 
shut down? And then forward the connection to the target once it's running?

Does anybody have any experience with this? Or does Google offer this 
functionality in any form?   

I'm using NodeJS in my app implementation. Any feedback/ideas would be 
appreciated. 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 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/52111ac8-37a4-4388-9a91-dada063c8ea0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Unable to use remote api to access GAE datastore

2016-04-13 Thread 'Nick (Cloud Platform Support)' via Google App Engine
Hey Moshe, 

Did you manage to take any action based on reading my prior comment?

On Wednesday, April 13, 2016 at 4:23:42 AM UTC-4, Moshe Shaham wrote:
>
> I'm also having this issue
>
> On Wednesday, December 30, 2015 at 2:55:33 PM UTC+2, Manisha Awasthi wrote:
>>
>> Hi,
>>
>> I have some code which was using clientLogin to access datastore with 
>> remote api. But , that method is going to be deprecated in January and 
>> suggests to use oauth2 credential with help of remoteapi.
>>
>> Rempte Api has a method useServiceAccountCredential(ServiceAccount, P12). 
>> When I am using this method, I get below error: 
>>
>> Error:
>> com.google.appengine.repackaged.com.google.api.client.http.
>> HttpResponseException: 302 Found
>>
>>
>> I am unable to resolve this error. Can someone please help me?
>> Below is my maven dependency to access remote api
>>
>> 
>> com.google.appengine
>> appengine-remote-api
>> 1.9.30
>> 
>>
>>
>>
>>

-- 
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/b115dfb8-c6a7-4b3b-8df1-774988dabe12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: NPE when calling getLogger().info() from my application

2016-04-13 Thread Jean-Remi Malzieu
Thank you for you reply, and sorry for the late answer.

I have been quite busy those days, so my workaround was to simply remove 
the logs. I tried to reactivate them today to dig further, and it works 
correctly now. 
So I will no spend more time on the issue, but I feel uncomfortable about 
it... 

Le lundi 4 avril 2016 21:40:33 UTC+2, Nick (Cloud Platform Support) a 
écrit :
>
> This certainly looks like an internal issue. While it would have been best 
> to post to the Public Issue Tracker, we can use this thread to work on the 
> issue until it's clarified. Can somebody post code which will be able to 
> reproduce the issue? I've attempted to simply run Logger.info() and have 
> not observed the behaviour.
>
> Regards,
>
> Nick
> Cloud Platform Community Support
>
> On Friday, April 1, 2016 at 3:19:43 AM UTC-4, Jean-Remi Malzieu wrote:
>>
>> Hi,
>>
>> Everything was working properly until this morning. I didn't update my 
>> application.
>> It seems that the logging mechanism has been broken since when I 
>> call Logger.getLogger().info() I get the following stacktrace :
>>
>> java.lang.NullPointerException
>>  at 
>> com.google.apphosting.api.source.SourcePb$SourceLocation.setFile(SourcePb.java:139)
>>  at 
>> com.google.apphosting.runtime.AppLogsWriter.getSourceLocationProto(AppLogsWriter.java:380)
>>  at 
>> com.google.apphosting.runtime.AppLogsWriter.addLogRecordAndMaybeFlush(AppLogsWriter.java:183)
>>  at 
>> com.google.apphosting.runtime.ApiProxyImpl$EnvironmentImpl.addLogRecord(ApiProxyImpl.java:993)
>>  at com.google.apphosting.runtime.ApiProxyImpl.log(ApiProxyImpl.java:660)
>>  at com.google.apphosting.runtime.ApiProxyImpl.log(ApiProxyImpl.java:73)
>>  at com.google.apphosting.api.ApiProxy.log(ApiProxy.java:208)
>>  at 
>> com.google.apphosting.runtime.security.shared.intercept.java.util.logging.DefaultHandler.publish(DefaultHandler.java:51)
>>  at java.util.logging.Logger.log(Logger.java:616)
>>  at java.util.logging.Logger.doLog(Logger.java:641)
>>  at java.util.logging.Logger.log(Logger.java:664)
>>  at java.util.logging.Logger.info(Logger.java:1182)
>>
>>
>> Am I the only one having this issue? So far, I disabled the traces from 
>> the application, and it seems everything else is working. 
>>
>> Thank you for your 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 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/39923383-98da-4bce-9a3e-e8703b2ee130%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Cannot send mail

2016-04-13 Thread 'Nick (Cloud Platform Support)' via Google App Engine
Hey Keith,

If you can open a Public Issue Tracker 
 thread using label 
"Restrict-View-EditIssue", posting an example message which fails in the 
thread, we'll be able to take a look and potentially get the issue 
resolved, if you've already configured bounce notifications and can confirm 
that it's not a case of the mail bouncing. 

Regards,

Nick
Cloud Platform Community Support

On Sunday, April 10, 2016 at 7:06:33 PM UTC-4, Keith Chan wrote:
>
> Using the following java code:
>
> Properties props = new Properties();
> Session session = Session.getDefaultInstance(props, null);
> Message msg = new MimeMessage(session);
> msg.setFrom(new InternetAddress(FROM_EMAIL, "Sender"));
> msg.addRecipient(Message.RecipientType.TO, new InternetAddress(email, 
> name));
> msg.setSubject(title);
> msg.setText(msgBody);
> Transport.send(msg);
>
> If the msgBody contains a URL like
> MyApplication.appspot.com
> the message won't be received by the recipient, but system has no error log
> If I change the content to:
> MyApplication.appspot._com
> then everything works fine
>
> This happens on both Java and Python, seems the email server has a filter 
> not sending message with valid URL.
>
>
>

-- 
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/96774260-c2c9-41a8-a93c-cb5b037dbf79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: How to get a response regarding Billing Inquiry on Google Cloud Platform?

2016-04-13 Thread 'Zeehad (Cloud Platform Support)' via Google App Engine
Hello Shota,

The Cloud Services Billing Requests 
 form is 
the correct way of contacting billing support which you seem to have used.

I'm glad to see that you've now received a response from billing support 
and currently working towards getting your request addressed. I thank you 
for your patience during the delay of response which may have been caused 
due to a higher than normal volume of requests.

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 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/030b6b0f-554c-49f7-b3f9-f9d41a872ee2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: 502 bad gateway - flexible environment n1-standard-1

2016-04-13 Thread 'Nicholas (Google Cloud Support)' via Google App Engine
Thanks for posting your issue here. Unfortunately, the link you provided 
requires a login so we cannot access it.

However, given that flexible environment uses Compute Engine instances and 
the time frame of your post, this outage 
 may very well be 
relevant to this issue. Can you confirm the time frame during which your 
application was serving 502 and 503 errors? Does it align with the Compute 
Engine outage between *2016-04-11 18:25 PST* and *2016-04-11 19:27 PST*?

On Tuesday, April 12, 2016 at 12:25:54 AM UTC-4, Deepak Singh wrote:
>
> Dear Team,
>
> We just upgraded to flexible environment with n1-standard-1 and started 
> getting 502 / 503 most frequently.
>
> App is configured with Cloudflare so we raised an incident with cloudflare 
> and here is the result that they provided
>
>
> https://support.cloudflare.com/hc/en-us/requests/904469?flash_digest=d8eeedee4ea25b0d37f24b01ca4c0c89fc29b4a8
>
>
> Origin server is responding to 502 /503 for around 70% requests.
>
> Pls let us know. 
>
>
> -- 
> Tech
>

-- 
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/fc4b8a02-e1e2-40fe-8a56-12072afffdff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Deployment suddenly failed today

2016-04-13 Thread Mihail Russu
Failed deploys do happen occasionally and normally a rollback 

 & 
re-deploying fix that on 2nd or 3rd attempt.

If not - what command are you using to deploy? What's the version of your 
SDK?

Following the URL provided in the logs ( 
https://developers.google.com/accounts/docs/AuthForInstalledApps ) mentions 
deprecated way of authentication. Could that be the issue (basically you 
shouldn't be using your username & password when deploying)?

Thanks,
Mihail. 

On Wednesday, April 13, 2016 at 5:07:34 PM UTC+3, Yan Zhou wrote:
>
> I tried to deploy my two projects today, one in python ,one in php, both 
> failed. 
>
> It was OK yesterday, I wonder if anyone has the same problem.
>
> Here is the error for python project:
> Error 404: --- begin server output ---
> https://developers.google.com/accounts/docs/AuthForInstalledApps
> --- end server output ---
>
> Here is the error for php project:
> ERROR appcfg.py:2615 An unexpected error occurred. Aborting. 
> Traceback (most recent call last):
>   File "C:\Program Files (x86)\Google\google_appengine\
> google\appengine\tools\appcfg.py", line 2452, in DoUpload
> missing_files = self.Begin()
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1974, 
> in Begin
> payload=config_copy.ToYAML())
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1740, 
> in Send
> result = self.rpcserver.Send(url, payload=payload, **kwargs)
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", 
> line 440, in Send
> self._Authenticate()
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", 
> line 581, in _Authenticate
> super(HttpRpcServer, self)._Authenticate()
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", 
> line 310, in _Authenticate
> credentials = self.auth_function()
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3241, 
> in GetUserCredentials
> password = self.raw_input_fn(password_prompt)
> EOFError: EOF when reading a line
>
> 2016-04-13 21:13:22 (Process exited with code 1)
>
> I appreciate if you can help
> 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 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/073d53fe-29d6-4967-a64e-f73dc086984a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Error code 206 in Google AppEngine

2016-04-13 Thread Ananthakrishnan Venkatasubramanian
Hi,

Thanks for the reply. Will file it in the issue tracker. For this 
particular issue, there is no stacktrace in the appengine logs. Only the 
mentioned Error Message came in the logs and the request was terminated 
with 500.

On Wednesday, April 13, 2016 at 7:35:54 PM UTC+5:30, Nicholas (Google Cloud 
Support) wrote:
>
> Thanks for bringing this to our attention though this group is better 
> suited for best practices and implementation-type. For specific issues that 
> you believe to be problems with the platform, I would direct you to our 
> Public 
> Issue Tracker for App Engine 
> . That is a more 
> appropriate forum for this type of issue to get the appropriate attention.
>
> Should you file an issue there, please provide a link to it on this 
> thread, Also, since 500 errors can be served for almost any error in 
> application code, please include error logs, stack traces and code samples 
> that might be related on said issue.
>
> On Tuesday, April 12, 2016 at 10:42:28 AM UTC-4, Ananthakrishnan 
> Venkatasubramanian wrote:
>>
>> Hi,
>>
>>
>> We have an application developed using Java running in Google AppEngine.
>>
>>
>> Recently came across with following error in google appengine and 
>> returned 500 (production environment).
>>
>>
>> *Error Message:* A problem was encountered with the process that handled 
>> this request, causing it to exit. This is likely to cause a new process to 
>> be used for the next request to your application.*(Error code 206)*
>>
>>
>> The request ran for only 968ms and throwed 500 with the above message.
>>
>>
>> *Note:* All the other requests that came prior to the same instance of 
>> the server didn't cause any errors. They ran successfully.
>>
>>
>> Please provide the reasons for this kind of failure and what is the 
>> remedy for it.
>>
>>
>> Thanks in Advance.
>>
>>
>> Regards,
>>
>> Ananthakrishnan.
>>
>

-- 
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/8116c7f6-5e24-429d-aac4-642ec669de65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Deployment suddenly failed today

2016-04-13 Thread Yan Zhou
I tried to deploy my two projects today, one in python ,one in php, both 
failed. 

It was OK yesterday, I wonder if anyone has the same problem.

Here is the error for python project:
Error 404: --- begin server output ---
https://developers.google.com/accounts/docs/AuthForInstalledApps
--- end server output ---

Here is the error for php project:
ERROR appcfg.py:2615 An unexpected error occurred. Aborting. 
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\
google\appengine\tools\appcfg.py", line 2452, in DoUpload
missing_files = self.Begin()
  File "C:\Program Files 
(x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1974, 
in Begin
payload=config_copy.ToYAML())
  File "C:\Program Files 
(x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 1740, 
in Send
result = self.rpcserver.Send(url, payload=payload, **kwargs)
  File "C:\Program Files 
(x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", 
line 440, in Send
self._Authenticate()
  File "C:\Program Files 
(x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", 
line 581, in _Authenticate
super(HttpRpcServer, self)._Authenticate()
  File "C:\Program Files 
(x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py", 
line 310, in _Authenticate
credentials = self.auth_function()
  File "C:\Program Files 
(x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3241, 
in GetUserCredentials
password = self.raw_input_fn(password_prompt)
EOFError: EOF when reading a line

2016-04-13 21:13:22 (Process exited with code 1)

I appreciate if you can help
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 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/d6a9cc67-5fd2-48e5-8254-2e595ce8d90c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Error code 206 in Google AppEngine

2016-04-13 Thread 'Nicholas (Google Cloud Support)' via Google App Engine
Thanks for bringing this to our attention though this group is better 
suited for best practices and implementation-type. For specific issues that 
you believe to be problems with the platform, I would direct you to our Public 
Issue Tracker for App Engine 
. That is a more 
appropriate forum for this type of issue to get the appropriate attention.

Should you file an issue there, please provide a link to it on this thread, 
Also, since 500 errors can be served for almost any error in application 
code, please include error logs, stack traces and code samples that might 
be related on said issue.

On Tuesday, April 12, 2016 at 10:42:28 AM UTC-4, Ananthakrishnan 
Venkatasubramanian wrote:
>
> Hi,
>
>
> We have an application developed using Java running in Google AppEngine.
>
>
> Recently came across with following error in google appengine and returned 
> 500 (production environment).
>
>
> *Error Message:* A problem was encountered with the process that handled 
> this request, causing it to exit. This is likely to cause a new process to 
> be used for the next request to your application.*(Error code 206)*
>
>
> The request ran for only 968ms and throwed 500 with the above message.
>
>
> *Note:* All the other requests that came prior to the same instance of 
> the server didn't cause any errors. They ran successfully.
>
>
> Please provide the reasons for this kind of failure and what is the remedy 
> for it.
>
>
> Thanks in Advance.
>
>
> Regards,
>
> Ananthakrishnan.
>

-- 
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/6b402385-ad0e-4008-9583-262d7c2edd71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] CSR file

2016-04-13 Thread athene mutyambizi
Ive been trying to get a csr file for the ssl certificate. I have managed 
to get the key and l have evetered the information ey ask for, e.g company 
name, domain name etc, the problem is l am not seeing the csr file, where 
do l find the csr file?

-- 
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/39f5de4f-ebfd-4514-a0e0-74dd908e9463%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] GAE instance prices?

2016-04-13 Thread Anastasios Hatzis
Susan, I can't remember the prices for instance hours a few years ago. But 
since we use GAE, the pricing has changed a few times. I remember that once 
a free app became billable, there was a minimum monthly fee billed (not 
anymore). Separate billing of many other resources were dropped since we 
started, e.g. monthly fee for SSL SNIs, billing of Search API calls, etc., 
generalized into the instance hours. And generally costs for Storage and 
Datastore were simplified and reduced over time along with them becoming 
products you can use separately.

It also became easier to optimize certain costs, for example you can use 
different instance classes for modules in the same app.

After all, I understand standard GAE environment as a well integrated 
(almost) all-in-one platform, so in our use-cases we save lots of time and 
costs for administration of resources / services we would need otherwise. I 
would imagine that for other usage patterns alternatives could be cheaper 
or better, e.g. the flexible GAE environments, VMs, or even other cloud 
providers.

Ani

On Wednesday, April 13, 2016 at 6:44:42 AM UTC+2, Susan Lin wrote:
>
> Hard to just see why then the regular GAE instances are still so expensive.
>
> On Sunday, April 10, 2016 at 1:01:56 PM UTC-7, George-Cristian Bîrzan 
> wrote:
>>
>> I doubt however that they will go up 8 fold, which seems to be the gap 
>> currently 
>> On 10 Apr 2016 10:07 pm, "Susan Lin"  wrote:
>>
>>> Hi Jeff, yes you are correct they currently use these resources, but 
>>> according to Google from https://cloud.google.com/appengine/pricing 
>>> these prices will increase (which I assume is to the standard GAE prices) 
>>> once flex environment becomes GA.
>>>
>>> "Instances within the flexible environment are charged the cost of the 
>>> underlying Google Compute Engine Virtual Machines 
>>> . This is Beta-only pricing 
>>> and will increase once the flexible environment is GA."
>>>
>>> So these lower prices seem to be only temporary.
>>>
>>> On Saturday, April 9, 2016 at 2:25:28 PM UTC-7, Jeff Schnitzer wrote:

 “nearly exact” I meant to say. EB and Flexible runtimes are both mapped 
 to a whole hypervisor VM.

 Jeff

 On Sat, Apr 9, 2016 at 2:24 PM, Jeff Schnitzer  
 wrote:

> If you want a nearly close comparison to ElasticBeanstalk, use a 
> Managed VM (or “Flexible Runtime” I think they’re being called now). They 
> are currently billed at the same rate as the underlying Compute Engine 
> instance.
>
> Jeff
>
> On Fri, Apr 8, 2016 at 11:00 AM, Susan Lin  wrote:
>
>> I tested out Google App Engine 4 years ago and am coming back now to 
>> see if it is a possibility for another project I will be working on. I 
>> see 
>> the pricing for instances are still the same as they were 4 years ago:
>>
>> This table summarizes the CPU, memory, and hourly billing rate of the 
>> various instance classes.
>> Instance ClassMemory LimitCPU LimitCost per Hour per Instance
>>
>>
>>
>>
>> F1 128 MB 600 Mhz $0.05
>> F2 256 MB 1.2 Ghz $0.10
>> F4 512 MB 2.4 Ghz $0.20
>> F4_1G 1024 MB 2.4 Ghz $0.30
>> When compared to Amazon's PaaS ElasticBeanstalk a 1 cpu 1GB instance 
>> costs $0.013 an hour which is almost 30 times cheaper than Google App 
>> Engine front end instances. I understand they offer different services, 
>> but 
>> as far as front end instances it is hard to see why in 2016 (Moore's 
>> Law) a 
>> 1gb GAE instance is still so expensive. Does Google have any plans to 
>> lower 
>> the costs of these instances in the very near future?
>>
>> -- 
>> 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/9020a9f4-886b-4841-9de0-314c14c0ffee%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-appengi...@googlegroups.com.
>>> To post to this group, send email to google-a...@googlegroups.com.
>>> Visit this group at 

[google-appengine] Re: Model datastore application

2016-04-13 Thread Anastasios Hatzis
Susan,

as far as I understand your model and your procedures, Google Cloud 
Datastore should be a good choice. My suggestions are based on my 
experience with Python and the NDB API, but I assume there is no 
significant difference.

Since your app maintains hard limits in the number of friendships and 
friend requests, I suggest to tweak your model a little bit, so you can 
apply strong consistent queries (which require an ancestor, i.e. a parent). 
By doing this, we put the Friend objects into so-called entity groups, 
where each parent forms its own group.

FRIEND

-parent (Key of the owning user)
-id (auto-generated)
-friend1
-friend2
-status


This way, the app can perform a strongly consistent, keys-only query on 
both, number of friendships and number of pending friend requests. I guess, 
both queries would happen rather often (each time a friend request is 
created or friendship is accepted).

Furthermore, you already suggested two have two objects, one for each side 
of the friendship, good thinking. Since you already have the key of friend1 
as parent, we could remove it from the properties, too.

In addition, we could use the ID of the friend as ID of this relationship 
to avoid inconsistency by duplicate relationships. (I assume all User keys 
are parent-less, so the IDs already guarantee unique keys for all users in 
the datastore). In general, it is cheaper and faster to lookup for a key, 
than doing a query. This way, the existence of a key would tell us, if 
there is already a Friend object. The app also can compute the Friend key 
and directly get the object, rather than always first querying. And since 
we already have the friend's key (by the ID), we can also remove the 
property friend2.

FRIEND

-parent (Key of the friend1)
-id (ID of friend2's key)
-status


The status must be indexed though to perform the counts on requests and 
existing friendships. Any creation, update, and deletion of Friend objects 
would be in transactions across two groups (of friend1 and friend2), so 
both legs of the relationship are consistent.

In my experience using webapp2 for user authentication, it has benefits to 
keep the actual user account (the kind used for authentication) out of 
anything else in the app. So I would not use User keys as parent or for the 
friend key-property, but instead: computed keys with the same ID as the 
user (for uniqueness and consistency) and a different kind. Parents don't 
need to exist.

FRIEND

-parent (Key of kind FriendParent, ID the same as of corresponding user)
-id (ID of friend2)
-status


For example, two User objects stored, id:1 and id:2. As result of a friend 
request from 1 to 2, these two objects are created:

FRIEND- parent: KEY(FriendParent, 1)- id: 2- status: not_accepted_yet

FRIEND- parent: KEY(FriendParent, 2)- id: 1- status: new_request_to_accept


The parent keys don't exist as objects in the datastore, They only exist as 
parent keys in the Friend objects to put them into entity groups, so the 
app can apply strong consistent ancestor queries for each user.

Downside of the variant with parent: There is a technical limitation how 
often the app (or any other client) can write into the same entity-group 
(1/sec). In this model, it would give a hard limit how often each user can:

   - send/revoke friend request (or by the friend)
   - accept/deny request (or by the friend)
   - remove friend (or by the friend)
   
In other words: With parents in Friend, datastore can not maintain huge 
numbers of friendships, which implies high frequency of such write-ops, 
like followers at Twitter, channel subscriptions on YouTube etc. However, 
considering the rather low hard limits (200/100) I thought this constraint 
doesn't matter.

If it matters though, we cannot put Friend into bigger entity-groups, but 
then also loose the ability to perform strong consistent queries (which 
requires ancestor/parent). An eventually consistent ancestor-less query 
(for example, when the app counts number of requests for a user) may miss 
an entity that was written just milliseconds / seconds before, so it could 
be that the limit is slightly exceeded for some users. In that case, I 
would suggest to keep Friend in their own entity-group:

FRIEND

-id (similar to mutual_id: friend1_ID:friend2_ID)
-friend1
-friend2
-status



The app can still make the transactional writes with both. With this little 
tweak the app could at least get Friend by key in more use-cases than with 
an auto-generated ID.

I will continue my suggestion with the parent-version of Friend.

You have mentioned the display of names. As a general rule of thumb (and I 
would think that many Datastore users follow this rule), you do less data 
normalization than in SQL databases, in lack of join queries and such.

As far as it is only names, I would think that user names don't change 
frequently, so I would add the friend's name to the Friend model, so we 
don't need to query for the current name of up to 

[google-appengine] Re: Unable to use remote api to access GAE datastore

2016-04-13 Thread Moshe Shaham
I'm also having this issue

On Wednesday, December 30, 2015 at 2:55:33 PM UTC+2, Manisha Awasthi wrote:
>
> Hi,
>
> I have some code which was using clientLogin to access datastore with 
> remote api. But , that method is going to be deprecated in January and 
> suggests to use oauth2 credential with help of remoteapi.
>
> Rempte Api has a method useServiceAccountCredential(ServiceAccount, P12). 
> When I am using this method, I get below error: 
>
> Error:
> com.google.appengine.repackaged.com.google.api.client.http.
> HttpResponseException: 302 Found
>
>
> I am unable to resolve this error. Can someone please help me?
> Below is my maven dependency to access remote api
>
> 
> com.google.appengine
> appengine-remote-api
> 1.9.30
> 
>
>
>
>
-- 




*This email and any files transmitted with it contain information from 
Idomoo which may be privileged and confidential and intended solely for the 
use of the addressee. If you are not the intended recipient, be aware that 
any disclosure, copying, distribution or use of the contents of this 
information is strictly prohibited; please notify us immediately by* *an 
**email 
reply and delete it from your system. Idomoo accepts no liability for any 
personal views or opinions expressed in this email. Email transmission 
cannot be guaranteed to be secure or error-free. Idomoo therefore is not 
liable for any errors or omissions in the contents of this message, which 
arise as a result of email transmission.*

-- 
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/e2a6cb8f-379c-40ec-9553-07fb2e432c7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Executing synchronous queries to Google Cloud Endpoints in Javascript

2016-04-13 Thread Juan Antonio Fernández Sánchez
I have found a problem with GAE Cloud Endpoints when I  try calling a 
function and I need the result of this function to other call.
I know that I could resolve this problem to other way, but I want 
understand how I can do this. 
This is the summary, working in JavaScript.
I call  to a gapi function to send an image to Server, when the process to 
save finish, it return an url and i use this url to save the complete data 
to user.

The problem is that the users data always is saved before than the response 
arrive and it is saved without url that I need because the second call 
don't wait to first call.


I have tried to use callbacks and  other tools but I don't find the way.

Somebody had been the same problem? Thanks 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 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/9a2e0d86-f048-4607-b8ab-d3bc4be71d05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.