Giter Club home page Giter Club logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
JJ, the actual error message in the last line (after "Fault:") got eaten by the
browser because you don't do HTML escaping in line 49 of
src/livejournal2blogger/livejournal2blogger.py:
http://code.google.com/p/google-blog-converters-appengine/source/browse/trunk/sr
c/livejournal2blogger/livejournal2blogger.py?r=57#49

You're setting Content-Type to text/plain there but it is actually displayed as
text/html in my Firefox 3 and I guess in Alexey's browser as well. I'm not sure 
why.
According to my Firebug network trace, it's a server-side problem — the 
response
headers contain this:

  Content-Type: text/html; charset=utf-8

But even if you get the server send real text/plain, browsers may force it back 
to
text/html because they're doing content sniffing. (When a browser sees some 
HTML tags
near the beginning of the response body, it will render it as HTML no matter 
what
MIME type the server actually declared.)

What do you think about changing the Content-Type to text/html and outputting 
the
Python error trace fully HTML-escaped into a <pre> element?

Original comment by alexkon on 14 Jan 2009 at 7:10

from google-blog-converters-appengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
To make the first paragraph more clear, here is an example error message when 
the
password entered is wrong:

Fault: <Fault 101: 'Invalid password'>


Original comment by alexkon on 14 Jan 2009 at 7:26

from google-blog-converters-appengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
Thanks for the comment, alexkon.  You're definitely correct in your analysis.

I'll patch this up today with your <pre> element idea.


Original comment by [email protected] on 14 Jan 2009 at 3:18

  • Changed state: Accepted

from google-blog-converters-appengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
I checked in a change which traps explicitly for Faults from the XML-RPC calls 
and
displays just the fault.  Also, I'm not escaping all error output for better 
display
in the browser.

The hosted application has been updated with this change.

Original comment by [email protected] on 14 Jan 2009 at 5:04

  • Changed state: Fixed

from google-blog-converters-appengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
JJ, thanks for the quick fix!

Alexey, could you please try again now and tell me if it worked for you?
Если Вам проще говорить по-русски, напишите 
мне на [email protected].
(Translation: If you find speaking Russian easier, please write to me at
[email protected].)

Original comment by alexkon on 14 Jan 2009 at 5:50

from google-blog-converters-appengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
thanks for comments and fix this problem!

but now i have:
"A server error occurred.  Please contact the administrator."

maybe it becouse i have very big history in my Livejournal account?

Original comment by [email protected] on 19 Feb 2009 at 5:59

from google-blog-converters-appengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
i was see how many posts in my livejournal.. it's about 820 messages in my diary

Original comment by [email protected] on 20 Feb 2009 at 10:55

from google-blog-converters-appengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
Alexey,

That is a rather large journal, but Blogger should be able to handle it.  Can 
you
make sure that the output of the livejournal2blogger file is valid XML?  I 
assume
that this problem is due to something in the converted file that Blogger does 
not
recognize, invalid XML being just one possibility.

If you like, I can take a look at the converted file to see if I see anything 
that
looks suspicious.  

Original comment by [email protected] on 20 Feb 2009 at 4:47

  • Changed state: Accepted

from google-blog-converters-appengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
i havn't any file

i was put livejoirnal login and passord to form
(https://livejournal2blogger.appspot.com) and get error after post:
"A server error occurred.  Please contact the administrator."

that's all i have ;)
my livejournal: alucky.livejournal.com


Original comment by [email protected] on 21 Feb 2009 at 5:24

from google-blog-converters-appengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
new error! :)

"Error: Server Error
The server encountered an error and could not complete your request.

If the problem persists, please report your problem and mention this error 
message
and the query that caused it."

Original comment by [email protected] on 24 Feb 2009 at 6:47

from google-blog-converters-appengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
i cant start python script on my notebook, becouse i cant get access to 
livejournal
(we think goverment close it).
so i can only use this service or proxy
if you will add http proxy support to this project, i will try to use it with 
that

Original comment by [email protected] on 24 Feb 2009 at 6:50

from google-blog-converters-appengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.