Re: [google-appengine] Re: I'm seeing 500 status and 204 error code.

2015-09-11 Thread Nicolas Enriquez
HI Nick,

Thanks for your attention!
Yes, we're using crons and task queues. But, this kind of error occurs in
resources whether they're related to crons and tasks or not.
I've increased the instance's class from default to F2 and this kind of
errors occurs with minor frequency. Maybe, it could be a clue.
Regards.

El jue., 10 sept. 2015 a las 19:52, Nick (Cloud Platform Support) (<
pay...@google.com>) escribió:

> Hi Nicolas,
>
> Alright, so given that this appears to have disproved the simplest
> explanation, it looks as though it could be something more interesting.
> From reading elsewhere, it appears it could be this is an error which
> wasn't caught in your app's runtime, although not in the main
> request-handling thread. Do you use any task queues or cron tasks,
> threading or the "deferred" module?
>
> Sincerely,
>
> Nick
>
>
> On Wednesday, September 9, 2015 at 10:39:00 AM UTC-4, Nicolas Enriquez
> wrote:
>>
>> Hi nick.
>>
>> Im sorry for the offtopic.
>> Im using App Engine python, and my log level was * (all levels) when I'm
>> seeing those errors.
>>
>> Thanks!
>>
>>
>> El martes, 8 de septiembre de 2015, 14:18:45 (UTC-3), Nick (Cloud
>> Platform Support) escribió:
>>>
>>> Hey Nicolas,
>>>
>>> Given that this is a specific technical issue and not a more general
>>> discussion-thread, it's somewhat off-topic here, although I'll be happy to
>>> help as much as I can. Feel free to post such questions to stackoverflow
>>>  in future, since we also monitor there and
>>> you'll find many more users who are ready and willing to help.
>>>
>>> Error Code 204, from what I can read in previous threads, seems to
>>> denote some kind of uncaught error in your application or its runtime. Are
>>> you using Managed VMs or App Engine python? Secondly, how low is your log
>>> level set in the Developers Console viewer? Perhaps there are logs you
>>> aren't seeing?
>>>
>>> Best wishes,
>>>
>>> Nick
>>>
>>> On Saturday, September 5, 2015 at 10:36:19 AM UTC-4, Nicolas Enriquez
>>> wrote:

 Hi folks!

 I'm seeing a lot of requests with 500 response code. There are only one
 line on file log:

 *A problem was encountered with the process that handled this request,
 causing it to exit. This is likely to cause a new process to be used for
 the next request to your application. (Error code 204)*

 Addinialy, I can see a weird appengine's auto log line. I'm using
 Python 2.7 with threading on and 5 idle instances:

 *190.210.97.5 - - [04/Sep/2015:10:00:21 -0700] "POST
 /api/v1/ecclaro/sondeos/event HTTP/1.1" 500 0 - "Java/1.6.0_24"
 "xxx.appspot.com " ms=4301 cpu_ms=0
 pending_ms=942 exit_code=204
 instance=00c61b117c96c7c9c0bec141a97c4d4f8ebb5189
 app_engine_release=1.9.26 *

 This happens more often when the traffic on my application is
 increasing. And often happen with some resources. I don't know to do.
 Because I can't see low level error logs. My assumption is it's a runtime
 failure of python but I don't know.

 Anyone got any ideas?

 Regards

>>> --
> 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/8R0iaYnnmbg/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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/b8fb596b-876d-4c39-92b4-75cff68be1d8%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


[google-appengine] Read Email Sent to AppEngine

2015-09-11 Thread Dave Greenly
I have an app engine that I set up, that receives email.  My AppEngine is 
working fine, and I can parse the email etc... and start up the appropriate 
compute engines.

Is there a way that I can see the email in human readable form somehow, and 
potentially even report to the email.

I am sending it to the x...@my-project-name.appspotmail.com.

I am not sure how to view this in an email client.

Thanks
Dave

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c2dbd8bc-90d8-4742-98aa-aae4d32aa613%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Read Email Sent to AppEngine

2015-09-11 Thread Patrice (Cloud Platform Support)
Hi Dave,

Unfortunately, emails sent to your appspotmail.com are not saved anywhere, 
so you can't really access them through a client.

One thing you could do is to make your handler get the email, address it 
properly (starting up your instances, etc), then create a new email with 
the same content and send it to an address where you CAN read it (like your 
personal gmail, or an admin email). I would suggest using the Mail Python 
API  (if you're using 
Python), which you're possibly already familiar with since you receive your 
emails there.

Cheers!

On Friday, September 11, 2015 at 3:23:32 PM UTC-4, Dave Greenly wrote:
>
> I have an app engine that I set up, that receives email.  My AppEngine is 
> working fine, and I can parse the email etc... and start up the appropriate 
> compute engines.
>
> Is there a way that I can see the email in human readable form somehow, 
> and potentially even report to the email.
>
> I am sending it to the x...@my-project-name.appspotmail.com.
>
> I am not sure how to view this in an email client.
>
> Thanks
> Dave
>

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


[google-appengine] Re: httplib2 vs. YouTube Upload API v3

2015-09-11 Thread Nick (Cloud Platform Support)
Hey Soeren,

We're still working to figure this out, so thanks for your patience. I'll 
update next week with any results.

Best wishes,

Nick

On Tuesday, September 1, 2015 at 1:03:52 AM UTC-4, Soeren Balko wrote:
>
> Hi,
>
> I'm running into weird issues with httplib2 when following the 
> instructions for resumable uploads to YouTube (see here: 
> https://developers.google.com/youtube/v3/guides/using_resumable_upload_protocol
> ).
>
> Their very first server roundtrip creates a video resource and returns a 
> "Location" response header, which is the upload URL to send the actual 
> video file. That works well and when I invoke this service using cURL like 
> so:
>
> curl -X POST \
>  --verbose \
>  -H "Authorization: Bearer ..." \
>  -H "Content-Type: application/json; charset=UTF-8" \
>  -H "X-Upload-Content-Type: video/*" \
>  -H "X-Upload-Content-Length: 500" \
>  -d '{"snippet": {"title": "foo"}, "status": {"privacyStatus": 
> "unlisted"}}' \
>  "
> https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable=snippet%2Cstatus
> "
>
> ...it works as desired and gives me a HTTP/200 and the aforementioned 
> "Location" response header. I tried to mimic that in a GAE Python app, 
> using the httplib2 library. Here is what I do:
>
> http = httplib2.Http()
> credentials.authorize(http)
> 
> body = simplejson.dumps({
>
> 'snippet': {
>
> 'title': 'foo',
>
> 'description': 'bar'
>
> },
>
> 'status': {
>
> 'privacyStatus': 'unlisted'
>
> }
>
> })
> 
> response, content = http.request(
>
> uri = '
> https://www.googleapis.com/upload/youtube/v3/videos?uploadtype=resumable=snippet%2Cstatus
> ', 
>
> method = 'POST',
>
> body = body, 
>
> headers = {
>
> 'X-Upload-Content-Length': str(size),
>
> 'X-Upload-Content-Type': 'video/*',
>
> 'Content-Type': 'application/json; charset=UTF-8'
>
> }
>
> )
>
>
> However, that request returns a HTTP/400 with a body that says:
>
>
> {
>
>  "error": {
>
>   "errors": [
>
>{
>
> "domain": "global",
>
> "reason": "badContent",
>
> "message": "Media type 'application/json; charset=UTF-8' is not 
> supported. Valid media types: [video/*, application/octet-stream]"
>
>}
>
>   ],
>
>   "code": 400,
>
>   "message": "Media type 'application/json; charset=UTF-8' is not 
> supported. Valid media types: [video/*, application/octet-stream]"
>
>  }
>
> }
>
>
> That doesn't make any sense to me. Somehow, it confuses the "Content-Type" 
> header with that "X-Upload-Content-Type" and I don't know why that is. I 
> tried passing the HTTPS traffic through a HTTP proxy, but httplib2 does not 
> seem to play nicely with the HTTP proxy I use (Charles). 
>
>
> Ideas, anyone?
>
>
> Thanks heaps,
>
> Soeren
>

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


[google-appengine] Re: Google App Engine version 1.9.26 SDK available

2015-09-11 Thread aloo
Can someone elaborate on the "Capability to provision applications for 
current load and configure elastic provisioning based on both VM and 
application level metrics." feature?

On Friday, September 4, 2015 at 4:25:51 PM UTC-7, Sang Park wrote:
>
> Hello!
>
>
> We have released a new version of the GAE SDK. You can view the release 
> notes are available in their respective run-time pages:
>
> Python 
>
> Java 
>
> PHP 
>
> Go 
>
> Also provided below.
>
>
> Version 1.9.26 - September 4, 2015
>
>
>- *All*
>- oauth2client library upgraded to version 1.4.2. 
>   https://github.com/google/oauth2client/blob/master/CHANGELOG.md
>   - Adds "show in context" menu for MVM application logs that have 
>   thread_id or request_id as a field in their log entry. This allows 
> sorting 
>   app logs based on either field.
>   - Capability to provision applications for current load and 
>   configure elastic provisioning based on both VM and application level 
>   metrics.
>   - Remote API can now be accessed using OAuth2 credentials using 
>   
> https://developers.google.com/identity/protocols/application-default-credentials
>   - Use RequestPayloadTooLargeException for URLFetch requests with 
>   payloads that are too large.
>- *Java Runtime*
>   - Java's URLFetch API gains a property to specify default fetch 
>   deadline. `appengine.api.urlfetch.defaultDeadline` is a floating 
>   point number in seconds that can be used to specify a default URLFetch 
>   timeout for Java in appengine-web.xml.
>
>
>
> Thank you from the Google App Engine team!
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/41a11cba-3a35-46e4-aa3f-6ddabcca07ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Google Managed VMs Python Runtime

2015-09-11 Thread 'Alex Martelli' via Google App Engine
I believe the issues are currently still tracked at code.google.com, per
https://code.google.com/p/googleappengine/issues/list?can=2=Component%3DManagedVMs+=ID+Type+Component+Status+Stars+Summary+Language+Priority+Owner+Log=tiles
. Not sure what's the status of the migration of issue tracking to Github,
though.

Alex

On Fri, Sep 11, 2015 at 3:19 AM, pdknsk  wrote:

> https://github.com/GoogleCloudPlatform/appengine-python-vm-runtime
>
> I noticed this beta runtime, to be used with multicore-VMs. The last
> sentence on the page reads as follows.
>
> > Please open an issue on Github for any you encounter.
>
> Except that you can't, because issues are not enabled.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/8d034816-28c6-40f0-ae2a-66b7ef4cfb36%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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