getsentry / sentry-jira

A Plugin for sentry that lets you create JIRA issues
Other
95 stars 32 forks source link

Jira Credential SSL Errors (OrderedDict / Python 2.6 issue) #22

Closed jonathancua closed 12 years ago

jonathancua commented 12 years ago

I am using the following: sentry 5.0.12, sentry-jira 0.6.1, python 2.6.5.

When I try to add my jira credentials to Sentry, I get the following errors.

Internal Server Error

Then when I click on the associated sentry error that it generated, I got this and I'm just adding some snippets that I think are relevant.

sentry.web.decorators._wrapped root AttributeError: 'module' object has no attribute 'OrderedDict'

Location: sentry_jira/jira.py, init:85

"SSLError(SSLError(SSLError(1, '_ssl.c:480: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknow" {'content-type': 'application/json'} 'get' '<sentry_jira.jira.JIRAClient object at 0x98b7a4c>' u'https://192.168.56.110:8080/rest/api/2/priority'

The sentry server can talk to the jira server on the specified port. So, I am not sure what is going on. Let me know if you need more info.

thurloat commented 12 years ago

hey @bichonfrise74, looking into it right now. thanks for the report

thurloat commented 12 years ago

problem: python 2.6 doesn't have ordered dicts and I'm using them to wrap responses in the API since JIRA returns responses with keys that should maintain a specific order.

Looking into alternatives now, it looks like there's an ordereddict package that's supposed to provide a similar interface and works on older versions of python.

dcramer commented 12 years ago

You can use Django's SortedDict

David Cramer

twitter.com/zeeg disqus.com/zeeg

On Thursday, October 4, 2012 at 6:06 PM, Adam Thurlow wrote:

problem: python 2.6 doesn't have ordered dicts and I'm using them to wrap responses in the API since JIRA returns responses with keys that should maintain a specific order. Looking into alternatives now, it looks like there's an ordereddict package that's supposed to provide a similar interface and works on older versions of python.

— Reply to this email directly or view it on GitHub (https://github.com/thurloat/sentry-jira/issues/22#issuecomment-9162529).

thurloat commented 12 years ago

thanks for the tip, @dcramer . Much better solution.