CreatePost Faild By Blogger Python API 1.0.9

3 views
Skip to first unread message

Eric

unread,
Nov 13, 2007, 6:24:10 AM11/13/07
to Google Data API
Run the BloggerExample.py, Debug print the exception in CreatePost
function:

RequestError: {'status': 500, 'body': '<!DOCTYPE HTML PUBLIC "-//W3C//
DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html
dir="ltr"><head><base href="http://www.blogger.com">\n<meta http-
equiv="Content-type" content="text/html; charset=utf-8">
\n<title>Blogger: \xe6\x89\xa7\xe8\xa1\x8c\xe6\x82\xa8\xe7\x9a
\x84\xe8\xaf\xb7\xe6\xb1\x82\xe6\x97\xb6\xe5\x87\xba\xe9\x94\x99</
title>\n<link href="/v-css/3241057453-blogger_lowend.css"
rel="stylesheet" type="text/css">\n<style type="text/css">\n
@import url("/v-css/4281430251-blogger_main.css");\n @import url("/
v-css/1877526874-flexible_buttons.css");\n @import url("/v-css/
3846071064-buttons_dir.css"); \n @import url("/v-css/4278204697-
buttons.css");\n\n \n\n @media tty {\n i{content:"\\";/*"
"*/}} @import url("/v-css/1784484781-blogger_ie5win.css"); /*";}
\n }/* */\n\n </style>\n<script src="https://ssl.google-
analytics.com/urchin.js" type="text/javascript">\n </script>
<script type="text/javascript">\n _uacct="UA-18003-7";\n
_uanchor=1;\n urchinTracker();\n </script> \n<style type="text/
css">\n #body h2 {\n margin-top:0;\n }\n
\n #body p {\n color:#666;\n }\n\n
#errorCode {\n color:#826C55;\n text-align:center;
\n font-size:300%;\n margin:.5em\n }\n
\n #additionalInformation {\n margin:.5em;\n }\n
\n #errorDescription {\n
background:#ff9;\n padding:2em;\n margin:0 0 3em
0;\n }\n </style>\n<script type="text/javascript">
\n function showErrorMessage(root) {\n var entries =
root.feed.entry || [];\n\n if (entries.length > 0)
{\n var entry = entries[0];\n\n
document.getElementById("errorHeading").innerHTML = entry.title.$t;\n
\n
document.getElementById("errorDescription").style.display = "block";
\n document.getElementById("errorDescription").innerHTML =
\n entry.content.$t;\n }\n }\n </
script></head>\n<body><div id="header"><div id="h2"><div id="h3"><a
href="/" id="logo" title="Blogger \xe4\xb8\xbb\xe9\xa1\xb5"><img src="/
img/logo40.gif" width="150" height="40" alt="Blogger"></a>\n<p
id="tag"><em>Push-Button Publishing</em></p>\n<span class="r"></span></
div></div></div>\n<div id="body"><div id="main"><div id="m2"><div
id="m3"><h2 id="errorHeading">\xe9\x9d\x9e\xe5\xb8\xb8\xe6\x8a
\xb1\xe6\xad\x89\xef\xbc\x8c\xe6\x88\x91\xe4\xbb\xac
\xe6\x97\xa0\xe6\xb3\x95\xe5\xae\x8c\xe6\x88\x90\xe6\x82\xa8\xe7\x9a
\x84\xe8\xaf\xb7\xe6\xb1\x82\xe3\x80\x82</h2>\n\n<p
id="errorDescription" style="display:none"></p>\n<p>
\xe5\x90\x91"Blogger \xe6\x94\xaf\xe6\x8c\x81"\xe6\x8a\xa5\xe5\x91\x8a
\xe6\xad\xa4\xe9\x94\x99\xe8\xaf\xaf\xe6\x88\x96\xe5\x9c\xa8"Blogger
\xe5\xb8\xae\xe5\x8a\xa9\xe7\xbb\x84"\xe4\xb8\xad\xe6\x8a
\xa5\xe5\x91\x8a\xe6\xad\xa4\xe9\x94\x99\xe8\xaf\xaf\xe6\x97\xb6\xef
\xbc\x8c\xe8\xaf\xb7\xef\xbc\x9a</p>\n<ul><li>\xe6\x8f\x8f\xe8\xbf
\xb0\xe5\x8f\x91\xe7\x94\x9f\xe6\xad\xa4\xe9\x94\x99\xe8\xaf\xaf
\xe6\x97\xb6<strong>\xe6\x82\xa8\xe5\x9c\xa8\xe6\x89\xa7\xe8\xa1\x8c
\xe4\xbb\x80\xe4\xb9\x88\xe6\x93\x8d\xe4\xbd\x9c</strong>\xe3\x80\x82</
li>\n<li>\xe8\xaf\xb7\xe6\x8f\x90\xe4\xbe\x9b\xe4\xbb
\xa5\xe4\xb8\x8b<strong>\xe9\x94\x99\xe8\xaf\xaf\xe4\xbb
\xa3\xe7\xa0\x81</strong>\xe5\x92\x8c<strong>\xe9\x99\x84\xe5\x8a
\xa0\xe4\xbf\xa1\xe6\x81\xaf</strong>\xe3\x80\x82</li></ul>\n<div
id="errorCode">bX-m7bhih</div>\n<h3>\xe5\x85\xb6\xe4\xbb\x96\xe4\xbf
\xa1\xe6\x81\xaf</h3>\n<div id="additionalInformation"><code><b>host:</
b>\nwww.blogger.com<br></code> <code><b>uri:</b>\n/feeds/
186396835887460085/posts/default<br></code></div>\n<p>\xe6\xad
\xa4\xe4\xbf\xa1\xe6\x81\xaf\xe5\xb0\x86\xe5\xb8\xae\xe5\x8a
\xa9\xe6\x88\x91\xe4\xbb\xac\xe8\xbf\xbd\xe8\xb8\xaa
\xe5\xb9\xb6\xe8\xa7\xa3\xe5\x86\xb3\xe6\x82\xa8\xe7\x9a
\x84\xe9\x97\xae\xe9\xa2\x98\xef\xbc\x81 \xe5\xaf
\xb9\xe7\x94\xb1\xe6\xad\xa4\xe5\xb8\xa6\xe6\x9d\xa5\xe7\x9a
\x84\xe4\xb8\x8d\xe4\xbe\xbf\xef\xbc\x8c\xe6\x88\x91\xe4\xbb\xac
\xe6\xb7\xb1\xe8\xa1\xa8\xe6\xad\x89\xe6\x84\x8f\xe3\x80\x82</p>\n</
div></div></div>\n<div id="footer"><div><hr>\n<p><a href="/">
\xe4\xb8\xbb\xe9\xa1\xb5</a>\n|\n<a href="/about">\xe5\x85\xb3\xe4\xba
\x8e</a>\n|\n<a href="http://buzz.blogger.com">\xe5\xbf\xab\xe8\xae
\xaf</a>\n|\n<a href="http://help.blogger.com/">\xe5\xb8\xae\xe5\x8a
\xa9</a>\n|\n\n<a href="/language.g">\xe8\xaf\xad\xe8\xa8\x80</a>\n|
\n<a href="http://code.blogspot.com/">\xe5\xbc\x80\xe5\x8f\x91\xe4\xba
\xba\xe5\x91\x98</a>\n|\n<a href="http://www.googlestore.com/
category.asp?catid=search&amp;searchtype=keyword&amp;search=blogger">
\xe5\x95\x86\xe5\xba\x97</a>\n<br>\n<a href="/terms.g">\xe6\x9c\x8d
\xe5\x8a\xa1\xe6\x9d\xa1\xe6\xac\xbe</a>\n|\n<a href="/privacy">
\xe9\x9a\x90\xe7\xa7\x81\xe6\x9d\x83</a>\n|\n<a href="/content.g">
\xe5\x86\x85\xe5\xae\xb9\xe6\x94\xbf\xe7\xad\x96</a>\n|\n<span
dir="ltr">&copy; 1999 &ndash; 2007 Google</span></p></div></div>\n</
div>\n<script type="text/javascript" src="http://bx-codes.blogspot.com/
feeds/posts/default/-/bX-m7bhih?alt=json-in-
script&amp;callback=showErrorMessage"></script></body></html>',
'reason': 'Internal Server Error'}

But PrintAllPosts function is work fines!

My OS is winxp,python2.4, elementtree-1.2.7。
Thanks!!!

Jeff Fisher (Google)

unread,
Nov 13, 2007, 2:19:42 PM11/13/07
to Google Data API
Hi Eric,

Looks like Jeff Scudder fixed this recently as per this issue thread:

http://code.google.com/p/gdata-python-client/issues/detail?id=76

Looks like it is fixed in subversion as per his comments. Let me know
if you have any other problems.

Cheers,
-Jeff

Eric

unread,
Nov 13, 2007, 8:36:42 PM11/13/07
to Google Data API
Thanks very much! Jeff
It worked fine! :)

On 11月14日, 上午3时19分, "Jeff Fisher (Google)" <api.jfis...@google.com>
wrote:

Reply all
Reply to author
Forward
0 new messages