It’s just data

Cat Nap

cat nap

RE:Cat Nap

Cute Cat.

PS: First Post from RSS Bandit [version 1.0d]



Message from Dare Obasanjo's Home Page at

Hey,
It worked. So why did it throw an exception then?

Need to investigate.

Posted by Dare Obasanjo at

Cool.  If you want to debug without actually leaving a message, you might want to consider adding a preview element.

For my implementation, and at the present time, there is no requirement on the presence of the soap:mustUnderstand attribute, or on the namespace prefix used (if any), or that this element need even be in a SOAP header.  I do reserve the right to tighten this up at any time, and clearly any other comment API compatible application is under no obligation to respect this, or even indicate they they could not comply with the request, unless this element were in a SOAP header with the mustUnderstand flag set on.

Posted by Sam Ruby at

OK,
Fixed two oversights. I wasn't sending the <name> field in the POST and I wasn't setting the Content-Length header either. Here goes nothing.

5 minutes later

That caused a 500 as well. I'll include the XML I sent and see if anything looks wierd to you

<item>
<title>RE:Cat Nap</title>
<link>http://www.kuro5hin.org/user/Carnage4Life/diary/</link>
<pubDate>4/3/2003 12:54:28 PM</pubDate>
<description>OK,
Fixed two oversights. I wasn't sending the <name> field in the POST and I wasn't setting the Content-Length header either.

Here goes nothing.</description>
<author>kpako@yahoo.com</author>
<name>Dare Obasanjo</name>
</item>

Posted by Dare Obasanjo at

Dare: what you sent was not well formed XML.  What you should have gotten back is SOAP fault which told you this, as well as the line and column in the input stream where the error was detected.  You might consider making a msgbox with the response whenever you get a HTTP status of 5xx.  The response may be XML, and it may be SOAP, but it is still human readable, I assure you.

There are several possible fixes.  One is to enclose the description in a <![CDATA[ ]]> section.  Another is to XML encode at least the openning '<' in <name>, thus: "&lt;name>."

Posted by Sam Ruby at

RE:Cat Nap

Let's see if it works when I don't post any XML in the comment.

Here goes nothing.



Message from kuro5hin.org || Diaries at

The POST went through although I got a 500. I need to figure out how to get the message body out of the WebException class.

Also it seems that you are not receiving the <name/> element which makes sense now that I think about it because there is no <name> element in RSS. I'll replace that with a <source /> and see how it goes.

Posted by Dare Obasanjo at

Try changing the author to:

<author>Dare Obasanjo &lt;kpako@yahoo.com&gt;</author>

Posted by Sam Ruby at

RE:Cat Nap

Last attempt, hope it all goes well this time.

PS: Sorry about the comment spam, Sam.

Message from kuro5hin.org || Diaries at

Message from Dare Obasanjo at

Dare, It's not spam: I'm thrilled that you are implementing the comment API.  Meanwhile, it has caused me to adjust the amount of whitespace that I have been inserting into the message based on observations of how your messages have ended up displaying.

Posted by Sam Ruby at

RE:Cat Nap

Sam,
  I'm off to a meeting but wanted to give it one last shot until calling it quits until the weekend. Hope this works.

Thanks for your patience.

Message from Dare Obasanjo at

That post seems to have come out fine on your end but you still sent back a 500. An image showing the content of the request you sent back to me is at http://www.25hoursaday.com/commentapi_error.jpg

Posted by Dare Obasanjo at

Dare, Is there any way you can capture the entire request that you send?  I'd like to reproduce and debug the problem.

Consider my try/except handler covers pretty much all of my comment API processing logic, and the fact that the SOAPFault logic is very well debugged <grin>, it seems to me that the problem is either after this is done, or that I am somehow not sending back a response with the proper HTTP headers.

Posted by Sam Ruby at

RE:Cat Nap

Sam,
This is a test post. I have a proxy setup recording outgoing HTTP requests so I can send you exactly what is getting posted from RSS Bandit to your website.

Here goes nuthin'

Message from Dare Obasanjo at

Below is the conversation that went on between RSS Bandit and your web server when I posted the above comment.

Received request for http://www.intertwingly.net/blog/1311.soap
POST /blog/1311.soap HTTP/1.1
User-Agent: RssBandit 1.0d
Content-Type: text/xml
Content-Length: 415
Expect: 100-continue
Host: www.intertwingly.net

<item>
<title>RE:Cat Nap</title>
<link>http://www.kuro5hin.org/user/Carnage4Life/diary/</link>
<pubDate>4/4/2003 10:44:17 PM</pubDate>
<description>Sam,
This is a test post. I have a proxy setup recording outgoing HTTP requests so I can send you exactly what is getting posted from RSS Bandit to your website.

Here goes nuthin'  </description>
<author>Dare Obasanjo &lt;kpako@yahoo.com&gt;</author>
</item>
[HTTP/1.1 100 Continue

]
[HTTP/1.1 500 Internal Server Error
Date: Sat, 05 Apr 2003 06:49:59 GMT
Server: Apache/1.3.27 (Unix)  (Red-Hat/Linux) PHP/4.1.2 mod_gzip/1.3.26.1a DAV/1.0.3 mod_ssl/2.8.12 OpenSSL/0.9.6b
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

253
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>500 Internal Server Error</TITLE>
</HEAD><BODY>
<H1>Internal Server Error</H1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<P>
Please contact the server administrator,
root@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.<P>
More information about this error may be available
in the server error log.<P>
<HR>
<ADDRESS>Apache/1.3.27 Server at intertwingly.net Port 80</ADDRESS>
</BODY></HTML>

0

]

Posted by Dare Obasanjo at

Dare, reproduced and fixed.  Please try again.

Posted by Sam Ruby at

RE:Cat Nap

Here's another try. Just out of curiosity, what was the bug?

Message from Dare Obasanjo at

Date: to be honest, I don't know.  Here's the details:

One idiom I was often using was:

from template.soap import soap as template; print template[...]

for some reason, this works most of the time.  but with your request, the value of template becomes undefined.  Changing the name of the variable makes the problem go away.

I hate when that happens.

Posted by Sam Ruby at

Pingback from there is some shit i will not eat : there is some shit i will not eat

at

Meet Allie

From  Second Chance Pet Adoptions:  &amp;gt;  Allie is a wonderful girl...she is still a bit shy in new situations, but loves to play. She was the first of the group to play with toys, and has been a bit of a loner since. She does... [more]

Trackback from Sam Ruby

at

Add your comment