.MD

Copy the markdown below:

NoMethodError

app/controllers/api/v1/contest_participant_ascents_controller.rb:50

undefined method `id' for nil:NilClass

Backtrace

app/controllers/api/v1/contest_participant_ascents_controller.rb:50:in `block in bulk'
app/controllers/api/v1/contest_participant_ascents_controller.rb:48:in `each'
app/controllers/api/v1/contest_participant_ascents_controller.rb:48:in `bulk'

Request

Name Api::V1::ContestParticipantAscentsController#bulk
Method POST
URL https://api.oblyk.org/api/v1/gyms/219/contests/278/contest_participants/lucie-dac/contest_participant_ascents/bulk.json
Browser SafariSafari 26

Parameters

{
  "action": "bulk",
  "format": "json",
  "gym_id": "219",
  "contest_id": "278",
  "controller": "api/v1/contest_participant_ascents",
  "contest_participant_id": "lucie-dac",
  "contest_participant_ascent": {
    "gym_id": 219,
    "ascents": [
      {
        "gym_id": 219,
        "contest_id": 278,
        "top_attempt": 1,
        "zone_1_attempt": null,
        "contest_route_id": 16094,
        "contest_participant_token": "[FILTERED]"
      }
    ],
    "contest_id": 278,
    "contest_participant_token": "[FILTERED]"
  }
}

Headers

Host api.oblyk.org
Accept application/json, text/plain, */*
Cf-Ray 9f90c1f55c2dbb1b-CDG
Origin https://oblyk.org
Referer https://oblyk.org/
Version HTTP/1.0
Cdn-Loop cloudflare; loops=1
Priority u=3, i
Cf-Visitor {"scheme":"https"}
Connection close
User-Agent Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Mobile/15E148 Safari/604.1
Cf-Ipcountry FR
Authorization [FILTERED]
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
X-Forwarded-For 87.240.94.124, 172.71.118.174
Cf-Connecting-Ip 87.240.94.124
X-Forwarded-Proto https
Httpapiaccesstoken [FILTERED]

Environment

os Linux 5.10.0-14-cloud-amd64
cwd /var/www/oblyk/api/releases/20260429165115
pid 82266
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 5% CPU 4% RAM 55% Swap <1% Disk 88%

Deployments 1

Même correctif quand précédement mais dans le détail des points clucien 29 Apr 16:51