.MD

Copy the markdown below:

NoMethodError

app/controllers/api/v1/gyms_controller.rb:171

undefined method `to_sym' for nil:NilClass

Backtrace

app/controllers/api/v1/gyms_controller.rb:171:in `block in ascent_scores'
app/controllers/api/v1/gyms_controller.rb:153:in `ascent_scores'

Request

Name Api::V1::GymsController#ascent_scores
Method GET
URL https://api.oblyk.org/api/v1/gyms/375/ascent_scores.json?climbing_type=all&gender=all&age=all
Browser ChromeChrome 138

Parameters

{
  "id": "375",
  "age": "all",
  "action": "ascent_scores",
  "format": "json",
  "gender": "all",
  "controller": "api/v1/gyms",
  "climbing_type": "all"
}

Headers

Host api.oblyk.org
Accept application/json,text/plain,*/*
Cf-Ray a036d77548a2d10c-CDG
Origin https://oblyk.org
Referer https://oblyk.org/
Version HTTP/1.0
Cdn-Loop cloudflare; loops=1
Cf-Visitor {"scheme":"https"}
Connection close
User-Agent Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Mobile Safari/537.36 (compatible; Google-Read-Aloud; +https://support.google.com/webmasters/answer/1061943)
Cf-Ipcountry BE
Accept-Encoding gzip, br
Accept-Language en-US
X-Forwarded-For 142.250.32.7, 172.71.126.106
Cf-Connecting-Ip 142.250.32.7
X-Forwarded-Proto https
Httpapiaccesstoken [FILTERED]

Environment

os Linux 5.10.0-14-cloud-amd64
cwd /var/www/oblyk/api/releases/20260527104736
pid 1711426
host oblyk-api
ruby ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
user oblyk
rails 6.0.3.6
revision 2db5d08a9860b15effdaffc8a72417608ff7eb52

Server

Load CPU RAM Swap Disk
oblyk-api Load avg <1% CPU 2% RAM 63% Swap <1% Disk 89%

Deployments 2

Merge branch 'devel/statistic-gym-route' clucien 31 May 16:14
Ajout du type d'espace ou de secteur dans gym_embedded clucien 27 May 10:47