.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#increment
Method PUT
URL https://api.oblyk.org/api/v1/follows/increment.json
Browser FirefoxFirefox 150

Parameters

{
  "action": "increment",
  "follow": {
    "followable_id": 1863,
    "followable_type": "Crag"
  },
  "format": "json",
  "controller": "api/v1/follows",
  "followable_id": 1863,
  "followable_type": "Crag"
}

Headers

Host api.oblyk.org
Accept application/json, text/plain, */*
Cf-Ray 9f5164cbacc21d81-MRS
Origin https://oblyk.org
Sec-Gpc 1
Version HTTP/1.0
Cdn-Loop cloudflare; loops=1
Priority u=0
Cf-Visitor {"scheme":"https"}
Connection close
User-Agent Mozilla/5.0 (Android 16; Mobile; rv:150.0) Gecko/150.0 Firefox/150.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 en-US,fr-FR;q=0.9
X-Forwarded-For 2a02:8440:550a:772f::193c:fce6, 172.68.234.49
Cf-Connecting-Ip 2a02:8440:550a:772f::193c:fce6
X-Forwarded-Proto https
Httpapiaccesstoken [FILTERED]

Environment

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

Deployments 2

Même correctif quand précédement mais dans le détail des points clucien 29 Apr 16:51
Ajout fichier de serializer clucien 24 Apr 14:44