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
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?