Re: [google-appengine] python 3.6: struggle to send an email with a file attached to it (NameError: name 'encoders' is not defined)

2017-03-04 Thread 'Alex Martelli' via Google App Engine
On Sat, Mar 4, 2017 at 1:52 PM, Guillaume France wrote: > Hi again Alex, I just found your email in the thread, the one you were > talking about the raw= encoders.encode_base64(msg) . > > I discovered that bug yesterday and commented that line (which correctly > send the

Re: [google-appengine] python 3.6: struggle to send an email with a file attached to it (NameError: name 'encoders' is not defined)

2017-03-04 Thread 'Alex Martelli' via Google App Engine
Hi Guillaume, and I'm very glad to see that you've taken my reply in the positive, helpful spirit it was meant in -- I'm Italian, with a touch of French, and find our Latin cultural openness and frankness sometimes grate in the globalized culture of the tech world... happy it didn't here! On Sat,

Re: [google-appengine] Re: App Engine Flex "Error: Server Error" occurs often, how to find cause?

2017-03-04 Thread Nickolas Daskalou
Thanks for those suggestions Nick, I will let you know if I have any other questions  Nick On 4 March 2017 at 02:40, 'Nick (Cloud Platform Support)' via Google App Engine wrote: > Hey Nickolas, > > This forum should be used to post general discussion

[google-appengine] Re: Datastore queries are unpredictably slow when a limit is applied

2017-03-04 Thread Arjunkumar Udainath
Additional info: The query has 4 "equals" filters on 4 different properties (3 strings and 1 Boolean). It does not have a sort order applied. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop

[google-appengine] Re: Datastore queries are unpredictably slow when a limit is applied

2017-03-04 Thread 'Adam (Cloud Platform Support)' via Google App Engine
Can you let us know what language runtime you're using, preferably with a sample of code which shows your query and fetch options? On Saturday, March 4, 2017 at 12:01:57 PM UTC-5, Arjunkumar Udainath wrote: > > I have an app that's sort of like a to-do application. Any given user > would have

Re: [google-appengine] Is cron.yaml supported with custom runtimes?

2017-03-04 Thread 'Adam (Cloud Platform Support)' via Google App Engine
Are you using a base image in your Dockerfile that is an App Engine runtime? If you use a non-App Engine base image, the App Engine Cron Service will not be available. On Saturday, March 4, 2017 at 2:55:11 PM UTC-5, Ben Rometsch wrote: > > Its a Java/Docker/FlexVM app not a standard Python

[google-appengine] Re: appengine TimeZone changed

2017-03-04 Thread 'Adam (Cloud Platform Support)' via Google App Engine
The timezone in App Engine is always set to UTC and cannot be changed. You'll need to convert between UTC and the timezone you wish to use. You can refer to one of the numerous existing threads on the subject for more background. On

Re: [google-appengine] python 3.6: struggle to send an email with a file attached to it (NameError: name 'encoders' is not defined)

2017-03-04 Thread Guillaume France
Hi again Alex, I just found your email in the thread, the one you were talking about the raw= encoders.encode_base64(msg) . I discovered that bug yesterday and commented that line (which correctly send the email ― without the attachment though, would have been too easy!). But I did not know what

Re: [google-appengine] python 3.6: struggle to send an email with a file attached to it (NameError: name 'encoders' is not defined)

2017-03-04 Thread Guillaume France
Hi Alex, *First I apologize for the italic, that wasn't mature. But your reaction was super: I warmly thank you for that!* I also thank you for the quality of your answer. Especially for pointing me to the right forum (I'm both impressed and sorry. Impressed you did not send me to the right

[google-appengine] Re: Uploading large image files and video to Google Cloud Storage

2017-03-04 Thread 'Adam (Cloud Platform Support)' via Google App Engine
Glad to hear you got it working. Regarding my last response, it's not an issue in that its a bug that needs to be fixed, I meant that it's an issue that people encounter when doing resumable uploads with the JSON API. The behavior is mentioned in the callout in the CORS documentation

Re: [google-appengine] Is cron.yaml supported with custom runtimes?

2017-03-04 Thread Ben Rometsch
Its a Java/Docker/FlexVM app not a standard Python appengine app...? On Saturday, 4 March 2017 14:46:41 UTC, Nickolas Daskalou wrote: > > Have you updated your crons with something like this? > > > appcfg.py update_cron dir_with_cron_file? > > See here for more info: > > >

Re: [google-appengine] Re: python 3.6: struggle to send an email with a file attached to it (NameError: name 'encoders' is not defined)

2017-03-04 Thread 'Alex Martelli' via Google App Engine
...and BTW, yet another major bug in your code (100% unrelated to either App Engine or the Gmail API, I believe) comes in the line: raw= encoders.encode_base64(msg) which appears to completely disregard a clear note in the Python standard library documentation --

Re: [google-appengine] Re: python 3.6: struggle to send an email with a file attached to it (NameError: name 'encoders' is not defined)

2017-03-04 Thread 'Alex Martelli' via Google App Engine
On Sat, Mar 4, 2017 at 4:14 AM, Guillaume France wrote: > I understand that this kind of question bother you, and the people of this > group, but as I mention in my email, it does also bother people on the > stack. (This question will be seen and down-voted as duplicate.) >

[google-appengine] Datastore queries are unpredictably slow when a limit is applied

2017-03-04 Thread Arjunkumar Udainath
I have an app that's sort of like a to-do application. Any given user would have "Tasks" that are pending at any given time. The number of tasks pending for a user can range from 0 to 5000. I need to fetch the pending tasks (or at least a small batch) for each user when they load the page. How

Re: [google-appengine] Is cron.yaml supported with custom runtimes?

2017-03-04 Thread Nickolas Daskalou
Have you updated your crons with something like this? > appcfg.py update_cron dir_with_cron_file? See here for more info: https://cloud.google.com/appengine/docs/standard/python/tools/appcfg-arguments#update_cron You'll also need to ensure the /tasks/test URL is routed to your Flex environment

[google-appengine] Is cron.yaml supported with custom runtimes?

2017-03-04 Thread Ben Rometsch
Hi, I'm running a custom Docker runtime on flexible VMs. I have an cron.yaml file in my root dir that looks like: cron: - description: daily summary job url: /tasks/test schedule: every 1 minutes It's not being run. Is cron.yaml supported in custom Docker runtimes? The documentation

Re: [google-appengine] Re: python 3.6: struggle to send an email with a file attached to it (NameError: name 'encoders' is not defined)

2017-03-04 Thread Guillaume France
I understand that this kind of question bother you, and the people of this group, but as I mention in my email, it does also bother people on the stack. (This question will be seen and down-voted as duplicate.) Since it’s a question about a Google product (Gmail API), the logical way would be to