Re: [google-appengine] Re: access denied when deploy why?

2018-03-20 Thread Mihail Russu
According to the logs from your other thread you now linked - you have 
specified a non-default service name (*cloudsql*) in your app.yaml 
or appengine-web.xml (which you still are not showing for whatever reason) 
so to access your deployed app you'd need to go 
to https://cloudsql-dot-pivotal-robot-662.appspot.com/ instead 
of https://pivotal-robot-662.appspot.com/

The correct URL shows a 500 error instead of a 404, not really sure what 
you expected to see there (since you didn't answer the questions I've been 
asking you) but for further debugging - look into logs and see why a 500 
error is shown.

Good luck.

On Tuesday, March 20, 2018 at 1:15:19 PM UTC+2, Guy Dviri wrote:
>
> thanks for willing to give a a hand.
>
> this is the continuous posting I've already post the log here 
> <https://groups.google.com/d/msg/google-cloud-endpoints/rvF6L4jJfoU/5geyfkV5CAAJ>
> : 
> the deploy command is : gradlew appenginedeploy 
>
>
>
> On Tue, Mar 20, 2018 at 1:03 PM, Mihail Russu <mih...@russu.net 
> > wrote:
>
>> access denied was an hour ago , maybe after few modifications that 
>>> message change , 
>>
>>
>> I was only pointing at your second screenshot, the way you posted it. No 
>> idea about what happened hours ago as you didn't provide any details on 
>> that.
>>
>> Again, you need to provide a lot more information if you want help, 
>> nobody can guess what's going on just by looking at the screenshots. 
>> Answering the following questions might help clear things up a bit:
>>
>>  - What is your deployment command (copy & paste the exact command how 
>> you deploy your app)?
>>  - What is the result of that command (i.e. what log messages are you 
>> seeing when an app is deployed (again, copy and paste exact & full log 
>> messages when your app is being deployed))
>>  - Provide the contents of your `appengine-web.xml` if it's a Java app 
>> and you don't have the `app.yaml` file.
>>  - Provide the list of files in your app's root directory (just the file 
>> names)
>>  - Are you following any tutorials? Which one?
>>
>> On Tuesday, March 20, 2018 at 12:49:09 PM UTC+2, Guy Dviri wrote:
>>>
>>> access denied was an hour ago , maybe after few modifications that 
>>> message change , 
>>> no about the app.yaml do I must have it with endpoints v2 & gradle?
>>>
>>> On Tue, Mar 20, 2018 at 12:37 PM, Mihail Russu <mih...@russu.net> wrote:
>>>
>>>> It doesn't say "access denied", it says "Not Found" and we have no way 
>>>> of knowing why without you providing a lot more information first, i.e. 
>>>> telling what and how you deployed, i.e. do you have a valid `app.yaml`? 
>>>> How 
>>>> does it look like? Does an entry point defined? Did the deployment show 
>>>> any 
>>>> errors? etc.
>>>>
>>>> -- 
>>>> 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/NGEMMDrBoHU/unsubscribe
>>>> .
>>>> To unsubscribe from this group and all its topics, 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/80577a97-b76e-41f7-95c8-c110b1dc802c%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/google-appengine/80577a97-b76e-41f7-95c8-c110b1dc802c%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>> 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/NGEMMDrBoHU/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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/f65a38ff-98a0

Re: [google-appengine] Re: access denied when deploy why?

2018-03-20 Thread Mihail Russu

>
> access denied was an hour ago , maybe after few modifications that message 
> change , 


I was only pointing at your second screenshot, the way you posted it. No 
idea about what happened hours ago as you didn't provide any details on 
that.

Again, you need to provide a lot more information if you want help, nobody 
can guess what's going on just by looking at the screenshots. Answering the 
following questions might help clear things up a bit:

 - What is your deployment command (copy & paste the exact command how you 
deploy your app)?
 - What is the result of that command (i.e. what log messages are you 
seeing when an app is deployed (again, copy and paste exact & full log 
messages when your app is being deployed))
 - Provide the contents of your `appengine-web.xml` if it's a Java app and 
you don't have the `app.yaml` file.
 - Provide the list of files in your app's root directory (just the file 
names)
 - Are you following any tutorials? Which one?

On Tuesday, March 20, 2018 at 12:49:09 PM UTC+2, Guy Dviri wrote:
>
> access denied was an hour ago , maybe after few modifications that message 
> change , 
> no about the app.yaml do I must have it with endpoints v2 & gradle?
>
> On Tue, Mar 20, 2018 at 12:37 PM, Mihail Russu <mih...@russu.net 
> > wrote:
>
>> It doesn't say "access denied", it says "Not Found" and we have no way of 
>> knowing why without you providing a lot more information first, i.e. 
>> telling what and how you deployed, i.e. do you have a valid `app.yaml`? How 
>> does it look like? Does an entry point defined? Did the deployment show any 
>> errors? etc.
>>
>> -- 
>> 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/NGEMMDrBoHU/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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/80577a97-b76e-41f7-95c8-c110b1dc802c%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/80577a97-b76e-41f7-95c8-c110b1dc802c%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> 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/f65a38ff-98a0-487e-97d2-4cc80765d365%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: access denied when deploy why?

2018-03-20 Thread Mihail Russu
It doesn't say "access denied", it says "Not Found" and we have no way of 
knowing why without you providing a lot more information first, i.e. 
telling what and how you deployed, i.e. do you have a valid `app.yaml`? How 
does it look like? Does an entry point defined? Did the deployment show any 
errors? etc.

On Tuesday, March 20, 2018 at 11:42:29 AM UTC+2, Guy Dviri wrote:
>
>
> 
>
>
> to this :
>
>
> 
> why?
>

-- 
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/80577a97-b76e-41f7-95c8-c110b1dc802c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Does 1 service = 1 instance (thus potentially cost more)?

2018-03-06 Thread Mihail Russu
If it’s a large & complex app - it might make sense to split some parts of its 
code into separate logical services.

And yeah, a smaller app probably would load a lot faster than a complex one so 
I don’t think that would have anything to do with bandwidth costs but would 
definitely help with reducing the latency on launching new instances.

Also, you might want to look into microservices ( 
https://en.wikipedia.org/wiki/Microservices 
<https://en.wikipedia.org/wiki/Microservices> ) where the approach is to split 
the app into as many small micro app as possible in order to make the 
development of the app easier...

> On Mar 6, 2018, at 11:43 PM, asmith26 <asmith9...@gmail.com> wrote:
> 
> Thank you for your answer - can I ask what the advantages of multiple 
> services app are on a single service (default) app? Perhaps if a particular 
> service is requested multiple times, and that service is significantly 
> smaller that a single service app, it may be cheaper due to smaller bandwidth 
> costs??
> 
> Many thanks again for your help!
> 
> 
> On Tuesday, March 6, 2018 at 9:18:46 PM UTC, Mihail Russu wrote:
> Your app isn't limited by one instance whether you have one or more services 
> up (i.e. the more traffic you get - the more instances wil be fired up even 
> if you only have one service).
> 
> Anyways, yes, you are correct - adding additional services will require new / 
> separate instances to be running so in many cases it will slightly increase 
> the cost.
> 
> On Tuesday, March 6, 2018 at 10:58:55 PM UTC+2, asmith26 wrote:
> Hi there,
> 
> I am trying to determine if I should break my GAE project from one service to 
> multiple smaller services.
> 
> Does each service added cost 1 more instance hour? Looking at the following 
> chart, it would indicate it might:
> 
> 
> 
> Thus I am wondering if 1 app running only 1 instance would be cheaper than 
> running multiple services?
> 
> Many thanks for any help in advance!
> 
> -- 
> 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/XbnuBOaniwc/unsubscribe 
> <https://groups.google.com/d/topic/google-appengine/XbnuBOaniwc/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> google-appengine+unsubscr...@googlegroups.com 
> <mailto:google-appengine+unsubscr...@googlegroups.com>.
> To post to this group, send email to google-appengine@googlegroups.com 
> <mailto:google-appengine@googlegroups.com>.
> Visit this group at https://groups.google.com/group/google-appengine 
> <https://groups.google.com/group/google-appengine>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-appengine/0de117aa-caa3-4afb-9227-1dc7ab18ec59%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/google-appengine/0de117aa-caa3-4afb-9227-1dc7ab18ec59%40googlegroups.com?utm_medium=email_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <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/5F831CF4-39F5-4A0F-AF4A-09FEA6C37974%40russu.net.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Does 1 service = 1 instance (thus potentially cost more)?

2018-03-06 Thread Mihail Russu
Your app isn't limited by one instance whether you have one or more 
services up (i.e. the more traffic you get - the more instances wil be 
fired up even if you only have one service).

Anyways, yes, you are correct - adding additional services will require new 
/ separate instances to be running so in many cases it will slightly 
increase the cost.

On Tuesday, March 6, 2018 at 10:58:55 PM UTC+2, asmith26 wrote:
>
> Hi there,
>
> I am trying to determine if I should break my GAE project from one service 
> to multiple smaller services.
>
> Does each service added cost 1 more instance hour? Looking at the 
> following chart, it would indicate it might:
>
> [image: Hierarchy graph of services/versions/instances]
>
> Thus I am wondering if 1 app running only 1 instance would be cheaper than 
> running multiple services?
>
> Many thanks for any help in advance!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To 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/0d70476e-0799-4d14-a3bc-1d97c4fc5aa0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Appengine Location

2017-09-20 Thread Mihail Russu
Depending on what your'e after (connectivity time?) - probably just pick 
the closest location available for the product you need. 

https://cloud.google.com/about/locations/ says it's Tokyo or maybe Sydney 
but you'd better off test the latency yourself.

On Wednesday, September 20, 2017 at 5:59:53 AM UTC+3, Rajesh Gupta wrote:
>
> What is a good appengine location to choose, if you are serving primarily 
> the India customers.
>
> -- 
> Regards,
> Rajesh
> *www.VeersoftSolutions.com *
> *www.GainERP.com *
> *Accounting/Inventory/Orders/Sales/Purchase on Google Cloud Platform and 
> Mobile*
>
>

-- 
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/caef78f3-f475-4683-a9b3-d6a50d61839b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Using expressions/fields for Search API SortExpression default_value

2016-11-16 Thread Mihail Russu
Isn't that already the default behavior per docs 

?

On Wednesday, November 16, 2016 at 5:17:31 AM UTC+2, Bradley Mclain wrote:
>
> search.SortExpression(
>   expression="sort_field",
>   direction=search.SortExpression.DESCENDING,
>   default_value="default_field"
> )
>
> In the event that sort_field is missing I would like it to use the value 
> from default_field instead.
>
> Is something like this possible?
>
>
>

-- 
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/9d54bd3b-2bda-4d4c-a54d-4895e9f1cc4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: HTTPS Redirection

2016-11-10 Thread Mihail Russu
How did you configure it? What error are you seeing? What security options 
in app.yaml? You need to provide a lot more details on what you did for 
anyone to be able to determine what went wrong...

On Thursday, November 10, 2016 at 6:54:56 AM UTC+2, Mooc Ucentral wrote:
>
> Hello
> I have configured a custom domain for my project, but it does not work, it 
> currently automatically redirects me to https but it does not show anything 
> (it shows an error) I tried to change the security options of the app.yaml 
> file but it still does not work.
> What I can do?
>
>

-- 
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/0080a107-81aa-4f5c-8416-2ce961b5b77b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: App only runs on one instance?

2016-04-27 Thread Mihail Russu
What's your traffic? Does it always work no matter what or is it crashing? 
How do you check the number of running instances? What does your dashboard 
 look like? Unless you're 
doing manual scaling - there's nothing that can be set to limit the number 
of instances.

On Wednesday, April 27, 2016 at 4:18:38 PM UTC+3, Anthony Shapley wrote:
>
> Hi,
>
> We have an app running, using Django - and for some reason AppEngine won't 
> ever the application on more than a single instance? We haven't set 
> anything that should limit this in the app.yaml file, so just wondered if 
> there is anything else we could have configured incorrectly that would 
> prevent AppEngine from load balancing properly?
>
> Ant
>

-- 
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/9ff0d609-1a86-461c-9866-fb6bcd01ce9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Pointing 2nd custom domain to different URL (page) in my GAE app?

2016-04-21 Thread Mihail Russu
Try creating a new module within your app and redirecting requests matching 
the host you need to that new module via dispatch.yaml 
<https://cloud.google.com/appengine/docs/php/modules/routing>, i.e.:

- url: "custom_domain_2.example.com/*"
  module: module-for-custom-domain-2




On Thursday, April 21, 2016 at 6:46:22 PM UTC+3, Alex Kerr wrote:
>
> That's a good idea, thanks, but although I'm using PHP on the backend via 
> AJAX, my pages are actually all static (and in fact it's mostly a single 
> page app with different views contained in one HTML and JS file) and served 
> by CDN so I'm wondering if there's another way that doesn't rely on 
> server-side processing...
>
> Thanks
>
> On Thursday, April 21, 2016 at 4:23:16 PM UTC+1, Mihail Russu wrote:
>>
>> On your incoming requests in your PHP code check what hostname the 
>> request came to and depending on that decide what page to render...
>>
>> On Thursday, April 21, 2016 at 6:19:18 PM UTC+3, Alex Kerr wrote:
>>>
>>> Hi,
>>>
>>> I have a custom domain set up for my GAE app (PHP) and want to add a 2nd 
>>> custom domain that points to a different homepage - so to the user appears 
>>> to be a separate site. I don't want to create a whole new app as the two 
>>> sites need to partially share Datastore and Cloud Storage backend.
>>>
>>> Adding a second custom domain appears to be easy in the Cloud Dashboard 
>>> settings, so I just need a way to point it to 
>>> myapp.appspot.com/second-home-page.html rather than just 
>>> myapp.appspot.com/ (which my first custom domain does of course).
>>>
>>> Many thanks,
>>> Alex
>>>
>>>

-- 
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/61a413f9-05de-4a97-9a49-01ff2f2d4a4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Pointing 2nd custom domain to different URL (page) in my GAE app?

2016-04-21 Thread Mihail Russu
On your incoming requests in your PHP code check what hostname the request 
came to and depending on that decide what page to render...

On Thursday, April 21, 2016 at 6:19:18 PM UTC+3, Alex Kerr wrote:
>
> Hi,
>
> I have a custom domain set up for my GAE app (PHP) and want to add a 2nd 
> custom domain that points to a different homepage - so to the user appears 
> to be a separate site. I don't want to create a whole new app as the two 
> sites need to partially share Datastore and Cloud Storage backend.
>
> Adding a second custom domain appears to be easy in the Cloud Dashboard 
> settings, so I just need a way to point it to 
> myapp.appspot.com/second-home-page.html rather than just 
> myapp.appspot.com/ (which my first custom domain does of course).
>
> Many thanks,
> Alex
>
>

-- 
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/9c113c8c-daa2-453c-bb0d-31a61b8c54e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Deployment suddenly failed today

2016-04-14 Thread Mihail Russu
A more recent version of SDK doesn't require the --oauth2 parameter. All 
you'd need is just:
appcfg.py update .
(assuming you are running it in your project directory that has the 
app.yaml file)


On Thursday, April 14, 2016 at 5:12:40 AM UTC+3, 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/a073a922-0211-4980-9f7e-238626ddb7f8%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: Help - custom domains

2016-03-30 Thread Mihail Russu
Follow these steps on adding a custom domain for your application 

.

In short:
 - add the silver.example.com domain to GAE panel 

 - verify that you indeed own it
 - set a CNAME record via your nameservers to point the "silver" subdomain 
to "ghs.googlehosted.com"

and that's it...

On Wednesday, March 30, 2016 at 4:49:22 PM UTC+3, M. Hossein Amerkashi 
wrote:
>
> Hi, I appreciate help on following:
>
> I have a domain registered with Google domains; let's say *example.com 
> . *Since I wanted to create my own site, I went to 
> Google Domains and updated custom domain to point to BlueHost name server. 
> That worked and site is up and running.
>
> With AppEngine, I have an application called *xyz.appspot.com 
> . *
> I like to setup AppEngine custom domain and map *xyz.appspot.com 
> * to subdomain like *silver.example.com 
> * 
>
> Do I just setup AppEngine custom domain like silver.example.com?
> Do I have to go to Google Domain and change DNS settings there or do I 
> have to change some settings on other hosting (BlueHost)??
>
> 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/296574d5-7e48-474f-8b98-0c995ac5e628%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Geo information from Traces

2016-03-29 Thread Mihail Russu
Have you looked at X-AppEngine-Country & X-AppEngine-City request headers 

 that 
contain this information on every request received by your app? 

On Tuesday, March 29, 2016 at 9:03:53 AM UTC+3, Sandeep Dhameshia wrote:
>
> I've just observed geo information coming in the Traces(logs) for my GAE 
> project, as a http/client_city and http/client_country fields. Can this be 
> stored anyway and used within the project? Is it legit to use this in the 
> first place? In terms of Google policies. Your thoughts please, 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/923e2609-91c4-4041-83a4-767bb37de6e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-03-26 Thread Mihail Russu
>Where's my code?
Check the 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 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/5e58dc33-0d0d-4c43-8719-f0c4df7f6638%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: help with google app engine search api

2015-08-04 Thread Mihail Russu
Did you add anything into your index before querying it? Can you see your 
data on the admin page (i.e. http://127.0.0.1:8000/search/index )? Can you 
show how you're indexing things?

Thanks,
Mihail.

On Tuesday, August 4, 2015 at 6:05:38 PM UTC+3, Sourabh Agrawal wrote:

 *survey_marker = ndb.GeoPt(35.2, 40.5)*
 *query = distance(survey_marker , geopoint(35.2, 40.5))  1*
 *index = search.Index(name=myIndex)*
 *search_results = index.search(query)*
 *print search_results*
 *for doc in search_results:*
 *print doc*

 I tried this but it always gives this result on exectuing : 

 *search.SearchResults(number_found=0L)*


 Also read an thread on this at stackoverflow which says it doesnt works on 
 local machine.. so I deployed a test application but the result is no 
 different. 
 Plz help me with this.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4bf95a98-388b-4985-ba13-2c5a62fe3e98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: help with google app engine search api

2015-08-04 Thread Mihail Russu
The only required parameter of the `search.Index 
https://cloud.google.com/appengine/docs/python/search/indexclass` 
function is `name` which is normally a string, so it's safe to assume that 
`config.STORE_INDEX_NAME` simply stores the name of the index where you 
will be performing your search so you could've had something like 
`search.Index(name='my_index')` instead. Note that if you haven't 
previously added anything to that index  - the search will not return 
anything.

It looks like you're following the More Complex Search API Queries 
https://cloud.google.com/appengine/training/fts_adv/lesson1 tutorial 
which assumes you already have some basic familliarity with the Search API 
but if you don't, you should start with the Search API Basics 
https://cloud.google.com/appengine/training/fts_intro/lesson2 tutorial 
first which will explain you how to index your data first and then query it.

Thanks,
Mihail.

On Tuesday, August 4, 2015 at 9:06:04 AM UTC+3, Sourabh Agrawal wrote:

 Hey, 

 i am new to gaepython, I have been trying to find nearby areas to a given 
 location.. I found search api could do this, what i couldn't figure out is 
 that* what will be config.STORE_INDEX_NAME*. When is used this exact code 
 it says * NameError: name 'config' is not defined*


 from google.appengine.api import search

 query = distance(geopoint(35.2, 40.5), geopoint(35.2, 40.5))  100
 index = search.Index(config.STORE_INDEX_NAME)
 search_results = index.search(query)

 Thanks in advance



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e494b7e1-784e-46ac-87b8-16c25aa70aef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: help with google app engine search api

2015-08-04 Thread Mihail Russu
Your ndb.GeoPt part should probably look something like:

survey_marker = ndb.GeoPt(lat=35.1, lon=40.0)

Testing things in interactive console is perfectly normal.

Also, note that your index name needs to be persistent between your 
examples (it was myIndex in your previous message, locate_this in this 
one and as a variable locate_this (not a string)).

As per the tutorial I mentioned in my first response, the fields 
parameter of search.Document accepts a list of named fields, not just a 
field. Again, try going over the tutorial 
https://cloud.google.com/appengine/training/fts_intro/lesson2as it has 
answers to all of the issues you've had here so far.

Thanks,
Mihail.


On Tuesday, August 4, 2015 at 6:30:45 PM UTC+3, Sourabh Agrawal wrote:

 survey_marker= ndb.GeoPt(35.1, 40.0)
 d = search.Document(fields=survey_marker)
 search.Index(name=locate_this).put(d)
 query_obj= distance(survey_marker , geopoint(35.2, 40.5))  1
 results = search.Index(name=locate_this).search(query=query_obj)
 print results
 for doc in results:
 print doc

 I wasnt indexing earlier. but as i have indexed now(hopefully it is right 
 ) it returns TypeError: 'GeoPt' object is not iterable. btw I m doing 
 this on interactive console


-- 
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/68f33c63-e31b-46d1-a923-e6ce1d1fe41a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: PHP + Google App Engine + Google Cloud SQL

2015-08-03 Thread Mihail Russu
What's your questions and what exactly have you tried? Unless you share 
some minimal code that's causing the issue providing the details and asking 
very specific questions - you won't be able to get much help.

On Monday, August 3, 2015 at 6:20:13 AM UTC+3, Ng Keng Wei wrote:

 Hello,

 I am unable to retrieve records from google cloud SQL to PHP software, i 
 want to create register and log in page for users.


-- 
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0684bc64-ff5e-4e1c-94d0-36296ce1d28c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Looking for advice on best way to use memcache/datastore w front-end/back-end

2015-07-30 Thread Mihail Russu
Not sure what you're using to access the datastore but assuming it's 
objectify, have you looked at this doc 
https://github.com/objectify/objectify/wiki/Caching#global-cache? Your 
get by key entities could be automatically cached anyway.

Also, as stated here 
https://cloud.google.com/appengine/docs/java/memcache/:

 be sure that your application behaves acceptably when the memcache value 
 is suddenly not available. Values can expire from the memcache at any time, 
 and may be expired prior to the expiration deadline set for the value


So it's probably not a good idea to export something to memcache once a day 
as it's not guaranteed that your data will stay there for any amount of 
time at all (also, it's not clear what you mean by accessing memcache 
directly from the front-end, how would you go about that?). Instead, you 
could implement a handler on java end that will check some memcache keys 
and if the data exist - return it to the user but if the data doesn't exist 
- query the datastore, store the result in the memcache for next requests 
and return the data to the user. This, depending on the usage and the 
implementation could save you a lot of datastore reads but ofcourse check 
the above links for possible caveats.

Thanks,
Mihail.

On Thursday, July 30, 2015 at 7:44:44 AM UTC+3, Keith Chima wrote:

 So I have a rest service that is powered by the datastore. We have a 
 angular front-end and java backend, and use REST to access the datastore 
 data. To keep the front-end up-to-date, I want to access the datastore data 
 once per day, and store once per day.

 I assume I should access it once at the beginning of the day and store it 
 in the memcache. Then, I should access the memcache every time a user loads 
 the page.

 Assuming this is correct, should I access the memcache from the java end 
 and make a rest call every time the user loads the page, or should I access 
 the memcache directly from the front-end?

 Thanks,
 -Keith


-- 
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7c8cf831-35e9-4145-9e02-ac43648e4901%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Question regarding deleting entities from datastore

2015-07-29 Thread Mihail Russu
Try flushing memcache and see if the issue persists.

( You're probably getting the entity by key via ndb / objectify /etc that 
will query memcache / in-context cache first whether an entity exists  
only then query the datastore. Since you removed the entity directly from 
the datastore and not the way you put it there - memcache had no way of 
knowing that and thus keeps returning things until it expires / gets 
flushed. See more details here 
https://cloud.google.com/appengine/docs/python/ndb/cache, so yeah, it's 
probably working as expected. )

Thanks,
Mihail.


On Wednesday, July 29, 2015 at 12:52:29 AM UTC+3, Kenchu wrote:

 I've noticed that if I delete entities through the dashboard interface, 
 you can still access them if you have a key. They won't show up in queries 
 but the keys still returns entities.

 Is this by design? It seems kinda strange to me.


-- 
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/eb5157fb-30fb-4d7a-8013-06aeee2348ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Where can I set Maximum Daily Budget in the new Google Cloud Console?

2015-05-11 Thread Mihail Russu
Have you 
tried https://console.developers.google.com/project/APP_ID/appengine/settings 
(Dashboard - Compute - App Engine - Settings) where APP_ID is the ID 
of your app?

On Monday, May 11, 2015 at 10:49:37 AM UTC+3, 。おにぎり wrote:


 In the old console, I can set the Maximum Daily Budget like the below.


 https://lh3.googleusercontent.com/-79PyOLMyAHo/VVBeP_-H5wI/D-Q/Tc_Q4Bzhb6s/s1600/old.PNG



















 But in the new console, I cannot find it...
 Maybe Current blanace is the one?


 https://lh3.googleusercontent.com/-W0bMTy5KXts/VVBe7M-89dI/D-g/nc8nX1qoSqQ/s1600/new.PNG


-- 
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c0cd81bd-8eb1-4f00-89b4-7f4bc3052e12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Deploy issue, Help please

2015-03-25 Thread Mihail Russu
Is it still not working? Have you tried anything I suggested? What have you 
tried and what's not working?

-- 
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4dfbeb13-e458-4ba0-87b4-ad23af72d639%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Deploy issue, Help please

2015-03-24 Thread Mihail Russu
How are you deploying your app?

You could probably simply run the following command in your terminal:
C:\Python27\pythonw.exe C:\Program Files (x86)\Google\google_
appengine\appcfg.py update C:\Users\\Casey\Desktop\google-proxy-1.0 --
oauth2
(I don't have a windows machine to test it but don't see why it wont work 
although it might require some adjustments)

I you're using the GAE GUI tool - you need to find out how to enable oauth2 
authentication instead of username/password credentials.

Thanks,
Mihail.
On Tuesday, March 24, 2015 at 1:14:03 PM UTC+2, casey mote wrote:

 How do I change it? 











-- 
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b27d6952-31fb-4441-93f9-fcdf56180ec8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Deploy issue, Help please

2015-03-24 Thread Mihail Russu
Instead of 
--email
and
--passin
parameters try using a
--oauth2
which will open your browser with the Google Authentication page where you 
can enter your current credentials and approve the authorization.

It will work even better when you remove the
--no-cookies
parameter making a unique token save in a config file so that you won't 
have to authenticate the next time you use the
--oauth2
parameter.


Thanks,
Mihail.





On Tuesday, March 24, 2015 at 12:50:27 PM UTC+2, casey mote wrote:

 2015-03-24 03:41:59 Running command: ['C:\\Python27\\pythonw.exe', '-u', 
 'C:\\Program Files (x86)\\Google\\google_appengine\\appcfg.py', 
 '--no_cookies', u'--email=casey...@gmail.com javascript:', '--passin', 
 'update', u'C:\\Users\\Casey\\Desktop\\google-proxy-1.0']

 03:42 AM Application: greenarrow4403; version: secureable

 03:42 AM Host: appengine.google.com

 03:42 AM 

 Starting update of app: greenarrow4403, version: secureable

 03:42 AM Getting current resource limits.

 Password for casey...@gmail.com javascript:: Invalid username or 
 password.

 2015-03-24 03:42:06,345 ERROR appcfg.py:2448 An error occurred processing 
 file '': HTTP Error 401: Unauthorized. Aborting. 

 Error 401: --- begin server output ---

 Must authenticate first.

 --- end server output ---

 2015-03-24 03:42:06 (Process exited with code 1)
 You can close this window now.



 I keep getting this even though I know the login is correct. I even 
 changed my ps and retried and it gave it to me again 


-- 
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d4a39135-d2b6-4ced-9606-c2a03db7ca99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Machine system clock is incorrect ??

2015-02-04 Thread Mihail Russu
Sorry, missed your messages. There are two other options besides enabling 
the less secure setting:

1. Enable two-factor authentication and generate an app specific password 
which you will use for GAE only.
2. Use *--oauth2* parameter to generate a token. Since you're doing this on 
a remote machine without a browser - it's still possible  with the 
*--noauth_local_webserver *(see more 
https://cloud.google.com/appengine/docs/python/tools/uploadinganapp#Python_Password-less_login_with_OAuth2
).

Thanks,
Mihail.

On Thursday, February 5, 2015 at 5:47:41 AM UTC+2, saintthor wrote:

 it is caused by the google security setting. even in my local system can 
 not usr appcfg.py before turns the setting off.

 在 2015年2月4日星期三 UTC+8下午11:01:57,saintthor写道:

 it hasn't worked. it is the first time i try to download via a remote 
 system.


 the time seems correct. you see in the infos it is 9:48 AM UTC 0. about 
 10 mins later i posted here at 12:00:47 PM UTC+2.

  - You might be in a Viewer or some other role that does not allow what 
 you are trying to do.

 maybe. i try this on koding.

  - Enabling the access less secure apps option in account settings 
 which doesn't really sound right, instead I would try to add the --oauth2 
 parameter to authenticate via browser.

 i connect to the host via ssh, there is no browser to use --oauth2.

 在 2015年2月4日星期三 UTC+8下午7:20:50,Mihail Russu写道:

  - Has it ever worked?

  - Have you tried the obvious - making sure the time on your systems is 
 correct?

 Quick googling shows some other possible reasons like:
  - You might be in a Viewer or some other role that does not allow 
 what you are trying to do.
  - Enabling the access less secure apps option in account settings 
 which doesn't really sound right, instead I would try to add the --oauth2 
 parameter to authenticate via browser.

 Have you checked these?


 On Wednesday, February 4, 2015 at 12:00:47 PM UTC+2, saintthor wrote:

 why cause this? the password is right.

 i run this in a remote machine which is in another timezone.
 ===


 $ python appcfg.py download_app -A djdqbbs -V d2 ./djdq
 09:48 AM Host: appengine.google.com
 09:48 AM Fetching file list...
 Email: saintthor
 Password for saintthor: 
 Invalid username or password.
 Email: saintthor
 Password for sain...@gmail.com: 
 Invalid username or password.
 Email: saintthor
 Password for saintthor: 
 Invalid username or password.

 Error: Machine system clock is incorrect.



-- 
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d8e7711f-09da-4b05-a1b1-35936030faf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Machine system clock is incorrect ??

2015-02-04 Thread Mihail Russu
 - Has it ever worked?

 - Have you tried the obvious - making sure the time on your systems is 
correct?

Quick googling shows some other possible reasons like:
 - You might be in a Viewer or some other role that does not allow what 
you are trying to do.
 - Enabling the access less secure apps option in account settings which 
doesn't really sound right, instead I would try to add the --oauth2 
parameter to authenticate via browser.

Have you checked these?


On Wednesday, February 4, 2015 at 12:00:47 PM UTC+2, saintthor wrote:

 why cause this? the password is right.

 i run this in a remote machine which is in another timezone.
 ===


 $ python appcfg.py download_app -A djdqbbs -V d2 ./djdq
 09:48 AM Host: appengine.google.com
 09:48 AM Fetching file list...
 Email: saintthor
 Password for saintthor: 
 Invalid username or password.
 Email: saintthor
 Password for sain...@gmail.com javascript:: 
 Invalid username or password.
 Email: saintthor
 Password for saintthor: 
 Invalid username or password.

 Error: Machine system clock is incorrect.



-- 
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0a81f438-94a1-4b08-a7a2-cdaa71100f3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: urlfetch_stub.py:504] Stripped prohibited headers from URLFetch request: ['Host']

2015-01-28 Thread Mihail Russu
The message in the title is actually a warning, not an error and shouldn't 
prevent your code from running (GAE simply does not allow you to set some 
HTTP headers which is fine most of the time), although the code your are 
providing seems to be incomplete. You should provide more info/stack trace 
related to what you're trying to do.

Thanks,
Mihail.

On Wednesday, January 28, 2015 at 12:15:08 AM UTC+2, Emin Yesildere wrote:

 Hi;
 I try to scrap a website with using beautifulsoup, but this error occurs 
 at gae logs. How can I solve this issue?
 I use this script 

 import sys
 sys.path.append('libs/')
 reload(sys); sys.setdefaultencoding('utf-8')
 from bs4 import BeautifulSoup
 import urllib
 from google.appengine.api import urlfetch

 from datetime import datetime
 import locale
 import PyRSS2Gen
 locale.setlocale(locale.LC_ALL, '')
 import requests
 import codecs

 def parse(url):
  page.urllib2.urlopen(url)
  soup=BeautifulSoup(page.read())
  for link in soup.find_all('article',{'class':'item-list'}):
   ka= link.find_all('div')[1].get_text()
 .



-- 
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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2d9400c5-ccc5-4ed2-9a7f-a08281bba994%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Server go down

2015-01-27 Thread Mihail Russu
* - I really forgot the point of multiple instances, lol.*
When you get a lot of traffic and/or depending on how much resources your 
app needs, GAE will start launching new instances (virtual machines) at 
some point to make sure your project runs under any load. The new instances 
could even be located in different geographic locations so obviously they 
won't be sharing same RAM so your ALL_RESTAURANTS = [] (which is only 
saved in local machine's RAM) will be different on each instance and you 
don't really know which instance will handle your next request so some 
requests could be returning different results than others. This is one 
reason directly related to GAE but as you mentioned yourself it's also just 
not a good programming practice.

* - Why should i use ndb instead db?*
ndb is newer, faster, better version of db. It also does some nice things 
like caching for you which makes things cheaper in many cases (gets). The 
underlying datastore is identical though... See the cheatsheet for more 
differences and how to migrate from db in ndb if you decide to do so. 
https://docs.google.com/document/d/1AefylbadN456_Z7BZOpZEXDq8cR8LYu7QgI7bt5V0Iw/edit?ndplr=1pli=1

* - Actually this questions of save orders and products leaves me with 
insomnia, because i need to decide how to construct the appropriate data 
structure. I raised the hypothesized of create a  code for each product, 
because i need to send a product list and orders to a .js client via 
channel API. In first attempt i tried to store a dictionary, but did not 
work so a converted in to a  string. However, i guess i got your 
suggestion, if i have different data models i cand bind them from the key 
(email).*
Don't forget that an entity cannot be larger than 1MB so you could 
potentially at some point have so many orders/products for a particular 
Establishment / Restaurant that they wouldn't fit a single 
establishment. + the larger the entity is the more time it will take to get 
it form datastore and to parse the string (or the dictionary) into the 
object you need.

For your example you could have something like this below the class 
Establishment(db.Model) definition: 

class Order(db.Model):
  date = db.DateProperty()
  people = db.IntegerProperty()
  cost = db.FloatProperty()
  products = db.KeyProperty(kind=Product, repeated=True) #could be useful 
if each order contains a list of products used for that order
  #establishment = db.KeyProperty(kind=Establishment) #might or might not 
be necessary
  ...

class Product(db.Model):
  name = db.StringProperty()
  cost = db.FloatProperty()
  available = db.BooleanProperty()
  #establishment = db.KeyProperty(kind=Establishment) #might or might not 
be necessary
  ...

To bind them all you could either have an establishment property in 
both Order/Product classes and have it point to a particular establishment 
or you could use the establishment key as the parent of the Order/Product 
entity. You would need to understand the difference first and decide for 
yourself which would better work for you.


*  - you said: You might not need any (most) of the indexes, can you 
please show me an example?*
I don't really know if that's also the case with db but in ndb all your 
model properties are indexed by default which means you can query on any of 
them (i.e. show restaurants where the name == 'xxx' or orders == 'yyy'). 
Most of the time you don't need that and it also makes writes a lot more 
expensive. In your Establishment model you may or may not need to index 
name/email properties but the orders / products properties sound like they 
might change a lot and don't need to be indexed (this is just a guess) so 
you would define them as:
orders = db.StringProperty(indexed=False)
products = db.StringProperty(indexed=False)


On Tuesday, January 27, 2015 at 7:52:52 PM UTC+2, Saturnino Mateus wrote:

 Thanks for the answer.
 Basing in what you said, i have a few questions:
 - I really forgot the point of multiple instances, lol.
 - Why should i use ndb instead db?
 - Actually this questions of save orders and products leaves me with 
 insomnia, because i need to decide how to construct the appropriate data 
 structure. I raised the hypothesized of create a code for each product, 
 because i need to send a product list and orders to a .js client via 
 channel API. In first attempt i tried to store a dictionary, but did not 
 work so a converted in to a string. However, i guess i got your 
 suggestion, if i have different data models i cand bind them from the key 
 (email).
  - you said: You might not need any (most) of the indexes, can you 
 please show me an example?

 Best Regards! 

 Em terça-feira, 27 de janeiro de 2015 13:57:19 UTC-2, Mihail Russu 
 escreveu:

 Yes, your ALL_RESTAURANTS list will not always contain the full list of 
 Restaurants for many reasons, including the ones you provided.

 Also, there are some more things I noticed in your code at a glance:

  - Your project

[google-appengine] Re: Server go down

2015-01-27 Thread Mihail Russu
Yes, your ALL_RESTAURANTS list will not always contain the full list of 
Restaurants for many reasons, including the ones you provided.

Also, there are some more things I noticed in your code at a glance:

 - Your project will run on multiple instances meaning each instance will 
have its own copy of ALL_RESTAURANTS so you will likely not be getting any 
consistent results of what's in the ALL_RESTAURANTS list.

 - You should be using NDB instead of older DB

 - It *might *be a good idea to have orders and products properties as 
separate data models rather than strings.

 - Since one email seem to only have one restaurant you could use the email 
address as the id of the restaurant, this would let you do free get by 
id rather than expensive queries queries.

 - You might not need any (most) of the indexes (i.e. you need to specify 
indexed=False next to each property that you do not want to be indexed)

Thanks,
Mihail.


On Tuesday, January 27, 2015 at 1:03:21 PM UTC+2, Saturnino Mateus wrote:

 I'm facing a problem with code organization with GAE, so i'm trying this 
 solution below. I created a global list wich will contains all Restaurant 
 objects reference, i know that is not good programming practice and here i 
 go with my doubt: is there some how i lost every Restaurant references 
 appended on the list? Like Google server go down and lost?

 ALL_RESTAURANTS = []

 class Establishment(db.Model):
 name = db.StringProperty()
 email = db.StringProperty()
 orders = db.StringProperty()
 products = db.StringProperty()
 state = db.StringProperty()

 class Restaurant(object):
 def __init__(self,name,email):
 self.name = name
 self.email = email

 def save(self):
 que = db.Query(Establishment)
 que.filter('email =',self.email)
 results = que.fetch(limit=1)

 if len(results)0:
 logging.info('Already exist a restaurant associated to this 
 email')
 return False
 else:
 restaurant = Establishment(name=self.name
 ,email=self.email,products='empty',orders='empty',state='OFFLINE')
 restaurant.put()
 logging.info('Restaurant '+self.email+' saved in DB!')
 return True

 class TheHandler(webapp2.RequestHandler):
 def get(self):
 newRestaurant = Restaurant(name='The Pizza',email='
 te...@example.com javascript:')
 newRestaurant.save()
 ALL_RESTAURANTS.append(newRestaurant)

 anotherRestaurant = Restaurant(name='The Other Pizza',email='
 te...@example.com javascript:')
 anotherRestaurant.save()

 ALL_RESTAURANTS.append(anotherRestaurant)
 Best 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 http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/22b7411f-6dd4-4cdc-92d0-9ba5244cb177%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Bug in ndb with StructuredProperty?

2014-10-24 Thread Mihail Russu
Once you do 
model2.put()
the exception will be raised as expected. There is no validation prior to 
attempting to store the data in datastore unless you'd like to manually 
create it.

I.e. to get the error you were looking for try the following code:

class SecondModel(ndb.Model):
important_prop = ndb.StringProperty(required=True)


class FirstModel(ndb.Model):
some_prop = ndb.StringProperty()

some_other_prop = ndb.StructuredProperty(SecondModel, required=True)


def some_func():

buggy = None # attention here

model2 = SecondModel(important_prop=buggy)
*model2**.put()*
model1 = FirstModel(some_other_prop=model2)
model1.put()
return


The highlighter line is all that was added.

Thanks,
Mihail.

On Friday, October 24, 2014 8:04:13 AM UTC-5, Lapteuh wrote:

 Hello. Noticed a strange behavior in the library ndb. In my opinion it 
 looks like a bug.

 Example:

 class SecondModel(ndb.Model):
 important_prop = ndb.StringProperty(required=True)


 class FirstModel(ndb.Model):
 some_prop = ndb.StringProperty()

 some_other_prop = ndb.StructuredProperty(SecondModel, required=True)
 
 
 def some_func():

 buggy = None # attention here

 model2 = SecondModel(important_prop=buggy)
 model1 = FirstModel(some_other_prop=model2)
 model1.put()
 return 


 Despite the fact that the code does not need to work, he works. No 
 exception! '*required*' option in property '*important_prop*' from '
 *SecondModel*' just ignored.


-- 
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 http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How to organize GAE Modules app structure and code?

2014-10-15 Thread Mihail Russu
I am copying this question from SO as it seems to be off-topic over there.

I have some GAE apps which I am thinking to separate into three modules: 
*default*/*www*, *mobile* and *api* but I am having some difficulties 
understanding Modules and how to organize the code.

According to the image found here 
https://cloud.google.com/appengine/docs/python/modules/#Python_Configuration 
this is how an app should look like:

https://cloud.google.com/appengine/docs/images/modules_yaml_files2.png



This is the simplified structure I came up with so far:

gae-app/
├── modules
│   ├── api
│   │   ├── app.yaml
│   │   └── src
│   │   └── main.py
│   ├── mobile
│   │   ├── app.yaml
│   │   └── src
│   │   └── index.html
│   └── www
│   ├── app.yaml
│   └── src
│   ├── main.py
│   └── templates
├── cron.yaml
├── index.yaml
└── queue.yaml



 - The *api* module provides bunch of API functions and works fine on its 
own.

 - The *mobile* module is just a bunch of html+js which is working just 
fine with the *api* module via ajax.

 - The *default*(*www*) module will someday become just like the *mobile* 
module 
containing only html+js files and working with *api* module via ajax but 
for now most of the templates are generated server side via *jinja2* which 
is causing some questions.


So the questions are:

1. Since both *api* and *default*(www) modules are working server side with 
Datastore for now, where do I keep my Datastore models in this 
image/structure? In addition to that they both share some libraries, where 
do I keep them? Do I create a new **lib** folder in app's root folder and 
store the common/shared files there and then symlink it to each module?

2. What's the best way to make all this work with separate git repos? I 
would want each of my modules to have its own repository. How would that 
work with shared models/libs from Q1? GAE apps with Modules seem to allow 
only one *dispath.yaml* / *cron.yaml* / *index.yaml* / *queue.yaml* / etc 
per app (not per module) so which repo would have those files?

I realize that there isn't a single correct answer to the questions but I 
am looking for best practices. Note that I just started working with 
Modules earlier today so my understanding how they work might be completely 
wrong.

-- 
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 http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: JS and Css files are not loading

2014-10-06 Thread Mihail Russu
You need to define routes for static files in your *app.yaml.*

So if your css files are located in */static/css *then you'd add something 
like this:

- url: /static/css
  static_dir: /static/css

right under *handlers:* section of your *app.yaml*

See more info 
here: 
https://cloud.google.com/appengine/docs/python/gettingstartedpython27/staticfiles

 - Mihail

On Friday, October 3, 2014 6:23:00 AM UTC-5, Dragan Mestrovik wrote:

 I ll just tried to call external css and javascript friles. But they are 
 not loading... i am attaching my work.. please help me in solving my issue


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Channel API - Channels Created Costs

2014-10-05 Thread Mihail Russu
You can use appstats 
https://cloud.google.com/appengine/docs/python/tools/appstats to find out 
and calculate costs for any of your GAE handlers/functions. A quick test 
reveals that creating a channel costs 10,000 micro-pennies (1 dollar equals 
100 pennies, 1 penny equals 1 million micropennies), which is considered 
expensive since, if compared, 1 datastore read by key costs only 100 
micropennies, so 1 cent USD would let you create 100 channels.

Also, I am not sure what is the 90,040 (or 95,040 in my case) limit is 
about since considering that there are 1,440 minutes per day and according 
to the like you provided where it says that GAE allows 60 channels created 
per minute, that calculates to 86,400 MAX channels that can be created, no 
matter what the budget is (which is not that much if you think about it). 
It would be great if anyone could clarify this or point to any errors in my 
calculations.

Thanks,
Mihail.

On Saturday, October 4, 2014 6:33:57 PM UTC-5, cr...@portical.com.au wrote:

 Hi,

 I have a paid app and can see the quota is 90,040 per day for channels 
 created.


 https://console.developers.google.com/project/PROJECTNAME/appengine/quotadetails

 I have looked at all the pricing pages from cloud services and developer 
 pricing pages and can not see any prices regarding the cost per channel 
 created after the 100 free limit.

 https://cloud.google.com/appengine/docs/quotas#Channel this page only 
 says the daily limit is Based on your budget but I do not see any costs 
 anywhere on the web.

 Am I to assume that I get 90,040 free per day for having a paid 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 http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: developer over qps

2014-10-02 Thread Mihail Russu
The question was answered 
here: http://stackoverflow.com/questions/26120766/developer-over-qps/26134157

( Object {0: Developer Over Qps} was returned by 3rd party API, not by 
GAE).


On Tuesday, September 30, 2014 7:25:17 AM UTC-5, Nicolas Rannou wrote:

 Hi,

 I use the free quotas app engine and it keeps returning the following 
 error 9 times out of 10:

 Object {0: Developer Over Qps}

 As I understanding, there is no limitation on the Qps, even with the free 
 plan.

 Any way, even querying my app every 1-2s is too much apparently.

 Any idea what could be going on?

 Is there a limit on the number of queries per second?

 I am testing my api through codepen. Could it be the problem?

 Thanks


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Share Datastore

2014-09-26 Thread Mihail Russu
You could write a small REST API that will provide the data that the other 
application needs or use remote_api 
https://cloud.google.com/appengine/articles/remote_api.

Thanks,
Mihail.

On Friday, September 26, 2014 10:15:04 AM UTC-5, Iván Cachicatari wrote:

 Hello,

 I want to share the Datastore to another App, is there a way to do that?

 Regards.


 *This email and the information it contains are confidential. If you have 
 received this email in error please notify us immediately. Whilst every 
 effort has been made to ensure the accuracy of the information contained 
  in this email, Nubis Partners does not guarantee its accuracy or that 
 factual errors have not occurred. Except where this email is sent in the 
 usual course of business, the views expressed in this email are those of 
 the sender. Nubis Partners accepts no responsibility for any indirect 
 damage or loss suffered by reason of inaccuracy or incorrectness of the 
 information in this email.Please consider our environmental responsibility 
 before printing this 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 http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: 9/19/2014 - Deployment issues?

2014-09-19 Thread Mihail Russu
Happens quite often to me (once every 1-2 weeks). Usually a rollback (i.e. 
appcfg.py rollback .) and re-deploying helps.

On Friday, September 19, 2014 12:54:00 PM UTC-5, Jay wrote:

 I'm having trouble deploying to one of our App Engine apps. It just keeps 
 trying the Checking if Deployment Succeeded step and over and over (60 
 sec. wait between).
 In the admin console | Versions, no version is selected. The app is 
 serving however.

 Any one else having issues?


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: URL Fetch Quota

2014-09-18 Thread Mihail Russu
Take a look at this 
page: 
https://developers.google.com/appengine/docs/quotas#When_a_Resource_is_Depleted 
(Is your app exceeding the default limits? section)

Google will usually increase any of the limits, even on free apps given a 
good reason.

Thanks,
Mihail.

On Thursday, September 18, 2014 4:41:59 AM UTC-5, Anthony Shapley wrote:

 Hi,

 I wondered how one goes about increasing the URL Fetch Quota? At present 
 its set at 46 million, ideally we'd like to double it or more if possible.

 Thanks
 Anthony




-- 
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 http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google URLFETCH DNS CACHE

2014-09-18 Thread Mihail Russu
Not the best solution and the domain is probably already resolving anyway 
but just in case: you could, as temporary solution, use its IP address 
instead of the domain name.

In your case 
https://api.kazang.net/apimanager/api_v2/
works as well as 
https://196.30.98.20/apimanager/api_v2/
although with an SSL warning...

This wouldn't work for all cases (probably wouldn't with virtual hosts, 
multiple IP addresses / load balancers, etc) but could in your case.

Thanks,
Mihail.

On Thursday, September 18, 2014 3:16:31 AM UTC-5, Wanderi James wrote:

 How long does this get refreshed. Can someone refresh it, am loosing 
 money
 DNSLookupFailedError on api.kazang.net


-- 
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 http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: How to administrate datastore in local dev server?

2014-08-29 Thread Mihail Russu
Are you looking for the Development Console? 
http://localhost:8000/datastore

https://developers.google.com/appengine/docs/python/tools/devserver#Python_The_Development_Console

https://developers.google.com/appengine/docs/java/tools/devserver#The_Development_Console

On Thursday, August 28, 2014 8:10:25 PM UTC-5, highroller wrote:

 Hi,
   I am currently using developing an app backend that is storing to 
 datastore in local dev server.  Is there something like phpMyAdmin that I 
 can look at/query individual record in local datastore?  something like 
 MongoDB cli is fine too.  I just want to look at individual record in DB to 
 debug my app backend.  I don't think I can use admin in google because it's 
 local.
 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 http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google app engine console problem

2014-08-18 Thread Mihail Russu
Works OK for me... Did you try both new 
interface: https://console.developers.google.com/ and the old 
one: https://appengine.google.com/ ? Different browser/account?

On Friday, August 15, 2014 10:35:30 PM UTC-5, Steven wrote:

 Hi,

 Whenever I go into the app engine console for my app (techtntapp), and I 
 go to Application Settings and Add Domain, type in the domain I want to 
 add, and click Add Domain, it redirects to a page asking which google 
 account I want to use, and after I've selected a google account, it asks me 
 for my password, and then I enter that and it redirects back to asking 
 which google account, and then for a password again in a loop. Why is the 
 google app engine console doing this? Any help would be appreciated.

 Steven


-- 
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 http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: 500 server error on App Engine when using OpenID Users API on custom domain

2014-07-29 Thread Mihail Russu
Are there any error details in the Logs section that you can provide?

Just last Friday I transferred an app from .appspot.com to a custom domain 
and everything worked great as soon as I changed the callback/redirect URLs 
on OAuth providers' end. Could it be that you simply forgot to update them? 
(this is unlikely to cause a 500 on AppEngine's end but it's a start)

Mihail.

On Tuesday, July 29, 2014 12:41:29 PM UTC-5, Joel E wrote:

 I posted the details of this issue on StackOverflow here 
 http://stackoverflow.com/questions/24498646/500-server-error-on-app-engine-when-using-openid-users-api-on-custom-domain
  
 but basically the Users API is crashing when accessed by an app running on 
 a custom domain. I have not been able to get any help with this issue and 
 it would be great to get an answer from someone at Google as this seems to 
 be an issue with App Engine's internal code. I'd be happy for any 
 suggestions or help at this point though.

 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 http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: 500 server error on App Engine when using OpenID Users API on custom domain

2014-07-29 Thread Mihail Russu
Most OAuth providers require you to specify full callback url (in the 
request headers as well as in the control panel of their websites) so when 
changing domains you'd also need to update the URL on their end but I 
didn't realize until now that you are having issues with OpenID and NOT 
with OAuth, I am not sure if it's the same there.

On Tuesday, July 29, 2014 5:18:29 PM UTC-5, Joel E wrote:

 Could you explain what you mean by the callback/redirect URL? I didn't 
 read anything about that in the documentation. Also, nothing from the error 
 appears in the logs since the crash happens in app engine's internal code.

 Thanks!

 On Tuesday, July 29, 2014 6:05:42 PM UTC-4, Mihail Russu wrote:

 Are there any error details in the Logs section that you can provide?

 Just last Friday I transferred an app from .appspot.com to a custom 
 domain and everything worked great as soon as I changed the 
 callback/redirect URLs on OAuth providers' end. Could it be that you simply 
 forgot to update them? (this is unlikely to cause a 500 on AppEngine's end 
 but it's a start)

 Mihail.

 On Tuesday, July 29, 2014 12:41:29 PM UTC-5, Joel E wrote:

 I posted the details of this issue on StackOverflow here 
 http://stackoverflow.com/questions/24498646/500-server-error-on-app-engine-when-using-openid-users-api-on-custom-domain
  
 but basically the Users API is crashing when accessed by an app running on 
 a custom domain. I have not been able to get any help with this issue and 
 it would be great to get an answer from someone at Google as this seems to 
 be an issue with App Engine's internal code. I'd be happy for any 
 suggestions or help at this point though.

 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 http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Use OAuth2 for authentication + compatibility with google.appengine.api.users service

2014-07-21 Thread Mihail Russu
Don't know if this is what you are looking for but I've successfully been 
using https://code.google.com/p/gae-simpleauth/ for OAuth2 authentication 
in combination with Users API. With some minor changes my users can link 
their manually registered accounts to Facebook and authenticate with either 
as well as use only Facebook. Also, not sure how to answer most of your 
answers but scopes are service dependent, i.e. they'd be different for 
Facebook/Google and working with Users API shouldn't be any different after 
OAuth2 and there shouldn't be any conflicts.

On Thursday, July 17, 2014 9:58:57 PM UTC-5, John Del Rosario wrote:

 (x-post from SO and reddit, for maximum visibility)

 We're trying to put our app on Google Marketplace, and one of the 
 requirements was to use OAuth2 for authentication. Unfortunately (and 
 strangely), AppEngine doesn't have an option for this.

 Right now, we are using OpenID for authentication. I've been trying to 
 find resources online, but have failed in finding a definitive guide on how 
 to do this properly. 

 My concerns are:

 1. What scope should I use?
 2. How should sessions be managed? (the [Users](
 https://developers.google.com/appengine/docs/python/users/) service 
 handled this very well)
 3. What would the local development process be like? Would I need to have 
 an internet connection to be able to use `dev_appserver.py`?
 4. We rely heavily on the [`user_id`](
 https://developers.google.com/appengine/docs/python/users/userclass#User_user_id)
  
 property provided by the Users service. Can I rely on it having the same 
 value when switching to OAuth2?
 5. Any possible conflicts in other AppEngine services (ones that rely on 
 Users service)?
 6. Would the `login: required` flag in `app.yaml` still work as expected 
 after migrating?
 7. Are there plans on supporting proper OAuth2 authentication as a default 
 option in AppEngine projects?

 Also, the AppEngine docs seem to be out of date with regards to 
 integrating with Marketplace.


-- 
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 http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.