Coder Social home page Coder Social logo

Comments (13)

charleseidsness avatar charleseidsness commented on July 19, 2024 1

It's not a bad idea, we'll have a look at implementing it in a few days.

from adbus.

charleseidsness avatar charleseidsness commented on July 19, 2024 1

I just checked in an update that adds an optional timeout_ms to update, it also returns its self so that you can use that single line syntax in your example.

from adbus.

Kavan72 avatar Kavan72 commented on July 19, 2024

@charleseidsness are you here ?

from adbus.

Kavan72 avatar Kavan72 commented on July 19, 2024
adbus.sdbus.SdbusError: org.freedesktop.DBus.Error.NoReply: Method call timed out

maybe, you are missing something. cuz it's still waiting 120 sec (that is by default on dbus) i think you have to raise custom timeout error if no update

from adbus.

Kavan72 avatar Kavan72 commented on July 19, 2024

something like this await asyncio.wait_for(call.event.wait(), int(5)) in call.py

from adbus.

Kavan72 avatar Kavan72 commented on July 19, 2024

@charleseidsness sir, am i right ?

from adbus.

charleseidsness avatar charleseidsness commented on July 19, 2024

You're going to have to be more specific, can you send the error that is raised, including the traceback?

from adbus.

Kavan72 avatar Kavan72 commented on July 19, 2024
Fri Jul 19 18:12:41 2019
Start_time_in_call_dbus =>  Fri Jul 19 18:12:41 2019
Start_time_in_Scall =>  Fri Jul 19 18:12:41 2019
Stop_time_in_Scall =>  Fri Jul 19 18:12:41 2019

Ignoring exception in command test:
Traceback (most recent call last):
  File "/media/kavan/DATA/discord_bots/wfbot/venv/lib/python3.7/site-packages/discord/ext/commands/core.py", line 79, in wrapped
    ret = await coro(*args, **kwargs)
  File "/media/kavan/DATA/discord_bots/wfbot/test/test_bot.py", line 38, in test
    await proxy.update(timeout_ms=5000)
  File "/media/kavan/DATA/discord_bots/wfbot/venv/lib/python3.7/site-packages/adbus/client/proxy.py", line 477, in update
    timeout_ms=timeout_ms,
  File "/media/kavan/DATA/discord_bots/wfbot/venv/lib/python3.7/site-packages/adbus/client/call.py", line 59, in call
    raise call.response
  File "adbus/sdbus/call.pxi", line 14, in adbus.sdbus.call_callback
  File "adbus/sdbus/message.pxi", line 32, in adbus.sdbus.Message.import_sd_bus_message
adbus.sdbus.SdbusError: org.freedesktop.DBus.Error.NoReply: Method call timed out

this is full traceback which is i got

from adbus.

charleseidsness avatar charleseidsness commented on July 19, 2024

from adbus.

Kavan72 avatar Kavan72 commented on July 19, 2024

ok np i will fork and edit it for me 😃

from adbus.

charleseidsness avatar charleseidsness commented on July 19, 2024

from adbus.

Kavan72 avatar Kavan72 commented on July 19, 2024

when you free check this https://github.com/Kavan72/adbus/commit/cc234531889bd1e2d726bd1a41d531a9e30b5cb7

from adbus.

charleseidsness avatar charleseidsness commented on July 19, 2024

from adbus.

Related Issues (20)

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.