[google-appengine] Re: How do I obtain a CSR?

2017-02-06 Thread Liz Furber
Many thanks, Kelly. I've installed openSSL and run the command lines. The 
resulting CSR wasn't validated by the CA - but that's another issue! Thanks 
for your help.

On Tuesday, 24 January 2017 23:32:53 UTC, Kelly Ingram wrote:
>
> Hi Liz,
> This step should be done on your PC/server.  
> I downloaded and installed openSSL from here 
> https://www.openssl.org/source/
> Once installed you can then run the command lines as per the Google 
> instructions, changing the values accordingly.
>
> Hope that helps.
> Kelly
>
> On Wednesday, 25 January 2017 01:21:13 UTC+11, Liz Furber wrote:
>>
>> I have very little technical knowledge. I have bought an SSL certificate 
>> online for our charity's website and regularly receive emails from the CA 
>> asking me for the CSR. I have no idea how to get this from Google Cloud 
>> Platform. The webpage - 
>> https://cloud.google.com/appengine/docs/python/console/using-custom-domains-and-ssl#obtaining_a_certificate
>>  
>> - gives the relevant information I am sure, but I am already lost at 
>> section 1a. Can anyone help with a step by step guide on how I do this? I 
>> bought the certificate in mid December and really need to get on with this. 
>> Any help would be amazing. 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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/01594010-7639-471d-bf24-bcb062748b82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How do I obtain a CSR?

2017-01-24 Thread Liz Furber
I have very little technical knowledge. I have bought an SSL certificate 
online for our charity's website and regularly receive emails from the CA 
asking me for the CSR. I have no idea how to get this from Google Cloud 
Platform. The webpage - 
https://cloud.google.com/appengine/docs/python/console/using-custom-domains-and-ssl#obtaining_a_certificate
 
- gives the relevant information I am sure, but I am already lost at 
section 1a. Can anyone help with a step by step guide on how I do this? I 
bought the certificate in mid December and really need to get on with this. 
Any help would be amazing. 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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/39d9-9e83-4fdb-a174-7350b0ebdf38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] AppEngine PHP : receiving email but POST fields are empty

2013-11-14 Thread Liz Stinson
Wow. Thank you so much, Vinny.

I'm so hugely grateful to you. You're my hero (and just saved my work day).

Blessings and gratitude,
Liz

On Thursday, November 14, 2013 11:35:57 AM UTC-8, Vinny P wrote:
>
> On Thu, Nov 14, 2013 at 12:12 PM, Liz Stinson 
> 
> > wrote:
>
>> GAE supposedly submits the data to my script from the incoming mail using 
>> POST. Per Google description (
>> https://developers.google.com/appengine/docs/php/mail/):
>>
>> Email messages are sent to your app as HTTP requests. 
>>
>>
>> Both the $_POST and $_GET arrays are empty.
>>
>>
>
> GAE sends the content of the email via the body of the POST request, not 
> via POST parameters. So you'll need to retrieve the body by using 
> *http_get_request_body* or similar: 
> http://php.net/manual/en/function.http-get-request-body.php
>
> From there you can use your preferred RFC2822 parser to parse out the 
> email and extract the from, subject, to, etc header fields. There are 
> libraries for that (you can Google them) but you can also manually extract 
> out the email components.
>   
> You can also use SendGrid to receive and parse email - Sendgrid handles 
> the job of parsing the email into a JSON file, which you can then extract 
> using any JSON library: 
> https://developers.google.com/appengine/articles/sendgrid
>   
> -
> -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] AppEngine PHP : receiving email but POST fields are empty

2013-11-14 Thread Liz Stinson
Thanks, Vinny. There is no HTML form. GAE supposedly submits the data to my 
script from the incoming mail using POST. Per Google description 
(https://developers.google.com/appengine/docs/php/mail/):

Email messages are sent to your app as HTTP requests. These requests are 
> generated by App Engine and posted to your app. In your app's 
> configuration, you specify handlers that will be called to handle these 
> HTTP requests. In your handlers, you receive the MIME data for email 
> messages, which you then parse into its individual fields. Email messages 
> are sent to your app as HTTP POST requests...


Both the $_POST and $_GET arrays are empty.

Here's the bug I 
filed: 
https://code.google.com/p/googleappengine/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log&groupby=&sort=&id=10280

Thanks for your help!

On Wednesday, November 13, 2013 6:04:42 PM UTC-8, Vinny P wrote:
>
> On Wed, Nov 13, 2013 at 12:16 PM, Liz Stinson 
> 
> > wrote:
>
>> In particular, in the code below, the ELSE block is getting executed. Any 
>> ideas?
>>
>> if ($_POST) {}else {syslog(LOG_ERR, "[handle_incoming_email.php] EMPTY POST 
>> fields... Bailing.");}
>>
>>
>>
>
> Generally this means that the script is not receiving any POST variables. 
> Can you post the HTML code of the form? Also try dumping the value of the 
> POST and GET variables by using *var_dump($_GET);*, there might be 
> additional clues there to debug this.
>   
>  
> -
> -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] GAE PHP -- receiving incoming mail. POST array is empty.

2013-11-13 Thread Liz Stinson
Hi,

I'm able to receive incoming mail on my GAE PHP app but when I go to parse 
the POST fields (and retrieve the actual data from the incoming mail), I 
find that the POST array is empty.

The "ELSE" branch below is being executed. What gives?

// obtain data from text message (as received by Twilio)

$email; $content; $subject;

if ($_POST) {

$email = $_POST['sender'];

$content = $_POST['original'];

$subject = $_POST['subject'];

}

else {

syslog(LOG_ERR, "Empty post fields! Bailing...");

return;

}

-- 
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] AppEngine PHP : receiving email but POST fields are empty

2013-11-13 Thread Liz Stinson
I have a GAE PHP app which is able to send email and also able to receive 
email however the POST fields are empty.

I know that I have set the APP.YAML file up correctly because my MAIL 
HANDLING script is getting invoked when I receive an email.

However, the POST fields are empty. So I am not able to process the 
incoming email in any way.

In particular, in the code below, the ELSE block is getting executed. Any 
ideas?

if ($_POST) {
   $email = $_POST['sender'];
   $content = $_POST['original'];
   $subject = $_POST['subject'];}else {
   syslog(LOG_ERR, "[handle_incoming_email.php] EMPTY POST fields... Bailing.");
   return;}


Thanks.
Liz

-- 
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: ProtocolBufferEncodeError: Required field: multiple not set

2009-05-12 Thread Liz

Thanks for the solution.  Saved me a lot of time!

On May 11, 12:52 am, joshuacronemeyer 
wrote:
> I recently noticed that the 'full text search' feature of my app was
> throwing a stacktrace like this:
>
> Traceback (most recent call last):
>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> __init__.py", line 503, in __call__
>     handler.post(*groups)
>   File "/base/data/home/apps/shell-sink/2.331785781902411868/
> shellsink.py", line 191, in post
>     commands = full_text_search(sysadmin, query, paging_helper.page)
>   File "/base/data/home/apps/shell-sink/2.331785781902411868/
> command.py", line 55, in full_text_search
>     return query.fetch(Command.COMMANDS_PER_PAGE, (page - 1) *
> Command.COMMANDS_PER_PAGE)
>   File "/base/python_lib/versions/1/google/appengine/ext/db/
> __init__.py", line 1426, in fetch
>     raw = self._get_query().Get(limit, offset)
>   File "/base/python_lib/versions/1/google/appengine/api/
> datastore.py", line 964, in Get
>     return self._Run(limit, offset)._Next(limit)
>   File "/base/python_lib/versions/1/google/appengine/api/
> datastore.py", line 905, in _Run
>     apiproxy_stub_map.MakeSyncCall('datastore_v3', 'RunQuery', pb,
> result)
>   File "/base/python_lib/versions/1/google/appengine/api/
> apiproxy_stub_map.py", line 68, in MakeSyncCall
>     apiproxy.MakeSyncCall(service, call, request, response)
>   File "/base/python_lib/versions/1/google/appengine/api/
> apiproxy_stub_map.py", line 240, in MakeSyncCall
>     stub.MakeSyncCall(service, call, request, response)
>   File "/base/python_lib/versions/1/google/appengine/runtime/
> apiproxy.py", line 181, in MakeSyncCall
>     rpc.MakeCall(package, call, request, response)
>   File "/base/python_lib/versions/1/google/appengine/api/
> apiproxy_rpc.py", line 92, in MakeCall
>     self._MakeCallImpl()
>   File "/base/python_lib/versions/1/google/appengine/runtime/
> apiproxy.py", line 124, in _MakeCallImpl
>     self.request.Output(e)
>   File "/base/python_lib/versions/1/google/net/proto/
> ProtocolBuffer.py", line 162, in Output
>     raise ProtocolBufferEncodeError, '\n\t'.join(dbg)
> ProtocolBufferEncodeError: Required field: multiple not set.
>
> I am using a gently modified version of SearchableModel in my app so I
> immediately suspected some change in the db.Model super class.  It
> looks like the following line was added to the _ToPb method of
> SearchableQuery: prop.set_multiple(len(keywords) > 1)
>
> I applied the following patch to my custom SearchableModel and it
> works fine again.
>
> 232a263>         prop.set_multiple(len(keywords) > 1)
> 237a269,286
> > class SearchableMultiQuery(datastore.MultiQuery):
> >   """A multiquery that supports Search() by searching subqueries."""
>
> >   def Search(self, *args, **kwargs):
> >     """Add a search query, by trying to add it to all subqueries.
>
> >     Args:
> >       args: Passed to Search on each subquery.
> >       kwargs: Passed to Search on each subquery.
>
> >     Returns:
> >       self for consistency with SearchableQuery.
> >     """
> >     for q in self:
> >       q.Search(*args, **kwargs)
> >     return self
>
> 264c312,314
> <       query = db.Query._get_query(self,
> _query_class=SearchableQuery)
> ---
>
> >       query = db.Query._get_query(self,
> >                                   _query_class=SearchableQuery,
> >                                   _multi_query_class=SearchableMultiQuery)
>
> Thought I would post just in case anyone else runs into it.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---