0

I am making following Jira Issue Search Rest API call to fetch all the issues in a project having 1 or more issuelinks from my Jira instance and I am using pagination for collecting all issues from a project using startAt index query Param

{Jira_Instance_URL}/rest/api/2/search?jql=project={ProjectKey} AND issueFunction in hasLinks()&fields=issuelinks&startAt=0&maxResults=-1

My Jira instance is having huge number of issues. When I am getting into a project "XYZ". It is having around 30,000 issues and I am looping over after getting 1000 issues at a time.

The Jira Issue Search Rest API is giving following exception after lopping over around 20,000 issues:

2022-11-10 13:23:41 [http-nio-8081-exec-1] ERROR JiraIFAppender - Error occured while fetching issues keys and issuelink ids for XYZ due to I/O error on GET request for "https://localhost:8080/rest/api/2/search": Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out

Because of which I am not able to fetch all the issues in that particular project.

Can anyone please guide on how to resolve the above exception.

Thanks & Regards,

Preethi H R

3
  • You need to try to increase the timeout of the socker connection. Commented Nov 10, 2022 at 8:16
  • Hi, current timeout is set to 5min. I have also tried with 10 minutes but still it is failing. Commented Nov 10, 2022 at 8:44
  • Then in this case, it might be the server killing the connection. I suggest you use pagination if available Commented Nov 10, 2022 at 8:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.