Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Timeout happening in GC API to fetch components from GC Project area

 Hi,


when we use GC API to fetch all components. Sometimes for the first time it fails to get response.
We used this api in our application,

When the application is open for 10 mins then server time out is happening though we used basic credentials in the API call.

Has anyone faced same issue? or is there any workaround to fix this issue?

Thanks & Regards,
Thiru

0 votes


Accepted answer

Permanent link

That REST service would return all components for a context project area. If there are large number of components, the request could take a long time to execute. Note that this does not form part of the publicly documented GCM REST API.

The public GCM REST APIs are documented in https://jazz.net/wiki/bin/view/Main/GlobalConfigurationManagement#APIs_for_GCM_and_global_configur. That pages links to the main API documentation page at https://jazz.net/gc/doc/scenarios. It links to a page that shows how to query for components at https://jazz.net/gc/doc/scenario?id=QueryComponents. This uses an OSLC Query Capability. The advantage of using such a query capability is that you can specify a condition to specify which components are of interest and limit the size of the returned results, and can specify which properties of each component should be returned, also limiting the response size. I highly recommend you use that API service method instead.

Best regards,
David

Thiruvenkadam Dhanaraj selected this answer as the correct answer

1 vote


One other answer

Permanent link

 Hi David,


Thank you for your reply. We need to fetch complete component list but yes we can use query parameter to limit the reponse size.

I hope it works. Thanks for you help.

Regards,
Thiru

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937
× 7,495
× 1,325
× 18
× 8
× 5

Question asked: Jan 27 '22, 11:02 p.m.

Question was seen: 1,544 times

Last updated: Jan 30 '22, 11:39 p.m.

Related questions
Confirmation Cancel Confirm