.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/161/ascent_scores.json?climbing_type=all&gender=all&age=all
Browser FirefoxFirefox 151

Parameters

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

Headers

Dnt 1
Host api.oblyk.org
Accept application/json, text/plain, */*
Cf-Ray a0a20203cdf713d3-MRS
Origin https://oblyk.org
Referer https://oblyk.org/
Sec-Gpc 1
Version HTTP/1.0
Cdn-Loop cloudflare; loops=1
Cf-Visitor {"scheme":"https"}
Connection close
User-Agent Mozilla/5.0 (Android 16; Mobile; rv:151.0) Gecko/151.0 Firefox/151.0
Cf-Ipcountry FR
Sec-Fetch-Dest empty
Sec-Fetch-Mode cors
Sec-Fetch-Site same-site
Accept-Encoding gzip, br
Accept-Language fr-FR
X-Forwarded-For 2a02:8440:d50b:5f56::76e7:75aa, 172.68.234.49
Cf-Connecting-Ip 2a02:8440:d50b:5f56::76e7:75aa
X-Forwarded-Proto https
Httpapiaccesstoken [FILTERED]

Environment

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

Server

Load CPU RAM Swap Disk
oblyk-api Load avg 3% CPU 5% RAM 51% Swap <1% Disk 44%

Deployments 4

Merge pull request #32 from oblyk/chore/brevo-gem Lucien Chastan 11 Jun 07:20
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