NoMethodError
app/controllers/api/v1/departments_controller.rb:26
undefined method `detail_to_json' for nil:NilClass
Backtrace
app/controllers/api/v1/departments_controller.rb:26:in `show'
Request
| Name | Api::V1::DepartmentsController#show |
| Method | GET |
| URL | https://api.oblyk.org/api/v1/public/countries/fr/departments/undefined.json |
| Browser |
Parameters
{
"id": "undefined",
"action": "show",
"format": "json",
"controller": "api/v1/departments",
"country_id": "fr"
}
Headers
| Host | api.oblyk.org |
| Accept | application/json, text/plain, */* |
| Cf-Ray | a08a7373ef487879-CDG |
| Version | HTTP/1.0 |
| Cdn-Loop | cloudflare; loops=2 |
| Priority | u=0, i |
| Sec-Ch-Ua | "Google Chrome";v="149", "Chromium";v="149", "Not)A;Brand";v="24" |
| Cf-Visitor | {"scheme":"https"} |
| Connection | close |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36 |
| Cf-Ipcountry | FR |
| Sec-Fetch-Dest | empty |
| Sec-Fetch-Mode | navigate |
| Sec-Fetch-Site | same-origin |
| Accept-Encoding | gzip, br |
| Accept-Language | fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7 |
| X-Forwarded-For | 92.143.71.123, 162.159.122.95,185.163.125.60, 104.23.229.27 |
| Cf-Connecting-Ip | 185.163.125.60 |
| Sec-Ch-Ua-Mobile | ?0 |
| X-Forwarded-Proto | https |
| Httpapiaccesstoken | [FILTERED] |
| Sec-Ch-Ua-Platform | "Windows" |
| Upgrade-Insecure-Requests | 1 |
Environment
| os | Linux 5.10.0-14-cloud-amd64 |
| cwd | /var/www/oblyk/api/releases/20260608175543 |
| pid | 694371 |
| host | oblyk-api |
| ruby | ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux] |
| user | oblyk |
| rails | 6.0.3.6 |
| revision | 1c43b1c8eacd775c896c9cf86a59299d84c159dd |
Server
| Load | CPU | RAM | Swap | Disk | |
|---|---|---|---|---|---|
| oblyk-api | Load avg 2% | CPU 3% | RAM 37% | Swap <1% | Disk 44% |