.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/374/ascent_scores.json?climbing_type=all&gender=all&age=all
Browser ChromeChrome 148

Parameters

{
  "id": "374",
  "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 9fa769357bdde195-MRS
Origin https://oblyk.org
Referer https://oblyk.org/
Version HTTP/1.0
Cdn-Loop cloudflare; loops=1
Priority u=1, i
Sec-Ch-Ua "Chromium";v="148", "Google Chrome";v="148", "Not/A)Brand";v="99"
Cf-Visitor {"scheme":"https"}
Connection close
User-Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
Cf-Ipcountry FR
Sec-Fetch-Dest empty
Sec-Fetch-Mode cors
Sec-Fetch-Site same-site
Accept-Encoding gzip, br
Accept-Language fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7
X-Forwarded-For 185.215.65.32, 172.68.234.155
Cf-Connecting-Ip 185.215.65.32
Sec-Ch-Ua-Mobile ?0
X-Forwarded-Proto https
Httpapiaccesstoken [FILTERED]
Sec-Ch-Ua-Platform "Linux"

Environment

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

Server

Load CPU RAM Swap Disk
oblyk-api Load avg 4% CPU 3% RAM 41% Swap <1% Disk 88%

Deployments 5

Même correctif quand précédement mais dans le détail des points clucien 29 Apr 16:51
Correction calcul des points quand il n'y a pas de prise coché clucien 29 Apr 16:48
Ajout fichier de serializer clucien 24 Apr 14:44
Autorise le sous domain embedded et next-embedded à consulter en get les ressourdes de l'url api/embedded clucien 19 Apr 13:58
Ajout d'un alias de first_name vers name pour l'envoie des publications par email clucien 28 Mar 08:29