[google-appengine] Re: Wait, what? App Engine doesn't work with latest version of WordPress?

2013-12-17 Thread timh
Half the things mentioned here as desirable would all of sudden make app 
engine instances as vulnerable as all the other word press instances out 
there.


 

-- 
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/groups/opt_out.


Re: [google-appengine] Cant add domain to App engine app - what is wrong?

2013-12-17 Thread Vinny P
On Mon, Dec 16, 2013 at 6:58 AM, Jens Jakob Andersen <
jensja...@andersen-nilson.net> wrote:

> Step 1,2,3 goes just fine.
> And in the Google Apps setup, I can add the appengine-app just fine - but
> when I click add button - I get forwarded to a blank page.
>
>

Just to clarify, step 3 goes OK for you, but step 4 is failing? Which "add
button" are you clicking, the button on the last part of step 3 or the step
4 part of accepting the TOS?

Note that you shouldn't be clicking on the sign-up link; since you already
have a Google Apps account, enter the primary domain of the Apps account
into the domain textbox.


On Mon, Dec 16, 2013 at 6:58 AM, Jens Jakob Andersen <
jensja...@andersen-nilson.net> wrote:

> I should add that it is one the old "Free 10 user Google Apps" accounts.
> Is it so that Appengine can only be domain.mapped in the "Google Apps for
> Business" setup?
>
>

The free Google Apps user accounts are still good for mapping domains.


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To 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/groups/opt_out.


[google-appengine] Re: Duplicate app when you have too many apps

2013-12-17 Thread Zachary Yaro
I am also running into this issue on my account (zmy...@gmail.com).  I 
still have apps I have not migrated because I do not want to delete any 
apps to make room for the new HRD app ids.

On Saturday, January 5, 2013 9:54:27 PM UTC-5, Nguyễn Kim Kha wrote:
>
> Me too... Please help...
>
> Vào 02:27:48 UTC+7 Thứ bảy, ngày 07 tháng một năm 2012, Ricardo Bánffy đã 
> viết:
>>
>> Hi folks.
>>
>> Is there a way around the "not allowed to create anymore apps;reached
>> app creation limit?" message when you are trying to migrate an app to
>> HRD? BTW, is there a way to keep the app id?
>>
>> -- 
>> Ricardo Bánffy
>> http://www.dieblinkenlights.com
>> http://twitter.com/rbanffy
>>
>>

-- 
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/groups/opt_out.


Re: [google-appengine] Weekly Discounted Instance Hours Scheduling

2013-12-17 Thread Vinny P
They get allocated to the next new billing cycle. Look at your App Engine
bill (or the transaction history page in the App Engine console), does your
billing cycle correspond to Tuesdays? Hint: the billing cycle for your app
starts the day you activated billing; what day of the week did you first
convert your application into billing-enabled?


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com




On Tue, Dec 17, 2013 at 4:40 AM, Emanuele Farina wrote:

> I am confused on when weekly discounted hours get allocated.
> I had a budget of 150 per week. I changed it today (Dec 17th)  to 1200 and
> the new allocation says it will apply starting Dec 24th. How does this
> work? Do they always get allocated one week out?
>
>

-- 
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/groups/opt_out.


Re: [google-appengine] Difference between Usage Report and Dashboard

2013-12-17 Thread Vinny P
On Fri, Dec 13, 2013 at 9:01 AM, Tomás Mery Undurraga 
 wrote:

> In the Dashboard the number of running hours is stated correctly (24) but
> the Usage Report indicate *48 hours*. Anybody knows the reason for this?
>


As you noted, sometimes the hours reported are slightly incorrect. How many
backend hours are you being billed for, 24 or 48?

Also, try redeploying your app and updating your backends via appcfg's
backends update command (
https://developers.google.com/appengine/docs/python/backends/#Python_Commands).
GAE might be using a B2 instead of a B1 backend incorrectly, which
will
increase your hours billed.


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To 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/groups/opt_out.


Re: [google-appengine] Re: Wait, what? App Engine doesn't work with latest version of WordPress?

2013-12-17 Thread Gopal Patel

I am waiting for the day when Wordpress do all the above in order for it to
be compatible with Google App Engine, and not the other way around. Would
you change the car or would you change the road ? ( you are absolutely free
to choose either, but not both )



On Thu, Dec 12, 2013 at 10:29 AM, Vance Hallman wrote:

> Lars and everyone else. Unless I am wrong this is the year 2013, almost
> 2014. I think Microsoft, IBM, most forms of Linux, and Ubuntu all have auto
> updates either as recommended or an option that is easily enabled. If you
> want this to become a consumer platform (why else would you be doing this?)
> you need to put a little faith in wordpress.org's PHP and javascript team.
>
> Not withstanding your pending updates to make it 3.7.1 compatible here are
> a number of issues that you need to put on a roadmap for all of us to see.
> And you need to do it quick. Why? Wordpress is on a "less than quarterly"
> cycle for full blown major rev versions. 3.7 and 3,8 are HUGE steps in the
> right direction as they are now documenting and organizing all of their
> code along industry standard API releases.
>
> Here's the list and I invite comments, ideas, suggestions:
>
> 1. FTP and .htaccess easy access by not only app engine admins, but
> wordpress logged in admins.
> 2. You need to be updating your wordpress page with each minor rev. If
> Microsoft, Amazon and IBM can do it Google can too.
> 3. Rewrite your wordpress page as if you are a wordpress admin, NOT
> someone who is a PHP, Python and MySQL expert. Show screen shots, show
> examples, don't assum ANYTHING.
> 4. As a start for number 3 the instructions call out for installing
> various plugins at certain points. You only mention a few paragraphs later
> to NOT activate them until post deploy. I've been a wordpress afficiando
> since the early years of WP and I can tell you that 99% of all admins
> automatically activate wordpress plugins upon install. It's INSTINCT and if
> you want to change that behavior you need to tell them UPFRONT and in ALL
> CAPS.
> 5. You talk about Memcache Object Store and Batcache plugins but fail to
> mention that their need to be installed locally if you want to troubleshoot
> locally.
> 6. Where are the tools for telling us whether or not when we deploy wether
> or not those plugins are actually working when we activate them? I am 90%
> sure I installed mine correctly but my appspot site is dog slow with
> nothing installed but the 3 recommended plugins, which I have no idea if
> they are working.
> 7. Don't send us to StackOverFlow. Their are no easy ways to use
> stackoverflow for this type of use case. Not to mention I have 3
> outstanding questions on SO that have lots of views and zero reply's.
> 8. Give us an easy to use graphic that shows where the 87 cents I spent
> today went so I know where to troubleshoot. I know no one is visting my
> blank blog. So what is causing all of THIS?
> https://cloud.google.com/console#/project/apps~fc1prod
> 9. I have read in numerous places that I should be able to see my
> Wordpress directory structure when I click on Google Cloud in the left hand
> panel and my bucket in the right hand panel. All I see is blank page.
> 10. I am still trying to wrap my arms around the purpose of Wordpress
> using Google App Engine. It takes many, many hours to get anything done.
> The entire configuration should be as fast if not faster than bitnami.orgor 
> S3. Those take a few minutes to spin up a complete WP site and enable
> the WP admins to get to work and start building sites.
>
> Thoughts, ideas, comments?
>
> Thanks,
> Van
>
>
>
>
>
>
>
>
> On Friday, December 6, 2013 3:22:18 PM UTC-8, Mars Lan wrote:
>>
>> Thank you for bring this issue to our attention. The bug surfaces due to
>> a change in WordPress 3.7 and affects only the development server. It
>> should be fixed in the next release. Meanwhile, please manually change
>> line 109 -110 of /google/appengine/tools/
>> devappserver2/php/runtime.py from
>>
>> user_environ['REAL_SCRIPT_FILENAME'] = environ[
>> http_runtime_constants.SCRIPT_HEADER]
>>
>> to
>>
>> user_environ['REAL_SCRIPT_FILENAME'] = os.path.normpath(
>> os.path.join(self.config.application_root, environ[http_runtime_
>> constants.SCRIPT_HEADER]))
>>
>> As this is a Python script, make sure the new statement is indented
>> correctly.
>>
>>
>> On Saturday, November 30, 2013 7:47:58 AM UTC-8, OC2PS wrote:
>>>
>>> Looks like App Engine has trouble with WordPress 3.7.1
>>> http://wordpress.org/support/topic/trouble-running-local-
>>> wordpress-in-google-app-engine
>>>
>>> This is terrible especially as WordPress have decided that they will
>>> start automatically updating WordPress without human intervention!
>>>
>>  --
> 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

Re: [google-appengine] Paid app e-mail quota 100 of 100, but not automatically raised?

2013-12-17 Thread Vinny P
On Tue, Dec 17, 2013 at 6:34 AM,  wrote:

> My app has hit it's e-mail quota 100/100 e-mails, but I have an paid app
> and it should be raised automatically, right?
>
> Users can't verify their e-mails until the quota is raised, what am I
> doing wrong in my configuration?
>
>

Did your application make a successful payment already? How long has it
been since you've turned it into a paid app?


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To 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/groups/opt_out.


Re: [google-appengine] Re: HItting query limit using Geocoding API from App Engine

2013-12-17 Thread Vinny P
On Tue, Dec 17, 2013 at 4:17 PM, Jeremy McLain 
 wrote:

> This is driving me crazy.  I've tried three different proxies and I am
> still getting: "You have exceeded your daily request quota for this API."
>


What proxies are you using? Are these proxies giving you new IP addresses
when you use them, or are they sharing a pool of IPs?

What you can try doing is using the Compute Engine API to open up a new VM
and then proxy your requests through it (the machine will have its own IP,
which hopefully will still have an empty Geocoding quota).


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To 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/groups/opt_out.


Re: [google-appengine] Generating Signed URLS for Google Cloud Storage Using PHP

2013-12-17 Thread Vinny P
On Wed, Dec 11, 2013 at 12:55 AM, Ashwin Pires 
 wrote:

> Hi. I want to generate Signed URL for the objects present in the google
> cloud storage. I need the steps to generate the URL
>


The process to generate Google Cloud Storage signed URLs is here:
https://developers.google.com/storage/docs/accesscontrol#Signed-URLs

If you would prefer a source code example, please explain your use case and
the language your application is coded in.


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To 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/groups/opt_out.


Re: [google-appengine] Re: Google App Engine remote_api returns 404 using remote_api_shell.py

2013-12-17 Thread Andrew Free
Try uploading/deploying your code sometimes it just needs to be pushed to 
google. I’m not sure how I ended up solving this exactly. I have had lots of 
issues with the remote API. 


On Dec 16, 2013, at 6:41 AM, Ying Ding  wrote:

> I ran into this problem today too. Have you solved your problem?  Hope you 
> can see this and drop a line about your solution. Thank you!
> 
> On Friday, September 6, 2013 1:12:02 AM UTC-4, Andrew Free wrote:
> I'm using googles built in tool for connecting to the remote api so I don't 
> even have info in my client or app.yaml I could change. I have no idea why I 
> suddenly cant connect.
> 
> My friend who is also working on the project with me tried on his machine and 
> got the same error. It was working fine for the past couple months. I'm also 
> using the remote_api_shell so it can't be something in my code?
> 
> My app.yaml has
> 
> builtins:
> 
> - remote_api: on
> 
> 
> 
> [ rever ~/Documents/buybottmerge/buybott-gae ] remote_api_shell.py -s 
> myappname.appspot.com
> Traceback (most recent call last):
>   File "/usr/local/bin/remote_api_shell.py", line 171, in 
> run_file(__file__, globals())
>   File "/usr/local/bin/remote_api_shell.py", line 167, in run_file
> execfile(script_path, globals_)
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/remote_api_shell.py",
>  line 152, in 
> main(sys.argv)
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/remote_api_shell.py",
>  line 148, in main
> appengine_rpc.HttpRpcServer)
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/remote_api_shell.py",
>  line 76, in remote_api_shell
> rpc_server_factory=rpc_server_factory)
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py",
>  line 725, in ConfigureRemoteApi
> app_id = GetRemoteAppIdFromServer(server, path, rtok)
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py",
>  line 568, in GetRemoteAppIdFromServer
> response = server.Send(path, payload=None, **urlargs)
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appengine_rpc.py",
>  line 393, in Send
> f = self.opener.open(req)
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>  line 400, in open
> response = meth(req, response)
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>  line 513, in http_response
> 'http', request, response, code, msg, hdrs)
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>  line 438, in error
> return self._call_chain(*args)
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>  line 372, in _call_chain
> result = func(*args)
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>  line 521, in http_error_default
> raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> urllib2.HTTPError: HTTP Error 404: Not Found
> I can see the errors on my logs in the dashboard as well. So something is 
> working well enough for it to get that far before failing.
> 
> 2013-09-05 18:13:35.735 /_ah/remote_api?rtok=569217424211 404 4ms 0kb 
> Google-remote_api/1.0 Darwin/12.4.0 Python/2.7.2.final.0 gzip
> 
> 50.53.136.79 - - [05/Sep/2013:18:13:35 -0700] "GET 
> /_ah/remote_api?rtok=569217424211   HTTP/1.1" 404 130 - 
> "Google-remote_api/1.0 Darwin/12.4.0 Python/2.7.2.final.0 gzip"   
> "myappname.appspot.com" ms=4 cpu_ms=0 cpm_usd=0.15 
> app_engine_release=1.8.4   instance=00c61b117cbd87090d90186a5635840f196c4d14
> 
> 
> -- 
> 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/t7L4URlUr0A/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 http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscrib

[google-appengine] Re: HItting query limit using Geocoding API from App Engine

2013-12-17 Thread Jeremy McLain
This is driving me crazy.  I've tried three different proxies and I am 
still getting: "You have exceeded your daily request quota for this API."

-- 
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/groups/opt_out.


Re: [google-appengine] Re: HItting query limit using Geocoding API from App Engine

2013-12-17 Thread Jeremy McLain
An issue has been opened.  Actually is a feature 
request: https://code.google.com/p/gmaps-api-issues/issues/detail?id=2844

-- 
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/groups/opt_out.


[google-appengine] Paid app e-mail quota 100 of 100, but not automatically raised?

2013-12-17 Thread erik . zivkovic
Hi,

My app has hit it's e-mail quota 100/100 e-mails, but I have an paid app 
and it should be raised automatically, right?

Users can't verify their e-mails until the quota is raised, what am I doing 
wrong in my configuration?

BR Erik

-- 
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/groups/opt_out.


[google-appengine] Re: Google App Engine remote_api returns 404 using remote_api_shell.py

2013-12-17 Thread Ying Ding
I ran into this problem today too. Have you solved your problem?  Hope you 
can see this and drop a line about your solution. Thank you!

On Friday, September 6, 2013 1:12:02 AM UTC-4, Andrew Free wrote:
>
> I'm using googles built in tool for connecting to the remote api so I 
> don't even have info in my client or app.yaml I could change. I have no 
> idea why I suddenly cant connect.
>
> My friend who is also working on the project with me tried on his machine 
> and got the same error. It was working fine for the past couple months. I'm 
> also using the remote_api_shell so it can't be something in my code?
>
> My app.yaml has
>
> builtins:
>
> - remote_api: on
>
>
> [ rever ~/Documents/buybottmerge/buybott-gae ] remote_api_shell.py -s 
> myappname.appspot.comTraceback (most recent call last):
>   File "/usr/local/bin/remote_api_shell.py", line 171, in 
> run_file(__file__, globals())
>   File "/usr/local/bin/remote_api_shell.py", line 167, in run_file
> execfile(script_path, globals_)
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/remote_api_shell.py",
>  line 152, in 
> main(sys.argv)
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/remote_api_shell.py",
>  line 148, in main
> appengine_rpc.HttpRpcServer)
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/remote_api_shell.py",
>  line 76, in remote_api_shell
> rpc_server_factory=rpc_server_factory)
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py",
>  line 725, in ConfigureRemoteApi
> app_id = GetRemoteAppIdFromServer(server, path, rtok)
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py",
>  line 568, in GetRemoteAppIdFromServer
> response = server.Send(path, payload=None, **urlargs)
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appengine_rpc.py",
>  line 393, in Send
> f = self.opener.open(req)
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>  line 400, in open
> response = meth(req, response)
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>  line 513, in http_response
> 'http', request, response, code, msg, hdrs)
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>  line 438, in error
> return self._call_chain(*args)
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>  line 372, in _call_chain
> result = func(*args)
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
>  line 521, in http_error_default
> raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> urllib2.HTTPError: HTTP Error 404: Not Found
>
> I can see the errors on my logs in the dashboard as well. So something is 
> working well enough for it to get that far before failing.
>
> 2013-09-05 18:13:35.735 /_ah/remote_api?rtok=569217424211 404 4ms 0kb 
> Google-remote_api/1.0 Darwin/12.4.0 Python/2.7.2.final.0 gzip
> 50.53.136.79 - - [05/Sep/2013:18:13:35 -0700] "GET 
> /_ah/remote_api?rtok=569217424211   HTTP/1.1" 404 130 - 
> "Google-remote_api/1.0 Darwin/12.4.0 Python/2.7.2.final.0 gzip"   
> "myappname.appspot.com" ms=4 cpu_ms=0 cpm_usd=0.15 
> app_engine_release=1.8.4   instance=00c61b117cbd87090d90186a5635840f196c4d14
>
>
>

-- 
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/groups/opt_out.


[google-appengine] Weekly Discounted Instance Hours Scheduling

2013-12-17 Thread Emanuele Farina
I am confused on when weekly discounted hours get allocated. 
I had a budget of 150 per week. I changed it today (Dec 17th)  to 1200 and 
the new allocation says it will apply starting Dec 24th. How does this 
work? Do they always get allocated one week out? 

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/groups/opt_out.


[google-appengine] Paid app states Recipients Emailed: 100 of 100 Limited

2013-12-17 Thread erik . zivkovic
Hi,

My paid app has reached the ceiling of the e-mail quota, but I have a paid 
app so it should raise automatically?

What am I doing wrong?

App Id is s-map-location

Best Regards
Erik

-- 
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/groups/opt_out.


[google-appengine] Difference between Usage Report and Dashboard

2013-12-17 Thread Tomás Mery Undurraga
Hi,

I have an App Engine application with two instances, a frontend and a 
backend. The backend instance is *Resident B1*.

In the Dashboard the number of running hours is stated correctly (24) but 
the Usage Report indicate *48 hours*. Anybody knows the reason for this? 
This is the backend.yaml instance configuration

instance_class: B1
manual_scaling:
  instances: 1

I know that many people asked about the discrepancy between the dashboard 
and the billing but I keep seeing broken a link to the answer (
http://code.google.com/p/googleappengine/issues/detail?id=6395)

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To 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/groups/opt_out.


[google-appengine] Re: Issue with Cloud Storage GCS API on local Development Server

2013-12-17 Thread Troy High
I was having the exact same problem with namespaces and the local dev 
server not honoring them for some entries. I applied the same workaround as 
Ken and am able to retrieve files programmatically.

So is this a bug in the Dev server implementation or does this mean cloud 
storage does not officially support namespaces?  I haven't pushed this code 
to the google servers yet so I am not sure if I would encounter the same 
issue without the workaround.

Thanks,
Troy

On Friday, November 22, 2013 12:40:05 PM UTC-5, k...@form-runner.com wrote:
>
> Nailed the culprit!
>> We make extensive use of namespaces, and in my original post, there turns 
>> out to be an unfortunate interaction between namespaces and the GCS client 
>> API.
>>
>> Down in my original post, where I laid out all the data I could find in 
>> the Development Console, you will see that there are entries in the empty 
>> namespace and a different namespace:
>>
>> In __GsFileInfo__ (in the empty Namespace)
>> ….blah … blah
>>
>> In Namespace 5629499534213120 (where everything ran):
>> In _ah_FakeCloudStorate_formrunnerbucket-r7yh23nb2:
>> …. blah…. blah
>>
>> The code for writing into GCS ran in namespace 5629499534213120, but it 
>> wrote part of it's data into the empty namespace.
>>
>> The (successful) experiment was to ensure that all the GCS API code (read 
>> and write) runs in the empty namespace, conceptually thus:
>>
>> private byte[] readFromFile(GcsFilename fullGcsFilename)  throws 
>> IOException 
>> {
>> String in_ns = NamespaceManager.get();
>> NamespaceManager.set(null);
>> int fileSize = (int) gcsService.getMetadata(fullGcsFilename).getLength();
>> ByteBuffer result = ByteBuffer.allocate(fileSize);
>> GcsInputChannel readChannel = gcsService.openReadChannel(fullGcsFilename, 
>> 0);
>> try {
>>   readChannel.read(result);
>> } finally {
>>   readChannel.close();
>> }
>> byte[] toreturn=result.array();
>> NamespaceManager.set(in_ns);
>> return toreturn;
>> }
>>
>> Now the FileNotFound does not occur, and I do get (some) bytes back, 
>> about 1/10 of the 1.2MB.  Presumably when I switch to ObjectStreaming, I'll 
>> get all.
>> Cheers,
>> --Ken
>>
>

-- 
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/groups/opt_out.


[google-appengine] Cant add domain to App engine app - what is wrong?

2013-12-17 Thread Jens Jakob Andersen
Hi,

I am pulling the last few hairs our of my head - cant figure what is going 
on.

I am trying to add my domain to my app engine app, following this guide:
https://developers.google.com/appengine/docs/domain

Step 1,2,3 goes just fine. 
And in the Google Apps setup, I can add the appengine-app just fine - but 
when I click add button - I get forwarded to a blank page.

(I have tested in another Google apps domain, that doesnt relate to the 
appengine domain - there I receive an error message - so something is 
working OK in the domain where it should work).

I should add that it is one the old "Free 10 user Google Apps" accounts.

Is it so that Appengine can only be domain.mapped in the "Google Apps for 
Business" setup?

Or is it another bug?

Best regards

Jens Jakob

-- 
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/groups/opt_out.


[google-appengine] Re: Wait, what? App Engine doesn't work with latest version of WordPress?

2013-12-17 Thread Vance Hallman
Lars and everyone else. Unless I am wrong this is the year 2013, almost 
2014. I think Microsoft, IBM, most forms of Linux, and Ubuntu all have auto 
updates either as recommended or an option that is easily enabled. If you 
want this to become a consumer platform (why else would you be doing this?) 
you need to put a little faith in wordpress.org's PHP and javascript team.

Not withstanding your pending updates to make it 3.7.1 compatible here are 
a number of issues that you need to put on a roadmap for all of us to see. 
And you need to do it quick. Why? Wordpress is on a "less than quarterly" 
cycle for full blown major rev versions. 3.7 and 3,8 are HUGE steps in the 
right direction as they are now documenting and organizing all of their 
code along industry standard API releases.

Here's the list and I invite comments, ideas, suggestions:

1. FTP and .htaccess easy access by not only app engine admins, but 
wordpress logged in admins. 
2. You need to be updating your wordpress page with each minor rev. If 
Microsoft, Amazon and IBM can do it Google can too.
3. Rewrite your wordpress page as if you are a wordpress admin, NOT someone 
who is a PHP, Python and MySQL expert. Show screen shots, show examples, 
don't assum ANYTHING.
4. As a start for number 3 the instructions call out for installing various 
plugins at certain points. You only mention a few paragraphs later to NOT 
activate them until post deploy. I've been a wordpress afficiando since the 
early years of WP and I can tell you that 99% of all admins automatically 
activate wordpress plugins upon install. It's INSTINCT and if you want to 
change that behavior you need to tell them UPFRONT and in ALL CAPS.
5. You talk about Memcache Object Store and Batcache plugins but fail to 
mention that their need to be installed locally if you want to troubleshoot 
locally.
6. Where are the tools for telling us whether or not when we deploy wether 
or not those plugins are actually working when we activate them? I am 90% 
sure I installed mine correctly but my appspot site is dog slow with 
nothing installed but the 3 recommended plugins, which I have no idea if 
they are working.
7. Don't send us to StackOverFlow. Their are no easy ways to use 
stackoverflow for this type of use case. Not to mention I have 3 
outstanding questions on SO that have lots of views and zero reply's.
8. Give us an easy to use graphic that shows where the 87 cents I spent 
today went so I know where to troubleshoot. I know no one is visting my 
blank blog. So what is causing all of THIS? 
https://cloud.google.com/console#/project/apps~fc1prod
9. I have read in numerous places that I should be able to see my Wordpress 
directory structure when I click on Google Cloud in the left hand panel and 
my bucket in the right hand panel. All I see is blank page.
10. I am still trying to wrap my arms around the purpose of Wordpress using 
Google App Engine. It takes many, many hours to get anything done. The 
entire configuration should be as fast if not faster than bitnami.org or 
S3. Those take a few minutes to spin up a complete WP site and enable the 
WP admins to get to work and start building sites.

Thoughts, ideas, comments?

Thanks,
Van








On Friday, December 6, 2013 3:22:18 PM UTC-8, Mars Lan wrote:
>
> Thank you for bring this issue to our attention. The bug surfaces due to a 
> change in WordPress 3.7 and affects only the development server. It 
> should be fixed in the next release. Meanwhile, please manually change 
> line 109 -110 of /
> google/appengine/tools/devappserver2/php/runtime.py from 
>
> user_environ['REAL_SCRIPT_FILENAME'] = environ[ 
> http_runtime_constants.SCRIPT_HEADER]
>
> to
>
> user_environ['REAL_SCRIPT_FILENAME'] = os.path.normpath( 
> os.path.join(self.config.application_root, 
> environ[http_runtime_constants.SCRIPT_HEADER]))
>
> As this is a Python script, make sure the new statement is indented 
> correctly.
>
>
> On Saturday, November 30, 2013 7:47:58 AM UTC-8, OC2PS wrote:
>>
>> Looks like App Engine has trouble with WordPress 3.7.1 
>> http://wordpress.org/support/topic/trouble-running-local-wordpress-in-google-app-engine
>>
>> This is terrible especially as WordPress have decided that they will 
>> start automatically updating WordPress without human intervention!
>>
>

-- 
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/groups/opt_out.


[google-appengine] Re: Error code 121

2013-12-17 Thread Mohammed Sameer
My app (kudufinance) is down for about 12 hours now 

-- 
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/groups/opt_out.


[google-appengine] Re: Difficulty turning on project Billing

2013-12-17 Thread Steven Klein
Are you signed into multiple accounts?  If so, try using an incognito 
window as described here: 
https://developers.google.com/appengine/kb/billing#not_authorized

On Wednesday, December 11, 2013 5:05:40 PM UTC-8, k...@form-runner.com 
wrote:
>
> I have a project which is currently set for free.  I'm trying to turn on 
> Billing, but cannot.  I am an Owner and Billing Administrator of the 
> project.  If I go to Billing > Billing Status, and click Enable Billing, I 
> get the page for setting budgets.  However, when I click Submit on that 
> page,  I just get a white page with:
> You are not authorized to access this page.
> It if go back to Billing > Billing Status, I get:
>
> Enabling billing …
> Billing will be enabled after we verify your payment method
>
> [Button: Do not enable billing now]
> …..
> You are not authorized to access this page.
>
> BUT:  I haven't submitted any payment method, and when I try to go to 
> Billing > Billing Profie or Billing > Billing Settings, I just get
> You are not authorized to access this page.
> I /think/ a bug has crept in; I've successfully  set up Billing for other 
> projects.
>
> Thanks for the help
> --Ken Bowen
>

-- 
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/groups/opt_out.


[google-appengine] Re: App Engine VM-based Backends - Trusted Tester Sign-up

2013-12-17 Thread John Smith
Thanks for the link it is really helpful for linux user 
On Tuesday, December 3, 2013 11:13:48 AM UTC+5:30, pdknsk wrote:
>
> "Google Compute Engine is now Generally Available"
>
>
> http://googlecloudplatform.blogspot.de/2013/12/google-compute-engine-is-now-generally-available.html
>
> Hurry! :)
>

-- 
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/groups/opt_out.


[google-appengine] Generating Signed URLS for Google Cloud Storage Using PHP

2013-12-17 Thread Ashwin Pires
Hi.

I want to generate Signed URL for the objects present in the google cloud 
storage. I need the steps to generate the URL

Thank You


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To 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/groups/opt_out.


Re: [google-appengine] Does anyone encounter the problem on Endpoints with authentication?

2013-12-17 Thread Ilya Nesterov
My bad. 1.8.8 didn't fix the issue. Here is a tested 
patch https://code.google.com/p/googleappengine/issues/detail?id=10285


On Sunday, November 24, 2013 11:35:29 PM UTC-8, Colin Su wrote:
>
> I tried both 1.8.7 and 1.8.8
>
> On Tuesday, November 19, 2013 1:26:54 PM UTC+8, Vinny P wrote:
>>
>> On Sun, Nov 17, 2013 at 10:41 PM, Colin Su  wrote:
>>
>>> I encountered a problem recently, and it will let us couldn't testing 
>>> our Endpoints API locally, but production is still okay.
>>> We didn't change any code at that time (maybe), but it just become not 
>>> working anymore.
>>>
>>>
>>
>> What version of the local development server are you currently using?
>>  
>>  
>> -
>> -Vinny P
>> Technology & Media Advisor
>> Chicago, IL
>>
>> App Engine Code Samples: 
>> http://www.learntogoogleit.com
>>   
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To 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/groups/opt_out.


[google-appengine] Re: Does anyone encounter the problem on Endpoints with authentication?

2013-12-17 Thread Ilya Nesterov
Just checked 1.8.8 on linux. Works fine. I was able to reproduce your error 
using 1.8.7 version. so feel free to update

On Sunday, November 17, 2013 8:41:45 PM UTC-8, Colin Su wrote:
>
>
> I encountered a problem recently, and it will let us couldn't testing our 
> Endpoints API locally, but production is still okay.
>
> We didn't change any code at that time (maybe), but it just become not 
> working anymore.
>
> The problem is while I'm accessing endpoints API with authentication by 
> OAuth2, it will shows this exception and broke:
>
> Traceback (most recent call last):
>   File 
> "/Users/littleq/opt/google-cloud-sdk/platform/google_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py",
>  
> line 1302, in communicate
> req.respond()
>   File 
> "/Users/littleq/opt/google-cloud-sdk/platform/google_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py",
>  
> line 831, in respond
> self.server.gateway(self).respond()
>   File 
> "/Users/littleq/opt/google-cloud-sdk/platform/google_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py",
>  
> line 2115, in respond
> response = self.req.server.wsgi_app(self.env, self.start_response)
>   File 
> "/Users/littleq/opt/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/wsgi_server.py",
>  
> line 269, in __call__
> return app(environ, start_response)
>   File 
> "/Users/littleq/opt/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/request_rewriter.py",
>  
> line 311, in _rewriter_middleware
> response_body = iter(application(environ, wrapped_start_response))
>   File 
> "/Users/littleq/opt/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/request_handler.py",
>  
> line 97, in __call__
> self._flush_logs(response.get('logs', []))
>   File 
> "/Users/littleq/opt/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/request_handler.py",
>  
> line 233, in _flush_logs
> apiproxy_stub_map.MakeSyncCall('logservice', 'Flush', request, 
> response)
>   File 
> "/Users/littleq/opt/google-cloud-sdk/platform/google_appengine/google/appengine/api/apiproxy_stub_map.py",
>  
> line 94, in MakeSyncCall
> return stubmap.MakeSyncCall(service, call, request, response)
>   File 
> "/Users/littleq/opt/google-cloud-sdk/platform/google_appengine/google/appengine/api/apiproxy_stub_map.py",
>  
> line 328, in MakeSyncCall
> rpc.CheckSuccess()
>   File 
> "/Users/littleq/opt/google-cloud-sdk/platform/google_appengine/google/appengine/api/apiproxy_rpc.py",
>  
> line 156, in _WaitImpl
> self.request, self.response)
>   File 
> "/Users/littleq/opt/google-cloud-sdk/platform/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py",
>  
> line 200, in MakeSyncCall
> self._MakeRealSyncCall(service, call, request, response)
>   File 
> "/Users/littleq/opt/google-cloud-sdk/platform/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py",
>  
> line 234, in _MakeRealSyncCall
> raise pickle.loads(response_pb.exception())
> RuntimeError: UnicodeDecodeError('utf8', "id_token verification failed: 
> Can't parse header: \xc9\xad\xbd", 52, 53, 'invalid start byte')
>
>
> but without authentication it works fine. Anybody got some idea about 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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [google-appengine] Getting Server Error after enabling DataStore Admin in Cloud Console

2013-12-17 Thread Ryan Huebsch
In your application logs, you may be able to see the error listed under the
ah-builtin-python-bundle version. Often this type of error is related to
authentication.

If you are still having problems, please provide your application ID or
file a issue in the tracker:
https://code.google.com/p/googleappengine/wiki/FilingIssues?tm=3




On Fri, Dec 13, 2013 at 1:29 AM, Sree  wrote:

> Hi,
>
> On Cloud Console, I tried to enable DataStore Admin.
>
> After this action, I am getting below error:-
> Error: Server Error
> The server encountered an error and could not complete your request.
>
> If the problem persists, please report your problem and mention this error
> message and the query that caused it.
> Can you please suggest me to fix this issue?
>
> Regards,
> Sreekaanth
>
> --
> 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/groups/opt_out.
>

-- 
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/groups/opt_out.


Re: [google-appengine] run dev_server from JUnit?

2013-12-17 Thread Robert Schuppenies
We are using gaedriver  to start apps
with devappserver and then run tests against it. Here is an example:
https://code.google.com/p/gaedriver/source/browse/#hg%2Fjava%2Fsrc%2Ftest%2Fjava%2Fcom%2Fgoogle%2Fappengine%2Fcontrib%2Fgaedriver%2Fe2e%253Fstate%253Dclosed


On Tue, Dec 17, 2013 at 7:59 AM, stephanos  wrote:

> Hey,
>
> I'd like to do some (gray-box) integration testing with my Java App Engine
> app.
>
> How can I start the dev server from within my JUnit tests? With
> Jetty/Grizzly, for example.
>
> Regards
> Stephan
>
> --
> 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/groups/opt_out.
>

-- 
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/groups/opt_out.


Re: [google-appengine] urlfetch buggy {again}.

2013-12-17 Thread Barry Hunter
My point was to keep it low, so you can catch it and send the user a nice
erorr message, rather than just causing the whole request to timeout and
then return the generic error.

You need to make sure you catching the right DeadlineExceededError
http://stackoverflow.com/questions/5738146/unable-to-handle-deadlineexceedederror-while-using-urlfetch


You could even make the timeout low enough, that you have the chance to try
a few times. If there is a issue in some part of the Google system, there
is a small chance retrying might work.



On 17 December 2013 18:04, GAEfan  wrote:

> Thanks, Barry.
>
> I already do this.  The python syntax is a bit different:
>
> rpc = urlfetch.create_rpc(deadline=15)
>
> 15 seconds should be plenty for these fetches.  Perhaps I'll try it at a
> higher number. I think the issue is a connection burp, where it will never
> connect, so changing the deadline won't let it connect, just increase the
> wait time for the error.
>
> Still not sure how to fail more gracefully, though.  I have my fetches in
> a try/except.  But the API's error handling supersedes that, and spits out
> a 500.
>
> This appears to be a Google urlfetch issue again, as the fetches timeout
> to several urls and domains.  When I access those same urls manually, they
> are near instantaneous.
>
> --
> 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/groups/opt_out.
>

-- 
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/groups/opt_out.


Re: [google-appengine] urlfetch buggy {again}.

2013-12-17 Thread GAEfan
Thanks, Barry.

I already do this.  The python syntax is a bit different:

rpc = urlfetch.create_rpc(deadline=15)

15 seconds should be plenty for these fetches.  Perhaps I'll try it at a 
higher number. I think the issue is a connection burp, where it will never 
connect, so changing the deadline won't let it connect, just increase the 
wait time for the error.

Still not sure how to fail more gracefully, though.  I have my fetches in a 
try/except.  But the API's error handling supersedes that, and spits out a 
500.

This appears to be a Google urlfetch issue again, as the fetches timeout to 
several urls and domains.  When I access those same urls manually, they are 
near instantaneous.

-- 
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/groups/opt_out.


Re: [google-appengine] urlfetch buggy {again}.

2013-12-17 Thread Barry Hunter
I dont know if can get more detailed error message, but can shorten the
deadline

http://stackoverflow.com/questions/2162115/how-to-set-timeout-for-urlfetch-in-google-app-engine

so can then handle the failure more gracefully - eg return a nice error
message.


On 17 December 2013 17:21, GAEfan  wrote:

> Lots of urlfetch timeouts these last couple of days.
>
> 1) Can Google do something to fix this recurring problem?  Last time, it
> was an upstream DNS issue.
> 2) If not, can't we get better error-handling, so our visitors aren't
> served a 500 page?
>
> This really makes us look unprofessional.
>
> File "/base/data/home/runtimes/python27/python27_lib/versions/1/
> google/appengine/api/apiproxy_stub_map.py", line 612, in get_result
> return self.__get_result_hook(self)
>
>   File "/base/data/home/runtimes/python27/python27_lib/versions/1/
> google/appengine/api/urlfetch.py", line 410, in _get_fetch_result
> 'Deadline exceeded while waiting for HTTP response from URL: ' + 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 http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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/groups/opt_out.


[google-appengine] urlfetch buggy {again}.

2013-12-17 Thread GAEfan
Lots of urlfetch timeouts these last couple of days. 

1) Can Google do something to fix this recurring problem?  Last time, it 
was an upstream DNS issue.
2) If not, can't we get better error-handling, so our visitors aren't 
served a 500 page?

This really makes us look unprofessional.

File "/base/data/home/runtimes/python27/python27_lib/versions/1/
google/appengine/api/apiproxy_stub_map.py", line 612, in get_result
return self.__get_result_hook(self)

  File "/base/data/home/runtimes/python27/python27_lib/versions/1/
google/appengine/api/urlfetch.py", line 410, in _get_fetch_result
'Deadline exceeded while waiting for HTTP response from URL: ' + 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 http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] run dev_server from JUnit?

2013-12-17 Thread stephanos
Hey,

I'd like to do some (gray-box) integration testing with my Java App Engine 
app. 

How can I start the dev server from within my JUnit tests? With 
Jetty/Grizzly, for example.

Regards
Stephan

-- 
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/groups/opt_out.


Re: [google-appengine] Re: Large data volume for live reports

2013-12-17 Thread Aswath Satrasala
I use GWT with Appengine.  We use No 3 mentioned by Klaus in our project
extensively.  I can poll the task completion with GWT timer.

Here are the steps approximately:

Create the following Objectify class
class MyTask {
  @Id long id;
  int status;
}
- GWT client uses rpc to initiate the task for your business logic
- On the server, do a new MyTask with status = 0;
- Pass the MyTask also into the Deferred task.
- Return MyTask key back to the client
- In the Deferred task,
- do the business logic.  After your logic is complete, store the
results in the memcache with the MyTask key as the value.
- update the MyTask status value to 1 and do put().
- Client keeps polling using RPC for the value of MyTask key.
- Client checks the value of the MyTask status.  If its value is 1, then
   - do RPC, to get the results from the memcache.

-Aswath
www.accounting-guru.net.



On Mon, Dec 16, 2013 at 10:01 PM, Anil S  wrote:

> Thank you very much for all your responses.
>
>
> On Sunday, December 15, 2013 3:52:22 PM UTC-5, Klaus Post wrote:
>>
>> Hi!
>>
>> You should probably take a general look at what you are dealing with, and
>> consider some which common options are available.
>>
>> Some of these could apply to your project:
>>
>> 1) Segment data into smaller chunks, and deliver partial data if possible.
>> 2) Have precomputed a summary, if you are summing up large amount of
>> items, that are updated on write, or as a cron job every 5 minutes if
>> changes are flowing in all the time.
>> 3) Start a background task doing the report, send an update to the client
>> when the result is ready, so the user can be notified.
>> 4) If your app is calculation heavy - and not database (datastore) heavy,
>> consider using the Compute Engine.
>> 5) I haven't tried it myself, but mapreduce could help you summarising
>> big amounts of data. Just google "app engine mapreduce".
>>
>> Either way your design should have a maximum execution time of only a
>> fraction of the timeout limit - 10 seconds is an acceptable *worst case*
>> target. My rule of thumbs is - if you cannot promise that, you should
>> redesign what you are doing.
>>
>> I hope this helps a bit.
>>
>> Regards,
>>
>> Klaus
>> On Sunday, December 15, 2013 12:01:19 PM UTC+1, Anil S wrote:
>>>
>>>
>>> HI,
>>>
>>> I have been using Google app engine for a while and faced some timeout
>>> issues while handling large data sets. MY application developed on Java
>>> Platform.
>>>
>>> Problem:
>>> When customer selects a date duration from UI, request goes to app
>>> engine to fetch the data from data store and run through custom logic on
>>> results and sends summarized view of data back to display in chats. Due to
>>> large volume of data, I am getting DeadlineExceededException.
>>>
>>> I can't really use task queues as I need to show the data on view for
>>> user request.
>>>
>>> Can anyone suggest how to resolve this issue?
>>>
>>> Note: I am using Objectfy 4
>>>
>>> Thanks in advance,
>>> Anil.
>>>
>>  --
> 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/groups/opt_out.
>

-- 
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/groups/opt_out.


[google-appengine] Unable to sort documents using SearchAPI

2013-12-17 Thread Ivan Lazov
Hello,

I'm currently facing some problems when I want to sort Documents by given 
field using Google's 
*SearchAPI*
 ( *appengine-java-sdk-1.8.6 *)

Lets say that I'm having a Document with two fields - *firstName* with type 
TEXT, and *birthDate* *BUT *instead of setting the type of the field to 
Date I want to set it to number, 
because of the limitation of the SearchAPI which allows to search date 
without specifying the time (for example "birthDate > 1989-12-20")

And here is an example:

I'm saving the following Document with fields *firstName -> John, birthDate 
-> **630115200* (this is 1989-12-20 but converted to seconds,
because *Field.Builder.setNumber(double value) *takes double as parameter 
and if I pass the date in miliseconds it will exceed it's limit.


Document document = Document.newBuilder().setId("1")
 .addField(Field.newBuilder().
setName("firstName").setText("John"))
 .addField(Field.newBuilder().
setName("birthDate").setNumber(630115200))
 .build();

As a result I end up with the following stored document

IDfirstNamebirthDate




1John630115200



So lets say that I've already stored the following two documents

IDfirstNamebirthDate




1
2John
Adam630115200
629251200



I want to find all documents where *birthDate > 0*, sorted by birthDate in 
ascending order.

And here is the code that I'm executing

SortOptions sortOptions = SortOptions.newBuilder()
.addSortExpression(SortExpression.newBuilder()
.setExpression("birthDate")
.setDirection(SortExpression.SortDirection.ASCENDING)
.setDefaultValueNumeric(0))
.build();

QueryOptions options = QueryOptions.newBuilder()
.setSortOptions(sortOptions)
.build();

Query query = Query.newBuilder().setOptions(options).build();
IndexSpec indexSpec = IndexSpec.newBuilder().setName("DocumentIndex").build();
Index index = SearchServiceFactory.getSearchService().getIndex(indexSpec);
Result result = index.search(query);


As a result I'm receiving the following exception: *Failed to parse sort 
expression 'birthDate': Expected single type for **birthDate**; found 
[TEXT, NUMERIC]*

In the documentation it was said that when using 
*SortExpression*you
 should provide a default value depending of the document's field type ( 
*setDefaultValue(String 
value) , setDefaultNumericValue(double value)* ).
I though that there was my problem. I tried with both of the default 
values. Also tried to remove the default value but then I received the 
error that at least one default value should be provided.

I managed to make it work only once and what I did was to create a new 
index and store the same document but without setting value for the 
*birthDate* field.
I ended up with the following document

IDfirstNamebirthDate




1JohnNone
After executing the same query I end up with zero results (what I was 
expecting). After that I stored value to the document's birthDate field and 
again received the same error.

So has anyone faced the same problem? Is it a problem with GAE or I'm 
missing something else?
Thank you 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.
For more options, visit https://groups.google.com/groups/opt_out.