[Zope] FW: [Zope] (116) unable to connect, fd=3
Michel Pelletier
michel@digicool.com
Thu, 3 Jun 1999 12:39:13 -0400
(forwarding to list, was not CC'ed accidentally)
> -----Original Message-----
> From: Michel Pelletier
> Sent: Thursday, June 03, 1999 12:39 PM
> To: 'Tim Hawes'; Michel Pelletier
> Subject: RE: [Zope] (116) unable to connect, fd=3
>
>
>
>
> > -----Original Message-----
> > From: Tim Hawes [mailto:tim.hawes@ncmail.net]
> > Sent: Thursday, June 03, 1999 1:03 PM
> > To: Michel Pelletier
> > Subject: Re: [Zope] (116) unable to connect, fd=3
> >
> >
> > Michel Pelletier wrote:
> >
> > > > -----Original Message-----
> > > > From: Tim Hawes [mailto:tim.hawes@ncmail.net]
> > > > Sent: Thursday, June 03, 1999 11:32 AM
> > > > To: Michel Pelletier; zope@zope.org
> > > > Subject: Re: [Zope] (116) unable to connect, fd=3
> > > >
> > > >
> > > >
> > > > This seems to be the bit of code it chokes on:
> > > >
> > > > <!--#sendmail smtphost="smtp.ncmail.net" -->
> > > > To: 9198343441.<!--#var expr=REQUEST.form['pin']-->@pagenet.net
> > > > From: <!--#var expr=REQUEST.form['from']-->
> > > > <!--#var expr=REQUEST.form['message']-->
> > > > <!--#/sendmail-->
> > > >
> > > > But isn't this up to spec?
> > > >
> > >
> > > Nope. You need quotes around the expressions, as in
> > expr="". It should
> > > raise a syntax error, however. Why this bombs your python
> > is unknown,
> > > must be a bug of some kind. Put quotes around your
> > expressions and try
> > > it again.
> > >
> >
> > Nope, didn't work. I wonder if I have stumbled accross a bug.
> > I wish I knew
> > more of its nature. :-/
> >
>
> Put just this bit of DTML into a method (lets it's called
> 'themethod') somewhere in your root Zope folder.
>
> *Shut down Zope*
>
> go to 'Zopedir/lib/python'
>
> do this:
>
> [michel@aldous python]$ python
> Python 1.5.1 (#2, Jan 26 1999, 10:47:10) [GCC 2.7.2.3] on linux2
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import ZPublisher, Main
> >>>
> ZPublisher.Main('themethod?pin=blah&from=blah@blah.com&message
> =blahblah')
>
>
> 'themethod' should be the name of the method containing the
> errant DTML code
>
> 'pin', 'from', and 'message' should be sensable values that
> make your code fail through the web also.
>
> ZPublisher.Main has the effect of calling 'themethod' just
> like a web request would. Something is happening to make
> your pcgi connection fail with the Zope long running process,
> and thus you cannot see the error that the python process is
> giving you. Since pcgi is not involved in this little test,
> you will see the error printed on your terminal. It could be
> a syntax error, a core dump, an SMTP error that causes
> something to get sent to stderr instead of raising an
> exception, who knows. Sniff it out.
>
> -Michel
>
> > --
> >
> > Tim Hawes
> > tim.hawes@ncmail.net
> >
> >
> >
>