It's all about the answers!

Ask a question

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

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


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,

Accepted answer

permanent link
David Honey (1.8k17) | answered Jan 28 '22, 4:52 a.m.

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 That pages links to the main API documentation page at It links to a page that shows how to query for components at 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,

Thiruvenkadam Dhanaraj selected this answer as the correct answer

One other answer

permanent link
Thiruvenkadam Dhanaraj (27216) | 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.


Your answer

Register or to post your answer.