org-jira
org-jira copied to clipboard
`org-jira-get-projects` can fetch the JSON behind proxy but the project list not populated
Hello,
I'm behing a company proxy, and unable to get project lists from our local Jira installation (on Windows, using cygwin (space)emacs with Curl and the rest branch).
$http_proxy
is set in the environment, but for the local Jira access I don't need it.
For me, the request library uses curl
. I was able to overcome on skipping the proxy via creating a shell script as follows:
~/bin/curl-noproxy
#!/bin/bash
/usr/bin/curl --user "${MY_JIRA_USER}:${MY_JIRA_PASS}" --noproxy jira.statlogics.local ${*}
And set the variables in my ˛.spacemacs
:
(custom-set-variables '(request-log-level 'blather)
'(request-message-level 'blather))
(setq request-curl "~/bin/curl-noproxy")
The results after org-jira-get-projects
can be found (verbose debug) here: https://gist.github.com/zsoltika/cbf013de3340df0e05ecdd81a6c672f4
As far as I see, the JSON of project list is there but still an error get reported:
REQUEST [error] Error (error) while connecting to http://jira.statlogics.local:8080/rest/api/2/project.
And the projects-list.org
file is empty.
From the curl man page,
--noproxy <no-proxy-list>
Comma-separated list of hosts which do not use a proxy,
if one is specified. The only wildcard is a single *
character, which matches all hosts, and effectively
disables the proxy. Each name in this list is matched
as either a domain which contains the hostname, or the
hostname itself. For example, local.com would match
local.com, local.com:80, and www.local.com, but not
www.notlocal.com. (Added in 7.19.4).
So looks like you should specify the port number if it is not the default 80?
Maybe you can also try trouble shooting this problem by disabling http_proxy globally, see if it works.