From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Bao Haojun" Subject: Re: org-jira.el Date: Tue, 10 Jan 2012 10:40:42 +0800 Message-ID: <861ur82sb9.fsf@gmail.com> References: <86hb0ez4qr.fsf@gmail.com> <20120105154233.GA9939@merlot.gcoop.coop> <868vlkvnc0.fsf@gmail.com> <20120109202611.GA21181@merlot.gcoop.coop> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkRdr-0007Sw-TB for emacs-orgmode@gnu.org; Mon, 09 Jan 2012 21:40:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkRdq-0008Ui-D9 for emacs-orgmode@gnu.org; Mon, 09 Jan 2012 21:40:51 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:36931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkRdq-0008Ue-A0 for emacs-orgmode@gnu.org; Mon, 09 Jan 2012 21:40:50 -0500 Received: by iafj26 with SMTP id j26so178677iaf.0 for ; Mon, 09 Jan 2012 18:40:49 -0800 (PST) In-Reply-To: <20120109202611.GA21181@merlot.gcoop.coop> (OSiUX's message of "Mon, 9 Jan 2012 17:26:19 -0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: OSiUX Cc: emacs-orgmode@gnu.org Hi OSiUX, OSiUX writes: > Hi Bao Haojun, > > I finally discovered the error, I was using an anonymous proxy server > and JIRA apparently did not return the correct xml. > > Does not work in emacs, but in emacs 24 enabling the debug managed to > capture the error:: > > (let ( (url-request-method "GET") (url-package-name )) > (let ( ("soap-client.el") (url-package-version "1.0") )) > (let ( ((url-mime-charset-string "utf-8;q=1, iso-8859-1;q=0.5") )) > (let ( ((url-request-coding-system (quote utf-8)) )) > (let ( ((url-http-attempt-keepalives nil)) (let ( (buffer )) > (let ( ((url-retrieve-synchronously url))) (with-current-buffer )) > (let ( (buffer (declare (special url-http-response-status)) )) > (let ( ((if (> url-http-response-status 299) (error "Error )) > (let ( (retrieving WSDL: %s" url-http-response-status mime-part )) > (let ( ((mm-dissect-buffer t t))) (unless mime-part (error "Failed )) > (let ( (to decode response from server")) (unless (equal (car )) > (let ( ((mm-handle-type mime-part)) "text/xml") (error "Server )) > (let ( (response is not an XML document" )) > > ... then disable the proxy, start using emacs and execute > org-jira-get-projects got the list of projects and then some issues. > > Excellent work, I hope that the error messages to help correct for > emacs23 org-jira. > > Finally I would like to know where to change the path for the projects, > actually: /home/.org-jira > > Thank you very much! > I'll stop now copy and paste from jira to org-mode. ;-) > > > Enviroment Emacs23: > > - Org-mode commit: 258aad0b9a428cec9195b22063e42df77dee19c2 > - GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.6) of > 2011-10-25 on trouble, modified by Debian > - org-jira commit: 6fd1fd891eb716871dc5d6d680f99585f1f3602e > > Enviroment Emacs24 > - Org-mode commit: 56c73255c0bdd27ac42af0a02ecea9336c4594d6 > - GNU Emacs 24.0.92.1 (x86_64-pc-linux-gnu, GTK+ Version 3.2.3) of > 2012-01-05 on zelenka, modified by Debian > - org-jira commit: 6fd1fd891eb716871dc5d6d680f99585f1f3602e Great! I was also using proxy through setting the url-proxy-services variable, and the org-jira.el does not work. After some googling around, I found that url-proxy-services supports disabling proxy for some hosts: (setq url-proxy-services (quote (("http" . "localhost:8580") ("no_proxy" . "^[^.]*$\\|sina.com")))) (just in case you don't know this already:-) For the org-jira save path, I will make it a defcustom. Thanks! -- All the best Bao Haojun