# Cannot reach my date

**URL:** <https://community.forestadmin.com/t/cannot-reach-my-date/6039>\
**Category:** Help me!\
**Created:** [February 27, 2023, 3:52pm UTC](https://community.forestadmin.com/t/cannot-reach-my-date/6039 "2023-02-27T15:52:17Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![julien-mathieu](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@julien-mathieu](https://community.forestadmin.com/u/julien-mathieu)\
**Post date:** [February 27, 2023, 3:52pm UTC](https://community.forestadmin.com/t/cannot-reach-my-date/6039/1 "2023-02-27T15:52:17Z")

</div>

## Feature(s) impacted

Access to one of my models show page, only in production environment

## Observed behavior

the error message “Cannot reach your data”

## Expected behavior

To load my object data normally.

## Failure Logs

```javascript
2023-02-27T15:45:29.407241+00:00 heroku[router]: at=info method=OPTIONS path="/forest/authentication/callback?code=aZJrtOAWHJ2YxvWx3wR38PHvaophQw9FWgiDum18C1n8Sxu5yEqDSWMhmg3WpBMy&state=%7B%22renderingId%22%3D%3E108642%7D" host=depozen-app.herokuapp.com request_id=e8a10015-1b1c-4140-80fa-97bcf92d43d0 fwd="90.90.216.4" dyno=web.1 connect=0ms service=2ms status=200 bytes=515 protocol=https
2023-02-27T15:45:30.905302+00:00 heroku[router]: at=info method=GET path="/forest/Company/count?fields%5BCompany%5D=name%2Ccompany_type%2Cbrokered_by_id%2Cheadquarter%2Cdefault_home_insurance_non_occupant_owner_status%2Cdefault_home_insurance_tenant_occupant_status%2Cdefault_security_deposit_status&fields%5Bheadquarter%5D=name&timezone=Europe%2FParis" host=depozen-app.herokuapp.com request_id=ee3490e8-899a-42d6-836e-e4504c0ad168 fwd="90.90.216.4" dyno=web.1 connect=0ms service=7ms status=304 bytes=743 protocol=https
2023-02-27T15:45:32.584639+00:00 heroku[router]: at=info method=GET path="/forest/Rental/count?fields%5BRental%5D=id%2Crealty%2Clandlord%2Cmanager%2Ctenant%2Cstatus%2Cvalidated_by_tenant&fields%5Brealty%5D=name&fields%5Blandlord%5D=name&fields%5Bmanager%5D=name&fields%5Btenant%5D=name&timezone=Europe%2FParis" host=depozen-app.herokuapp.com request_id=6bff2867-969a-4f9c-a314-d7f8113d7566 fwd="90.90.216.4" dyno=web.1 connect=0ms service=7ms status=304 bytes=743 protocol=https
2023-02-27T15:45:32.575474+00:00 app[web.1]: I, [2023-02-27T15:45:32.575394 #2] INFO -- : [6bff2867-969a-4f9c-a314-d7f8113d7566] Started GET "/forest/Rental/count?fields%5BRental%5D=id%2Crealty%2Clandlord%2Cmanager%2Ctenant%2Cstatus%2Cvalidated_by_tenant&fields%5Brealty%5D=name&fields%5Blandlord%5D=name&fields%5Bmanager%5D=name&fields%5Btenant%5D=name&timezone=Europe%2FParis" for 90.90.216.4 at 2023-02-27 15:45:32 +0000
2023-02-27T15:45:32.576590+00:00 app[web.1]: I, [2023-02-27T15:45:32.576546 #2] INFO -- : [6bff2867-969a-4f9c-a314-d7f8113d7566] Processing by ForestLiana::UserSpace::RentalController#count as JSON
2023-02-27T15:45:32.576629+00:00 app[web.1]: I, [2023-02-27T15:45:32.576606 #2] INFO -- : [6bff2867-969a-4f9c-a314-d7f8113d7566] Parameters: {"fields"=>{"Rental"=>"id,realty,landlord,manager,tenant,status,validated_by_tenant", "realty"=>"name", "landlord"=>"name", "manager"=>"name", "tenant"=>"name"}, "timezone"=>"Europe/Paris", "collection"=>"Rental"}
2023-02-27T15:45:32.580277+00:00 app[web.1]: I, [2023-02-27T15:45:32.580231 #2] INFO -- : [6bff2867-969a-4f9c-a314-d7f8113d7566] Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.9ms | Allocations: 606)
2023-02-27T15:45:38.352259+00:00 heroku[router]: at=info method=OPTIONS path="/forest/Rental/2006?timezone=Europe%2FParis" host=depozen-app.herokuapp.com request_id=6f98eec7-c4ec-4ece-8a74-58917218a063 fwd="90.90.216.4" dyno=web.1 connect=0ms service=2ms status=200 bytes=529 protocol=https
2023-02-27T15:45:38.348415+00:00 app[web.1]: I, [2023-02-27T15:45:38.348350 #2] INFO -- : [6f98eec7-c4ec-4ece-8a74-58917218a063] Started OPTIONS "/forest/Rental/2006?timezone=Europe%2FParis" for 90.90.216.4 at 2023-02-27 15:45:38 +0000
2023-02-27T15:45:38.378933+00:00 app[web.1]: I, [2023-02-27T15:45:38.378852 #2] INFO -- : [d111459c-ea7b-480c-9ff7-97294f25abd9] Started GET "/forest/Rental/2006?timezone=Europe%2FParis" for 90.90.216.4 at 2023-02-27 15:45:38 +0000
2023-02-27T15:45:38.380023+00:00 app[web.1]: I, [2023-02-27T15:45:38.379978 #2] INFO -- : [d111459c-ea7b-480c-9ff7-97294f25abd9] Processing by ForestLiana::UserSpace::RentalController#show as JSON
2023-02-27T15:45:38.380058+00:00 app[web.1]: I, [2023-02-27T15:45:38.380036 #2] INFO -- : [d111459c-ea7b-480c-9ff7-97294f25abd9] Parameters: {"timezone"=>"Europe/Paris", "collection"=>"Rental", "id"=>"2006"}
2023-02-27T15:45:38.403867+00:00 app[web.1]: I, [2023-02-27T15:45:38.403806 #2] INFO -- : [d111459c-ea7b-480c-9ff7-97294f25abd9] Completed 200 OK in 24ms (Views: 1.8ms | ActiveRecord: 7.6ms | Allocations: 13489)
2023-02-27T15:45:38.408667+00:00 heroku[router]: at=info method=GET path="/forest/Rental/2006?timezone=Europe%2FParis" host=depozen-app.herokuapp.com request_id=d111459c-ea7b-480c-9ff7-97294f25abd9 fwd="90.90.216.4" dyno=web.1 connect=0ms service=27ms status=200 bytes=8217 protocol=https
2023-02-27T15:45:43.045043+00:00 heroku[router]: at=info method=GET path="/forest/Rental/2004?timezone=Europe%2FParis" host=depozen-app.herokuapp.com request_id=8e4ce24d-6026-476f-943d-4cdfc50dae87 fwd="90.90.216.4" dyno=web.1 connect=0ms service=29ms status=200 bytes=8214 protocol=https
2023-02-27T15:45:42.976097+00:00 heroku[router]: at=info method=OPTIONS path="/forest/Rental/2004?timezone=Europe%2FParis" host=depozen-app.herokuapp.com request_id=a633bb56-2da7-4aba-a9c4-a7029bd4ea94 fwd="90.90.216.4" dyno=web.1 connect=0ms service=2ms status=200 bytes=529 protocol=https
2023-02-27T15:45:42.972455+00:00 app[web.1]: I, [2023-02-27T15:45:42.972370 #2] INFO -- : [a633bb56-2da7-4aba-a9c4-a7029bd4ea94] Started OPTIONS "/forest/Rental/2004?timezone=Europe%2FParis" for 90.90.216.4 at 2023-02-27 15:45:42 +0000
2023-02-27T15:45:43.013840+00:00 app[web.1]: I, [2023-02-27T15:45:43.013770 #2] INFO -- : [8e4ce24d-6026-476f-943d-4cdfc50dae87] Started GET "/forest/Rental/2004?timezone=Europe%2FParis" for 90.90.216.4 at 2023-02-27 15:45:43 +0000
2023-02-27T15:45:43.014911+00:00 app[web.1]: I, [2023-02-27T15:45:43.014863 #2] INFO -- : [8e4ce24d-6026-476f-943d-4cdfc50dae87] Processing by ForestLiana::UserSpace::RentalController#show as JSON
2023-02-27T15:45:43.014949+00:00 app[web.1]: I, [2023-02-27T15:45:43.014918 #2] INFO -- : [8e4ce24d-6026-476f-943d-4cdfc50dae87] Parameters: {"timezone"=>"Europe/Paris", "collection"=>"Rental", "id"=>"2004"}
2023-02-27T15:45:43.040238+00:00 app[web.1]: I, [2023-02-27T15:45:43.040171 #2] INFO -- : [8e4ce24d-6026-476f-943d-4cdfc50dae87] Completed 200 OK in 25ms (Views: 1.8ms | ActiveRecord: 9.2ms | Allocations: 13517)

```

## Context

- Project name: Depozen-app
- Environment name: Rails 7 app - Production
- Agent (forest package) name & version: …
- Database type: Heroku hosted postgresql

So I have this model Rental. when loading its index, everything works fine. But qhen clicking an instance of the object, i get an error message stating that the data cannot be reached. The weird part is that the resources load without any trouble in my staging environment which is a duplicate of the production environment. I tried different instances of my model and none of them work.

Nothing looks unusual in my heroku logs either.

Any idea on the origin of this problem?

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [February 28, 2023, 8:51am UTC](https://community.forestadmin.com/t/cannot-reach-my-date/6039/2 "2023-02-28T08:51:14Z")

</div>

Hello @julien-mathieu,

Thanks for reaching out! 🙌

Could you please show me what error you’re having in your browser console (network tab of your inspector) on the GET of one of your Rentals record?  
And what’s displayed on the UI?

Thanks.

---

<div class="post-metadata">

**Author:** ![julien-mathieu](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@julien-mathieu](https://community.forestadmin.com/u/julien-mathieu)\
**Post date:** [February 28, 2023, 5:32pm UTC](https://community.forestadmin.com/t/cannot-reach-my-date/6039/3 "2023-02-28T17:32:03Z")

</div>

Sure!

Here is the screenshot.

 ![Capture d’écran 2023-02-28 à 18.30.49](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/a/a4742ae148161c5dc05cb4a98d8bd9bed94159b5.png)

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [February 28, 2023, 7:13pm UTC](https://community.forestadmin.com/t/cannot-reach-my-date/6039/4 "2023-02-28T19:13:36Z")

</div>

Thanks @julien-mathieu!

That’s helpful.  
It seems like the `id` received is `null` 🤔 Could it be possible?  
Could you please show me how the response of Rental record call look like in your Network tab?

Thanks.

---

<div class="post-metadata">

**Author:** ![julien-mathieu](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@julien-mathieu](https://community.forestadmin.com/u/julien-mathieu)\
**Post date:** [March 1, 2023, 8:43am UTC](https://community.forestadmin.com/t/cannot-reach-my-date/6039/5 "2023-03-01T08:43:24Z")

</div>

Hi!

On my end the rental exists, and it is fetched properly on your end in the rentals index. It just isn’t fetched once I click on any resource show page. Here is the network tab, showing mostly 20X responses.

Thanks for your help !

 ![Capture d’écran 2023-03-01 à 09.41.13](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/f/fb5436e9462ac7e3f0a4f268d3cd072ef0dedfb5.png)

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [March 1, 2023, 2:16pm UTC](https://community.forestadmin.com/t/cannot-reach-my-date/6039/6 "2023-03-01T14:16:04Z")

</div>

Hi @julien-mathieu!

Could you please:

- check the `Fetch/XHR` option to filter down the calls
- then navigate to your rentals index
- clear the calls (icon 🚫)
- then click to one record
- show me what you have in your network again

This way we’ll be able to identify easily the call we’re interested.

---

<div class="post-metadata">

**Author:** ![julien-mathieu](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@julien-mathieu](https://community.forestadmin.com/u/julien-mathieu)\
**Post date:** [March 2, 2023, 10:27am UTC](https://community.forestadmin.com/t/cannot-reach-my-date/6039/8 "2023-03-02T10:27:32Z")

</div>

Here you go!

 ![Capture d’écran 2023-03-02 à 11.26.51](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/c/cbcd6f49c1a5b53d97cecf24bcb30c55b9ddab41.png)

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [March 2, 2023, 10:46am UTC](https://community.forestadmin.com/t/cannot-reach-my-date/6039/9 "2023-03-02T10:46:53Z")

</div>

Great thanks!

Can you please now click on the “`2035?timezone=Europe%2FParis`” line and open the “Preview” tab and show the “data”\>“attributes” (sorry this is a bit tedious).

It should like this (with different fields and values of course):

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/0/05d5f6e70492ba37263279ebb507024be1a58c39.png)

With this information, we’ll see if we receive well the data, how it’s formatted and if there is well an `id`.

---

<div class="post-metadata">

**Author:** ![julien-mathieu](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@julien-mathieu](https://community.forestadmin.com/u/julien-mathieu)\
**Post date:** [March 2, 2023, 10:51am UTC](https://community.forestadmin.com/t/cannot-reach-my-date/6039/10 "2023-03-02T10:51:32Z")

</div>

Here it is

 ![Capture d’écran 2023-03-02 à 11.51.10](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/4/4c4a1dafa56fbb708e71396058252ffa6cdffa5b.png)

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [March 2, 2023, 11:06am UTC](https://community.forestadmin.com/t/cannot-reach-my-date/6039/11 "2023-03-02T11:06:56Z")

</div>

@julien-mathieu,

Just to be sure, if you remove the end of the url from `summary` (included) and add `details`, you’re having the same error?  
It would be something like: `app.forestadmin.com/.../2035/details`

---

<div class="post-metadata">

**Author:** ![julien-mathieu](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@julien-mathieu](https://community.forestadmin.com/u/julien-mathieu)\
**Post date:** [March 2, 2023, 11:24am UTC](https://community.forestadmin.com/t/cannot-reach-my-date/6039/12 "2023-03-02T11:24:33Z")

</div>

Yes! I still have the same problem on the details page.

---

<div class="post-metadata">

**Author:** ![anon62739609](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anon62739609](https://community.forestadmin.com/u/anon62739609)\
**Post date:** [March 2, 2023, 2:53pm UTC](https://community.forestadmin.com/t/cannot-reach-my-date/6039/14 "2023-03-02T14:53:07Z")

</div>

Hi @julien-mathieu,

Could you please share a screen where you show the `Household` relationships open (in your previous screen) and also open the `relationships` part inside `data` 🙏

---

<div class="post-metadata">

**Author:** ![julien-mathieu](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@julien-mathieu](https://community.forestadmin.com/u/julien-mathieu)\
**Post date:** [March 14, 2023, 8:47am UTC](https://community.forestadmin.com/t/cannot-reach-my-date/6039/15 "2023-03-14T08:47:52Z")

</div>

Hi !

Sorry for the late answer, indeed I had a broken `belongs_to` association in my model.

The probem is fixed now, thank you for your help 🙂
