lita-jira icon indicating copy to clipboard operation
lita-jira copied to clipboard

Error fetching JIRA issue

Open jsandova opened this issue 8 years ago • 7 comments

I have installed the gem "lita-jira" and am getting the following error when attempting to query a JIRA ticket.

!jira it-1651 Error fetching JIRA issue

If I run a JIRA api command via curl I am able to query the JIRA ticket using the same credentials.

##Jira config.handlers.jira.username = 'jira.scripts' config.handlers.jira.password = '******' config.handlers.jira.site = 'http://jira.aofl.com:8080' config.handlers.jira.context = '' config.handlers.jira.format = 'one-line'

jsandova avatar Mar 02 '16 21:03 jsandova

@jsandova Based on that URL, it seems like you might need to set use_ssl to false?

esigler avatar Mar 03 '16 20:03 esigler

Whenever I add config.handlers.jira.use_ssl = true to the config my lita chat bot will not start up.

jsandova avatar Mar 03 '16 23:03 jsandova

I have tried it with config.handlers.jira.use_ssl = false as well and the lita chat bot still doesn't start up.

jsandova avatar Mar 03 '16 23:03 jsandova

Hmm - this is with lita-jira 0.8.0 released 6 days ago? If Lita isn't starting up with that config item set, can you provide the error message?

esigler avatar Mar 04 '16 01:03 esigler

I just ran gem install again to make sure and it looks like I didn't have the latest version. Even with lita-jira 0.8.0 installed it will not start up with that config added. Where are error messages logged to?

root@bot:/home/roboto# sudo gem install "lita-jira" Fetching: lita-jira-0.8.0.gem (100%) Successfully installed lita-jira-0.8.0 Parsing documentation for lita-jira-0.8.0 Installing ri documentation for lita-jira-0.8.0 Done installing documentation for lita-jira after 0 seconds 1 gem installed

jsandova avatar Mar 04 '16 01:03 jsandova

My apologies, I wasn't more specific - I'm looking for the error messages that are on the STDOUT / console when you start Lita. There should be something when you run bundle exec lita like:

[2016-03-04 06:32:15 UTC] FATAL: Lita configuration file could not be processed. The exception was:
...

Also, try removing the configuration item config.handlers.jira.format temporarily and let me know if that works for you.

esigler avatar Mar 04 '16 06:03 esigler

Here is the output.

root@bot:/home/roboto# [2016-03-04 17:37:05 UTC] FATAL: Lita configuration file could not be processed. The exception was: undefined method use_ssl=' for #<Lita::Configuration:0x000000044cae88> Full backtrace: /home/roboto/lita_config.rb:68:inblock in <top (required)>' /var/lib/gems/2.2.0/gems/lita-4.7.0/lib/lita/registry.rb:17:in configure' /home/roboto/lita_config.rb:1:in<top (required)>' /var/lib/gems/2.2.0/gems/lita-4.7.0/lib/lita/configuration_builder.rb:49:in load' /var/lib/gems/2.2.0/gems/lita-4.7.0/lib/lita/configuration_builder.rb:49:inload_user_config' /var/lib/gems/2.2.0/gems/lita-4.7.0/lib/lita.rb:75:in run' /var/lib/gems/2.2.0/gems/lita-4.7.0/lib/lita/cli.rb:77:instart' /var/lib/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in run' /var/lib/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:ininvoke_command' /var/lib/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:in dispatch' /var/lib/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:instart' /var/lib/gems/2.2.0/gems/lita-4.7.0/bin/lita:6:in <top (required)>' /usr/local/bin/lita:23:inload' /usr/local/bin/lita:23:in `

'

jsandova avatar Mar 04 '16 17:03 jsandova