It's all about the answers!

Ask a question

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


Thiruvenkadam Dhanaraj (27218) | asked Jan 27 '22, 11:02 p.m.

 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

Accepted answer


permanent link
David Honey (1.8k17) | answered Jan 28 '22, 4:52 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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

One other answer



permanent link
Thiruvenkadam Dhanaraj (27218) | answered Jan 30 '22, 11:39 p.m.

 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

Your answer


Register or 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.