[google-appengine] Re: Mysterious problem with ajax get call only on GAE (maybe GAE/jquery bug ?)
http://kiedynaurlop-konrad.appspot.com/ad/ is 404, i don't see any problem. Have you setup app.yaml properly? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Is it possible to use multiprocessing Pool in Python 2.7 on App Engine?
@Luca: Have you seen the list of supported Python libraries? https://developers.google.com/appengine/docs/python/runtime#Pure_Python -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/SCyhTRVpB0sJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: BlobStore - Upload Servlet and User Session Variables
Solved the issue! This was caused localy only be because the request used not 127.0.0.1 but the name of my machine thus was creating a new session! On Tuesday, May 22, 2012 8:32:19 AM UTC+3, savilak wrote: I use BlobStore to store excel files as per Ikai's sample ( http://ikaisays.com/2010/09/08/gwt-blobstore-the-new-high-performance-image-serving-api-and-cute-dogs-on-office-chairs/#comment-530 ). I use facebook to authenticate my users and I keep the user name at a session variable. The blobstore upload servlet creates a new session and the user name is not accessible any more (why is this happening?). Ikai on his sample uses UserServiceFactory, which works only with Google Users authentication (is this correct?). How can I overcome this issue? I would much appreciate some feedback on the issue. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/F16bEEIF1VsJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Best way to read/write text data
Whats wrong with the datastore? Seems to be what its designed for - storing data. If its the 1Mb entity limit, surely its not very often that a paste will be bigger than that. And when it is just break it into parts, and have 'next part' pointer on the main entity. While there are experimental apis for writing (and reading from) the blobstore, they sound more trouble than just using datastore. On Mon, May 28, 2012 at 8:56 PM, Alex V. alexey.voloche...@gmail.com wrote: Hi, i'm trying to figure out best way to do this. I basically want to create a pastebin alternative on app engine, whats the best way to read/write such paste into on an App Engine stack? Should i use blobstore or try to dump them into data store? Any feedback is well appreciated, thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Code breaks with upgrade to 1.6.6 - using google-api-java-client
Since GAE SDK 1.6.6, my previously working code (GAE SDK 1.6.5) is not working anymore. The problem is related to the creation of UrlFetchTransport. I reduced the problem to the bare minimum in a BadClassTest class; When my BadClassTest looks like this : public class BadClassTest { public BadClassTest() { com.google.api.client.http.HttpTransport HTTP_TRANSPORT = new com.google.api.client.extensions.appengine.http.urlfetch.UrlFetchTransport(); } } then I *can* create an instance. When my BadClassTest looks like this : public class BadClassTest { com.google.api.client.http.HttpTransport HTTP_TRANSPORT = new com.google.api.client.extensions.appengine.http.urlfetch.UrlFetchTransport(); public BadClassTest() { //com.google.api.client.http.HttpTransport HTTP_TRANSPORT = new com.google.api.client.extensions.appengine.http.urlfetch.UrlFetchTransport(); } } I *cannot* create an instance of BadClassTest now. I run into following exception : *java.lang.VerifyError: (class: com/klawt/server/BadClassTest, method: signature: ()V) Bad type in putfield/putstatic* * * see also : http://stackoverflow.com/questions/10764671/verifyerror-after-upgrading-to-appengine-1-6-6-cannot-create-instance-of-urlfet ** cross-posted in google-api-java-client group -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/8zNuVpniEqcJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Best way to read/write text data
I'd definitely use blobstore for pastes and keep a reference to that blob in the datastore along with metadata you might have attached to that blob. On Monday, May 28, 2012 9:56:13 PM UTC+2, Alex V. wrote: Hi, i'm trying to figure out best way to do this. I basically want to create a pastebin alternative on app engine, whats the best way to read/write such paste into on an App Engine stack? Should i use blobstore or try to dump them into data store? Any feedback is well appreciated, thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/UZOEjwUkrxMJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Code breaks with upgrade to 1.6.6 - using google-api-java-client
Can you attach the testcase to an issue on the public issue tracker? http://code.google.com/p/googleappengine/issues/entry?template=Java%20defect Thanks in advance. On Tue, May 29, 2012 at 2:11 PM, Koen Maes k...@koma.be wrote: Since GAE SDK 1.6.6, my previously working code (GAE SDK 1.6.5) is not working anymore. The problem is related to the creation of UrlFetchTransport. I reduced the problem to the bare minimum in a BadClassTest class; When my BadClassTest looks like this : public class BadClassTest { public BadClassTest() { com.google.api.client.http.HttpTransport HTTP_TRANSPORT = new com.google.api.client.extensions.appengine.http.urlfetch.UrlFetchTransport(); } } then I can create an instance. When my BadClassTest looks like this : public class BadClassTest { com.google.api.client.http.HttpTransport HTTP_TRANSPORT = new com.google.api.client.extensions.appengine.http.urlfetch.UrlFetchTransport(); public BadClassTest() { //com.google.api.client.http.HttpTransport HTTP_TRANSPORT = new com.google.api.client.extensions.appengine.http.urlfetch.UrlFetchTransport(); } } I cannot create an instance of BadClassTest now. I run into following exception : java.lang.VerifyError: (class: com/klawt/server/BadClassTest, method: signature: ()V) Bad type in putfield/putstatic see also : http://stackoverflow.com/questions/10764671/verifyerror-after-upgrading-to-appengine-1-6-6-cannot-create-instance-of-urlfet ** cross-posted in google-api-java-client group -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/8zNuVpniEqcJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Johan Euphrosine (proppy) Developer Programs Engineer Google Developer Relations -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Code breaks with upgrade to 1.6.6 - using google-api-java-client
I will setup a minimal testcase and keep you posted when it's ready. Thx for the follow up. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/e96rCZyshL4J. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: PROD - QUEUE - DJANGO_SETTINGS_MODULE is undefined
I sometimes see this on dev_appserver when I use the datastore admin page locally, afterwards I usually need to reset the dev_appserver. It doesn't cause a problem on production, but I'll give Matt's suggestion a try. On Monday, May 28, 2012 6:23:53 AM UTC-4, Amine Azariz wrote: I am using Django 1.2, Python 2.5. This error happens from time to time. - e.g. some tasks got this error, some - not. How to solve this one? File /base/python_runtime/python_lib/versions/third_party/django-1.2/django/template/loader.py, line 168, in get_template_from_string return Template(source, origin, name) File /base/python_runtime/python_lib/versions/third_party/django-1.2/django/template/__init__.py, line 156, in __init__ if settings.TEMPLATE_DEBUG and origin is None: File /base/python_runtime/python_lib/versions/third_party/django-1.2/django/utils/functional.py, line 276, in __getattr__ self._setup() File /base/python_runtime/python_lib/versions/third_party/django-1.2/django/conf/__init__.py, line 38, in _setup raise ImportError(Settings cannot be imported, because environment variable %s is undefined. % ENVIRONMENT_VARIABLE) ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/UA8wjW1cjjYJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] How to use goog.net.IframeIo to upload a file to Blobstore in Python?
Hi Everyone, Here I am trying to upload a file asynchronously to the blobstore. Below is what I've done so far: *html file* form id=my_form enctype=multipart/form-data method=POST action=/partner input type=file id=my_file name=my_file/ /form *js file* my.Project.prototype.onFileUpload = function(e) { var uploadForm = /** @type {HTMLFormElement} */ ( goog.dom.getElement('my_form')); var iframeIo = new goog.net.IframeIo(); goog.events.listen(iframeIo, goog.net.EventType.COMPLETE, function() { alert('request complete'); }); iframeIo.sendFromForm(uploadForm); *python code* class MyHandler(blobstore_handlers.BlobstoreUploadHandler): def post(self): logging.info(self.request) // I can see my file in this line's output upload_files = self.get_uploads('my_file') logging.info(upload_files) //upload_files come out to be an empty array blob_info = upload_files[0] self.redirect('/partner/serve/%s' % blob_info.key()) Any pointers on how to get the file to be uploaded from the request object. The python code provided by google's tutorial on BlobStore can be found here https://developers.google.com/appengine/docs/python/blobstore/overview#Complete_Sample_App. Now I am stuck. I believe if I can get the file in python code I'll be able to upload it. Any pointers will be very helpful. Thanks, Mohit -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/B6rjqiK6ZD4J. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] About add my own domain name
Hello, I already signed up for Google Apps to register domain statruth.com. And i received a reply and call me to In order to fully activate your account, you’ll need to verify ownership of statruth.com. For step by step directions on how to do this, just log in to your Control Panel at google.com/a/statruth.com http://www.google.com/a/statruth.com and click the ‘Setup’ tab. However, when I go to google.com/a/statruth.comhttp://www.google.com/a/statruth.com, it display *Google Apps - Server error*. How can i register my own domain name? Thanks, DeveloperX -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] About add my own domain name
It's likely related to Google's multi-auth. Make sure you are completely logged out of Google, then log into the one domain. Another possibility is try different web browsers. This worked for me, but probably because it changed login state. I've seen this before from Google Apps. Something there is pretty half-baked. Jeff On Mon, May 28, 2012 at 1:22 AM, Stat Truth statr...@gmail.com wrote: Hello, I already signed up for Google Apps to register domain statruth.com. And i received a reply and call me to In order to fully activate your account, you’ll need to verify ownership of statruth.com. For step by step directions on how to do this, just log in to your Control Panel at google.com/a/statruth.com http://www.google.com/a/statruth.com and click the ‘Setup’ tab. However, when I go to google.com/a/statruth.comhttp://www.google.com/a/statruth.com, it display *Google Apps - Server error*. How can i register my own domain name? Thanks, DeveloperX -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: How to use goog.net.IframeIo to upload a file to Blobstore in Python?
BlobstoreUploadHandler will probably work best with create_upload_url(/partner) https://developers.google.com/appengine/docs/python/blobstore/functions - that's what you want to set in form action=... - try that and see if it works. On Tuesday, May 29, 2012 12:41:36 PM UTC+2, Mohit Chilkoti wrote: Hi Everyone, Here I am trying to upload a file asynchronously to the blobstore. Below is what I've done so far: *html file* form id=my_form enctype=multipart/form-data method=POST action=/partner input type=file id=my_file name=my_file/ /form *js file* my.Project.prototype.onFileUpload = function(e) { var uploadForm = /** @type {HTMLFormElement} */ ( goog.dom.getElement('my_form')); var iframeIo = new goog.net.IframeIo(); goog.events.listen(iframeIo, goog.net.EventType.COMPLETE, function() { alert('request complete'); }); iframeIo.sendFromForm(uploadForm); *python code* class MyHandler(blobstore_handlers.BlobstoreUploadHandler): def post(self): logging.info(self.request) // I can see my file in this line's output upload_files = self.get_uploads('my_file') logging.info(upload_files) //upload_files come out to be an empty array blob_info = upload_files[0] self.redirect('/partner/serve/%s' % blob_info.key()) Any pointers on how to get the file to be uploaded from the request object. The python code provided by google's tutorial on BlobStore can be found here https://developers.google.com/appengine/docs/python/blobstore/overview#Complete_Sample_App. Now I am stuck. I believe if I can get the file in python code I'll be able to upload it. Any pointers will be very helpful. Thanks, Mohit -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/gxQx_WZ_An8J. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Server Error (Text Search) on Admin Console
I get this error too. Because of what this error? On 29 май, 04:13, Amy Unruh amyu+gro...@google.com wrote: Eshe, What is your app id? (You can email it to me directly if you like). On 28 May 2012 14:49, eshe muta eshem...@dishcrunch.com wrote: We're seeing this: Server Error A server error has occurred. Return to Applications screen » Whenever we click on Any index of Text Search on Admin Console. 100% reproducible. Is this happening to other apps? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/nhT0A0eCoT4J. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Code breaks with upgrade to 1.6.6 - using google-api-java-client
I got confirmation from another user in the google-api-java-client group. The workaround is to drop UrlFetchTransport and use NetHttpTransport which seems to be supported nowadays on AppEngine. see here : https://groups.google.com/forum/?fromgroups#!topic/google-api-java-client/FJSsz5qo7pg My app is working in production now. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/4iU7f_3ZXaAJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Cron job on backends not run
I implemented the same workaround. For the past two days, it worked. It looks more elegant than I schedule another same job just for fail-over. Thanks, Will On Fri, May 25, 2012 at 8:59 PM, weboo hidet...@gmail.com wrote: I have same problem. The cron job on dynamic backend instance does not works. So I set the job which responses only OK 1 minites before real job, it works. Hidetaka On May 26, 5:59 am, Steve Meyfroidt steve.meyfro...@gmail.com wrote: I had the same. I think there's a timeout while the instance is started. I fixed it by scheduling a call to _ah/warmup a minute before the first real work job. Now I see those warmups always fail, but the real work gets done, presumably because the instance is up by the time they're scheduled to run. Steve On May 24, 9:28 pm, Will vocalster@gmail.com wrote: I have a daily cron job running on backends instance. It has been run without problem until the last couple of days. The log shows /_ah/start and /_ah/stop have been invoked but not my work url. Yesterday I temporary scheduled one more occurrence and it ran properly, but today the same thing happened again. It is on HDR. Any ideas? Thanks, Will -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Datastore vs Cloud SQL usage cost
One additional consideration with Cloud SQL is that you only pay for the instance while it is being accessed. If you only use your database for a few hours per month then you will only pay for those hours (at $0.10 per hour for a D1 instance). Joe On Tuesday, May 22, 2012 3:53:22 PM UTC-7, Suyog wrote: Hi I am trying to compare costs involved in using these storage options. I am summarizing what I know For datastore as per https://developers.google.com/appengine/docs/billing writes are charged $0.10 per 100k operations and reads at $0.07 per 100k operations. Each high level operations can cause multiple low level operations and the number is well defined. You get free quota. I read somewhere that datastore scales better though that might depend on the application. For cloud SQL as per https://developers.google.com/cloud-sql/docs/billing IOs are billed $0.10 per Million and they won't say how many IOs given query will make (packages make the whole thing cheaper) You get additional free caching managed by MySQL You need to make per month commitment of about $45 (I wish they had something like tier D0 with much lower cost and resources) storage costs are same. Please let me know if I there are other considerations. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/fHEvC20xmeYJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.