.MD

Copy the markdown below:

NoMethodError

app/controllers/api/v1/follows_controller.rb:92

undefined method `user_id' for nil:NilClass

Backtrace

app/controllers/api/v1/follows_controller.rb:92:in `protected_by_owner'

Request

Name Api::V1::FollowsController#destroy
Method DELETE
URL https://api.oblyk.org/api/v1/follows.json
Browser FirefoxFirefox 151

Parameters

{
  "action": "destroy",
  "follow": {
    "followable_id": 18601,
    "followable_type": "User"
  },
  "format": "json",
  "controller": "api/v1/follows",
  "followable_id": 18601,
  "followable_type": "User"
}

Headers

Dnt 1
Host api.oblyk.org
Accept application/json, text/plain, */*
Cf-Ray a03f33cef9047d33-MRS
Origin https://oblyk.org
Referer https://oblyk.org/
Version HTTP/1.0
Cdn-Loop cloudflare; loops=1
Priority u=0
Cf-Visitor {"scheme":"https"}
Connection close
User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:151.0) Gecko/20100101 Firefox/151.0
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,en-US;q=0.8,en;q=0.7
X-Forwarded-For 2a01:cb1c:1085:900:34ca:dfb4:e5db:af43, 162.158.23.37
Cf-Connecting-Ip 2a01:cb1c:1085:900:34ca:dfb4:e5db:af43
X-Forwarded-Proto https
Httpapiaccesstoken [FILTERED]

Environment

os Linux 5.10.0-14-cloud-amd64
cwd /var/www/oblyk/api/releases/20260527104736
pid 1792279
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 5% RAM 60% 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