It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

jira.exceptions.JIRAError: JiraError HTTP 500 while creating issue in jira using python Edited

I,m trying to create an issue in jira from aws instance in private subnet using python... i installed jira module by downloading jira module using requirements.txt with its dependencies... then i run the script which gives me this error... can any one help me to overcome this error

 

/root # python create.py
Traceback (most recent call last):
File "create.py", line 10, in <module>
new_issue = jira.create_issue(fields=issue_dict)
File "/usr/lib/python2.7/site-packages/jira/client.py", line 1089, in create_issue
r = self._session.post(url, data=json.dumps(data))
File "/usr/lib/python2.7/site-packages/jira/resilientsession.py", line 154, in post
return self.__verb('POST', url, **kwargs)
File "/usr/lib/python2.7/site-packages/jira/resilientsession.py", line 147, in __verb
raise_on_error(response, verb=verb, **kwargs)
File "/usr/lib/python2.7/site-packages/jira/resilientsession.py", line 57, in raise_on_error
r.status_code, error, r.url, request=request, response=r, **kwargs)
jira.exceptions.JIRAError: JiraError HTTP 500 url: https://localhost.....
text: <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Oops - an error has occurred</title><script type="text/javascript">contextPath = "";</script><link type='text/css' rel='stylesheet' href='/static-assets/metal-all.css' media='all'><script src='/static-assets/metal-all.js'></script><!--[if lt IE 9]><link type='text/css' rel='stylesheet' href='/static-assets/metal-all-ie.css' media='all'><script src='/static-assets/metal-all-ie.js'></script><![endif]--><!--[if IE 9]><link type='text/css' rel='stylesheet' href='/static-assets/metal-all-ie9.css' media='all'><![endif]--><meta name="decorator" content="none" /></head><body class=" error-page error500"><script type="text/javascript">document.body.className += " js-enabled";</script><div id="page"><header id="header" role="banner"></header><!-- #header --><section id="content" role="main"><div class="aui-page-panel"><div class="aui-page-panel-inner"><section class="aui-page-panel-content lowerContent"><div id="error-state"><span class="error-type"></span><h1>Sorry, we had some technical problems during your last operation.</h1><h2 class="technical-details-header"><span>Request assistance</span></h2><div id="technical-details-content" class="technical-details js-hidden"><p>Copy the content below and send it to your JIRA Administrator</p><div class="technical-details-content" contentEditable readonly><h2>Technical details</h2><p class="referral">Log&#39;s referral number: <strong>8ce599fe-4766-4898-8fce-1fabbcd9ef58</strong></p><div class="info-section" id="causePanel"><h2>Cause</h2><p>Referer URL: <b>Unknown</b></p><pre>java.util.concurrent.CompletionException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException</pre><blockquote id="stacktrace" style="overflow-x: auto;"><pre>java.util.concurrent.CompletionException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) [?:1.8.0_102]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) [?:1.8.0_102]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1629) [?:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_102]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_102]
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.atlassian.jira.cluster.distribution.JiraCacheManagerPeerProvider.lambda$wrapCachePeer$4(JiraCacheManagerPeerProvider.java:116) [classes/:?]
at com.sun.proxy.$Proxy26.getName(Unknown Source) [?:?]
at com.atlassian.jira.cluster.cache.ehcache.BlockingParallelCacheReplicator.getPeerName(BlockingParallelCacheReplicator.java:193) [classes/:?]
at com.atlassian.jira.cluster.cache.ehcache.BlockingParallelCacheReplicator.onReplicationError(BlockingParallelCacheReplicator.java:188) [classes/:?]
at com.atlassian.jira.cluster.cache.ehcache.BlockingParallelCacheReplicator.lambda$replicatePutNotification$1(BlockingParallelCacheReplicator.java:161) [classes/:?]
at com.atlassian.jira.cluster.cache.ehcache.BlockingParallelCacheReplicator.lambda$null$4(BlockingParallelCacheReplicator.java:212) [classes/:?]
at com.atlassian.jira.cluster.cache.ehcache.ClassLoaderSwitchingRunnable.run(ClassLoaderSwitchingRunnable.java:18) [classes/:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626) [?:1.8.0_102]
... 3 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor4738.invoke(Unknown Source) [?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_102]
at java.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0_102]
at com.atlassian.jira.cluster.distribution.JiraCacheManagerPeerProvider.lambda$wrapCachePeer$4(JiraCacheManagerPeerProvider.java:112) [classes/:?]
... 10 more
Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:304) [?:1.8.0_102]
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) [?:1.8.0_102]
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:130) [?:1.8.0_102]
at net.sf.ehcache.distribution.RMICachePeer_Stub.getName(Unknown Source) [ehcache-2.10.2-atlassian-18.jar:2.10.2-atlassian-18]
... 14 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) [?:1.8.0_102]
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) [?:1.8.0_102]
at java.net.SocketInputStream.read(SocketInputStream.java:170) [?:1.8.0_102]
at java.net.SocketInputStream.read(SocketInputStream.java:141) [?:1.8.0_102]
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) [?:1.8.0_102]
at java.io.BufferedInputStream.read(BufferedInputStream.java:265) [?:1.8.0_102]
at java.io.DataInputStream.readByte(DataInputStream.java:265) [?:1.8.0_102]
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:246) [?:1.8.0_102]
... 17 more
</pre></blockquote></div></div></div><p>Return to the <a href="javascript&colon;window.history.back()">previous page</a></p></div></section><!-- .aui-page-panel-content --></div><!-- .aui-page-panel-inner --></div><!-- .aui-page-panel --></section><!-- #content --><footer id="footer" role="contentinfo"><section class="footer-body">


<ul class="atlassian-footer">
<li>
Atlassian JIRA <a class="seo-link" rel="nofollow" href="https://www.atlassian.com/software/jira">Project Management Software</a>

 

<span id="footer-build-information">(v7.2.12#72014-<span title='3bc6048f6ae496347670594a3bc0a9f529bfeea3' data-commit-id='3bc6048f6ae496347670594a3bc0a9f529bfeea3}'>sha1:3bc6048</span>:prod_node3)</span>
</li>
<li>
<a id="about-link" rel="nofollow" href="/secure/AboutPage.jspa">About JIRA</a>
</li>
<li>
<a id="footer-report-problem-link" rel="nofollow" href="/secure/CreateIssue!default.jspa">Report a problem</a>
</li>
</ul>
<div id="footer-logo"><a href="http://www.atlassian.com/" rel="nofollow">Atlassian</a></div></section></footer><!-- #footer --></div><!-- #page --></body></html>

response headers = {'X-ANODEID': 'prod_node3', 'X-AREQUESTID': '588x3206212x79', 'X-Content-Type-Options': 'nosniff', 'Content-Length': '6583', 'X-ASESSIONID': 'rh71ad', 'Server': 'Apache-Coyote/1.1', 'Date': 'Wed, 27 Jun 2018 13:48:35 GMT', 'Content-Type': 'text/html;charset=UTF-8', 'Cneonction': 'close'}
response text = <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Oops - an error has occurred</title><script type="text/javascript">contextPath = "";</script><link type='text/css' rel='stylesheet' href='/static-assets/metal-all.css' media='all'><script src='/static-assets/metal-all.js'></script><!--[if lt IE 9]><link type='text/css' rel='stylesheet' href='/static-assets/metal-all-ie.css' media='all'><script src='/static-assets/metal-all-ie.js'></script><![endif]--><!--[if IE 9]><link type='text/css' rel='stylesheet' href='/static-assets/metal-all-ie9.css' media='all'><![endif]--><meta name="decorator" content="none" /></head><body class=" error-page error500"><script type="text/javascript">document.body.className += " js-enabled";</script><div id="page"><header id="header" role="banner"></header><!-- #header --><section id="content" role="main"><div class="aui-page-panel"><div class="aui-page-panel-inner"><section class="aui-page-panel-content lowerContent"><div id="error-state"><span class="error-type"></span><h1>Sorry, we had some technical problems during your last operation.</h1><h2 class="technical-details-header"><span>Request assistance</span></h2><div id="technical-details-content" class="technical-details js-hidden"><p>Copy the content below and send it to your JIRA Administrator</p><div class="technical-details-content" contentEditable readonly><h2>Technical details</h2><p class="referral">Log&#39;s referral number: <strong>8ce599fe-4766-4898-8fce-1fabbcd9ef58</strong></p><div class="info-section" id="causePanel"><h2>Cause</h2><p>Referer URL: <b>Unknown</b></p><pre>java.util.concurrent.CompletionException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException</pre><blockquote id="stacktrace" style="overflow-x: auto;"><pre>java.util.concurrent.CompletionException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) [?:1.8.0_102]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) [?:1.8.0_102]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1629) [?:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_102]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_102]
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.atlassian.jira.cluster.distribution.JiraCacheManagerPeerProvider.lambda$wrapCachePeer$4(JiraCacheManagerPeerProvider.java:116) [classes/:?]
at com.sun.proxy.$Proxy26.getName(Unknown Source) [?:?]
at com.atlassian.jira.cluster.cache.ehcache.BlockingParallelCacheReplicator.getPeerName(BlockingParallelCacheReplicator.java:193) [classes/:?]
at com.atlassian.jira.cluster.cache.ehcache.BlockingParallelCacheReplicator.onReplicationError(BlockingParallelCacheReplicator.java:188) [classes/:?]
at com.atlassian.jira.cluster.cache.ehcache.BlockingParallelCacheReplicator.lambda$replicatePutNotification$1(BlockingParallelCacheReplicator.java:161) [classes/:?]
at com.atlassian.jira.cluster.cache.ehcache.BlockingParallelCacheReplicator.lambda$null$4(BlockingParallelCacheReplicator.java:212) [classes/:?]
at com.atlassian.jira.cluster.cache.ehcache.ClassLoaderSwitchingRunnable.run(ClassLoaderSwitchingRunnable.java:18) [classes/:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626) [?:1.8.0_102]
... 3 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor4738.invoke(Unknown Source) [?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_102]
at java.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0_102]
at com.atlassian.jira.cluster.distribution.JiraCacheManagerPeerProvider.lambda$wrapCachePeer$4(JiraCacheManagerPeerProvider.java:112) [classes/:?]
... 10 more
Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:304) [?:1.8.0_102]
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) [?:1.8.0_102]
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:130) [?:1.8.0_102]
at net.sf.ehcache.distribution.RMICachePeer_Stub.getName(Unknown Source) [ehcache-2.10.2-atlassian-18.jar:2.10.2-atlassian-18]
... 14 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) [?:1.8.0_102]
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) [?:1.8.0_102]
at java.net.SocketInputStream.read(SocketInputStream.java:170) [?:1.8.0_102]
at java.net.SocketInputStream.read(SocketInputStream.java:141) [?:1.8.0_102]
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) [?:1.8.0_102]
at java.io.BufferedInputStream.read(BufferedInputStream.java:265) [?:1.8.0_102]
at java.io.DataInputStream.readByte(DataInputStream.java:265) [?:1.8.0_102]
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:246) [?:1.8.0_102]
... 17 more
</pre></blockquote></div></div></div><p>Return to the <a href="javascript&colon;window.history.back()">previous page</a></p></div></section><!-- .aui-page-panel-content --></div><!-- .aui-page-panel-inner --></div><!-- .aui-page-panel --></section><!-- #content --><footer id="footer" role="contentinfo"><section class="footer-body">


<ul class="atlassian-footer">
<li>
Atlassian JIRA <a class="seo-link" rel="nofollow" href="https://www.atlassian.com/software/jira">Project Management Software</a>

 

<span id="footer-build-information">(v7.2.12#72014-<span title='3bc6048f6ae496347670594a3bc0a9f529bfeea3' data-commit-id='3bc6048f6ae496347670594a3bc0a9f529bfeea3}'>sha1:3bc6048</span>:prod_node3)</span>
</li>
<li>
<a id="about-link" rel="nofollow" href="/secure/AboutPage.jspa">About JIRA</a>
</li>
<li>
<a id="footer-report-problem-link" rel="nofollow" href="/secure/CreateIssue!default.jspa">Report a problem</a>
</li>
</ul>
<div id="footer-logo"><a href="http://www.atlassian.com/" rel="nofollow">Atlassian</a></div></section></footer><!-- #footer --></div><!-- #page --></body></html>

 

0 comments

Comment

Log in or Sign up to comment
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you