.MD

Copy the markdown below:

NoMethodError

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

undefined method `+' for nil:NilClass

Backtrace

app/controllers/api/v1/gyms_controller.rb:175:in `block in ascent_scores'
app/controllers/api/v1/gyms_controller.rb:155:in `ascent_scores'

Request

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

Parameters

{
  "id": "315",
  "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 a09b900a0fc6c44b-CDG
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 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Mobile 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 2a02:8440:7506:1f7e:20db:81ff:fe7a:fe0, 172.71.119.48
Cf-Connecting-Ip 2a02:8440:7506:1f7e:20db:81ff:fe7a:fe0
Sec-Ch-Ua-Mobile ?1
X-Forwarded-Proto https
Httpapiaccesstoken [FILTERED]
Sec-Ch-Ua-Platform "Android"

Environment

os Linux 5.10.0-14-cloud-amd64
cwd /var/www/oblyk/api/releases/20260608175543
pid 823407
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 2% RAM 58% Swap <1% Disk 44%

Deployments 3

On transfert les workers vers les jobs comme ça aurai dû l'être depuis le début clucien 08 Jun 17:55
Suppression de l'ancien système de feed clucien 05 Jun 13:38
Suppression de la procédure getRange pour la méthode native ST_DISTANCE_SPHERE clucien 04 Jun 18:12