Coder Social home page Coder Social logo

deluge-rpc's People

Contributors

acavalin avatar leifg avatar t3hk0d3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

deluge-rpc's Issues

Undefined method `bytesize` error when attempting to run get_torrents_status

Attempting to get torrents' status using this method (from the README):
client.core.get_torrents_status({}, ['name', 'hash'])
returns this error:

#<NoMethodError: undefined method `bytesize' for ["6ebb0596f16e8dca6635921c5e125f293e4cecad", {"name"=>"archlinux-2023.03.01-x86_64.iso", "hash"=>"6ebb0596f16e8dca6635921c5e125f293e4cecad"}]:Array>

Deluge::Rpc::Connection::RPCError (IncompatibleClient)

Hello,

I'm unable to connect to deluge 2, I get this error upon connection:

Traceback (most recent call last):
        8: from /usr/bin/irb:23:in `<main>'
        7: from /usr/bin/irb:23:in `load'
        6: from /usr/lib/ruby/gems/2.7.0/gems/irb-1.2.6/exe/irb:11:in `<top (required)>'
        5: from (irb):7
        4: from /home/cloud/.gem/ruby/2.7.0/gems/deluge-rpc-0.2.0/lib/deluge/rpc/client.rb:18:in `connect'
        3: from /home/cloud/.gem/ruby/2.7.0/gems/deluge-rpc-0.2.0/lib/deluge/rpc/connection.rb:70:in `authenticate'
        2: from /home/cloud/.gem/ruby/2.7.0/gems/deluge-rpc-0.2.0/lib/deluge/rpc/connection.rb:107:in `call'
        1: from /home/cloud/.gem/ruby/2.7.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/concern/obligation.rb:101:in `value!'
Deluge::Rpc::Connection::RPCError (IncompatibleClient)

this is the sample code I used:

require 'deluge'

client = Deluge::Rpc::Client.new \
  host: 'localhost', port: 58846,
  login: 'myuser', password: 'mypass'

client.connect

These are my system specs:

  • uname -ra => Linux raoul 5.10.92-v7l+ #1514 SMP Mon Jan 17 17:38:03 GMT 2022 armv7l GNU/Linux
  • cat /etc/debian_version => 11.2
  • ruby --version => ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [arm-linux-gnueabihf]
  • deluged --version
    deluged 2.0.3
    libtorrent: 1.2.9.0
    Python: 3.9.2
    OS: Linux Raspbian GNU/Linux 11 bullseye
    

Can you help me?

RPC Event

Hello,

I am using the sample code from the Usage section and although everything seems to be working correctly, the events of the example do not seem to work when I am adding/removing a torrent from Deluge WebUI to my deluge daemon. Is there something else that I need to enable in order to get those events? Is it a problem the fact that i am adding the torrent from Deluge WebUI?

Thank you for your time

hi, now do not support Deluge v2?

deluge -v
deluge 2.0b1
libtorrent: 1.1.4.0
Python: 2.7.12
OS: Linux Ubuntu 16.04 xenial
require 'deluge'

# Initialize client
client = Deluge::Rpc::Client.new(
    host: 'localhost', port: 58846,
    login: 'localclient', password: '9b20625ef11fc963dbc1bee0a1ac9967808d1b20'
)

client.connect
puts client.api_methods
/var/lib/gems/2.3.0/gems/deluge-rpc-0.1.3/lib/deluge/rpc/connection.rb:105:in `call': Failed to retreive response for 'daemon.login' in 5.0 seconds. Probably method not exists. (Deluge::Rpc::Connection::InvokeTimeoutError)
	from /var/lib/gems/2.3.0/gems/deluge-rpc-0.1.3/lib/deluge/rpc/connection.rb:65:in `authenticate'
	from /var/lib/gems/2.3.0/gems/deluge-rpc-0.1.3/lib/deluge/rpc/client.rb:18:in `connect'
	from test.rb:9:in `<main>'

rouble to help me look

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.