GNOME Bugzilla – Bug 164151
Can't look up blogs
Last modified: 2005-05-20 21:31:38 UTC
Please describe the problem: I run my own blog (Blosxom, using an XML-RPC interface that provides the BloggerAPI), when I run gnome-blog 0.8, I can't lookup the blogs available (this worked in 0.7, and Drivel's able to communicate with it). Here's the trace if I run from the command line: ogley@riggwelter:~> gnome-blog-poster /opt/gnome/share/themes/Smooth-EyeCandy/gtk-2.0/iconrc:23: Unable to locate image file in pixmap_path: "stock_stock.svg" Using gconf_prefix /apps/gnome-blog /usr/lib/python2.3/site-packages/gnomeblog/gconf_widgets.py:6: DeprecationWarning: use gtk.ComboBox gtk.OptionMenu.__init__(self) blog type: custom Using prefix /apps/gnome-blog Getting list for RPC interface http://www.rubberturnip.org.uk/cgi-bin/api/RPC2 Traceback (most recent call last):
+ Trace 54534
blog_id_pairs = blog.getBlogList(gconf_prefix)
return blog_backend.getBlogList(username, password, url, client, gconf_prefix)
bloglist = server.blogger.getUsersBlogs(appkey, username, password)
return self.__send(self.__name, args)
verbose=self.__verbose
return Transport.request(self, host, "http://"+host+handler, request_body, verbose)
self.send_content(h, request_body)
connection.endheaders()
self._send_output()
self.send(msg)
self.connect()
socket.SOCK_STREAM): socket.gaierror: (-2, 'Name or service not known') ogley@riggwelter:~>
Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
This is caused by GConf key /system/http_proxy/use_http_proxy being set to "True" but /system/http_proxy/host and/or /system/http_proxy/port being invalid - seems reasonable, but perhaps, if host is empty (as was the case for me - think that's what gnome-network-preferences sets it as if you have "Manual proxy configuration" checked, but nothing in the fields, it should fall back to a direct connection?
Created attachment 46690 [details] [review] Only use proxy if: use_proxy and host != "" and port != 0 As suggested in comment 1, do not solely rely on the use http_proxy flag; also ensure host isn't blank and port isn't 0.
Committed to HEAD. Marking FIXED.