ytti / oxidized-web

Web UI + RESTful API for Oxidized
118 stars 72 forks source link

ArgumentError at /node/version wrong number of arguments (given 0, expected 1+) #236

Closed tokarenkos closed 1 year ago

tokarenkos commented 1 year ago

I have Ruby 3.0 and oxidized 0.29.0 oxidized-web 0.13.1 Installed on Ubuntu 22.04.2. When I clicking to "version" I had error with this messages

ArgumentError at /node/version wrong number of arguments (given 0, expected 1+) file: versions.haml location: count line: 24

mortzu commented 1 year ago

duplicate of #235

bacala commented 1 year ago

The same issue was opened at oxidized, and already closed with comment, that this is an 'oxidized-web' issue. Here again my comment, which maybe will help to troubleshoot the bug. I have tried to find the problem quickly, but it needs a bit more time. Maybe I will find it later, till then just my assumptions.

I have noticed the same issue. If you try to call it in json format it returns "node not found" which is actually the reason why we get ArgumenError. It tries to call .count on string instead of array. I would say that nodes.version doesn't work but the nodes.show yes.