# Getting httpStatusCode 400 while accessing Tracker Capture app

**URL:** <https://community.dhis2.org/t/getting-httpstatuscode-400-while-accessing-tracker-capture-app/59553>\
**Category:** Support - Assistance technique\
**Tags:** tracker\
**Created:** [14 June 2024 12:46 UTC](https://community.dhis2.org/t/getting-httpstatuscode-400-while-accessing-tracker-capture-app/59553 "2024-06-14T12:46:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kandarpjoshi](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/k/49beb7/32.png) [@kandarpjoshi](https://community.dhis2.org/u/kandarpjoshi)\
**Post date:** [14 June 2024 12:46 UTC](https://community.dhis2.org/t/getting-httpstatuscode-400-while-accessing-tracker-capture-app/59553/1 "2024-06-14T12:46:38Z")

</div>

While accessing the Tracker Capture app, it is showing  
 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/9/d/9d6be544297df70364da7c1ea149c2c50efbbaa0.png)  
for long duration, while checking it in inspect and console tab it is showing below error,

{“programs”:}{“httpStatus”:“Bad Request”,“httpStatusCode”:400,“status”:“ERROR”,“message”:“Direct self-reference leading to cycle (through reference chain: org.hisp.dhis.program.Program["relatedProgram"])”}

We have fixed it by database level by executing "update program set relatedprogramid = null; " command, then it working but after 30 min or 1 hr we are facing the same issue again.

DHIS2 Version: 2.39.2

---

<div class="post-metadata">

**Author:** ![Stephan\_Mestach](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/stephan_mestach/32/40053_2.png) [@Stephan\_Mestach](https://community.dhis2.org/u/Stephan_Mestach)\
**Post date:** [14 June 2024 17:14 UTC](https://community.dhis2.org/t/getting-httpstatuscode-400-while-accessing-tracker-capture-app/59553/2 "2024-06-14T17:14:34Z")

</div>

- does someone is editing the program metadata during these 30m/1h ?
  - can you check the updated\_at timestamp ?
  - perhaps there’s a bug in the maintenance or dhis2 backend that “fillin” the relatedProgram field (this seem linked to using the same tracked entity type)

---

<div class="post-metadata">

**Author:** ![Quoda](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/quoda/32/39494_2.png) [@Quoda](https://community.dhis2.org/u/Quoda)\
**Post date:** [14 June 2024 18:36 UTC](https://community.dhis2.org/t/getting-httpstatuscode-400-while-accessing-tracker-capture-app/59553/3 "2024-06-14T18:36:48Z")

</div>

Hi @kandarpjoshi,

The error message suggest that your tracker program is in some sort of endless loop (self-reference).

Check the ‘Enrollment details’ section of your tracker program and if you have selected the ‘trackedentitytype’ in the Related program, remove it.  
 ![Screenshot from 2024-06-14 18-33-14](https://dhis2.b-cdn.net/uploads/default/original/3X/a/8/a8bc997d54ec53b6734b8a70f13dc19590630006.png)
