Python REST API to Jira - Get Exceptions

Nadav Eckstein November 18, 2020

Hi,

I'm working with Python REST API to Jira (Server) in order to pull jira logs data and push them into a SQL server.

For some reason, I started getting exceptions and the script fails.

I get these messages:

TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

OR sometimes I get:

ValueError: invalid literal for int() with base 16: b'

 

Do you have any idea why this is happening? Any solutions?

Thanks.

 

1 answer

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 23, 2021

Hi! 

You can increase a timeout like this 

https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/rest_client.py#L42

 

About literal you need to debug and set the try except into your code

Suggest an answer

Log in or Sign up to answer