Code Monkey home page Code Monkey logo

boostcli's People

Contributors

coldacid avatar dowodenum avatar valcanobacon avatar

Stargazers

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

Watchers

 avatar

boostcli's Issues

Feature Request: Boost log

It'd be nice if there was a log of the sent boosts with time/date, amount, sender/receiver, and message.

Can't send boosts after switch to lnd-grpc-client library

ERROR MESSAGE: failed to connect to all addresses
Traceback (most recent call last):
  File "C:\Users\chris\source\Repos\BoostCLI\venv\Scripts\boostcli-script.py", line 33, in <module>
    sys.exit(load_entry_point('BoostCLI', 'console_scripts', 'boostcli')())
  File "C:\Users\chris\source\Repos\BoostCLI\venv\lib\site-packages\click\core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\chris\source\Repos\BoostCLI\venv\lib\site-packages\click\core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "C:\Users\chris\source\Repos\BoostCLI\venv\lib\site-packages\click\core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\chris\source\Repos\BoostCLI\venv\lib\site-packages\click\core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\chris\source\Repos\BoostCLI\venv\lib\site-packages\click\core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\chris\source\Repos\BoostCLI\venv\lib\site-packages\click\decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "c:\users\chris\source\repos\boostcli\src\cli\__init__.py", line 246, in boost
    payment.payment_hash.hex(),
AttributeError: 'NoneType' object has no attribute 'payment_hash'

Feed without value block results in stack trace

Expected Result: Title, URL, GUID, and Podcast Index feed ID shown, followed by "No Value Block" message without stack trace.

Actual Result:

> boostcli podcast 'https://www.absna6pack.com/?format=rss'
No Value Block
Traceback (most recent call last):
  File "C:\Users\chris\source\Repos\BoostCLI\venv\Scripts\boostcli-script.py", line 33, in <module>
    sys.exit(load_entry_point('BoostCLI', 'console_scripts', 'boostcli')())
  File "C:\Users\chris\source\Repos\BoostCLI\venv\lib\site-packages\click\core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\chris\source\Repos\BoostCLI\venv\lib\site-packages\click\core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "C:\Users\chris\source\Repos\BoostCLI\venv\lib\site-packages\click\core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Users\chris\source\Repos\BoostCLI\venv\lib\site-packages\click\core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\chris\source\Repos\BoostCLI\venv\lib\site-packages\click\core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\chris\source\Repos\BoostCLI\venv\lib\site-packages\click\decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "c:\users\chris\source\repos\boostcli\src\cli\__init__.py", line 133, in podcast
    ["Title", podcast_value.podcast_title],
AttributeError: 'NoneType' object has no attribute 'podcast_title'

Boosts sent from BoostCLI are incorrectly base64 encoded

See thread on PodcastIndex.social but the long and short of it is that it appears that the value for custom record 7629169 is being base64 encoded when it shouldn't be. This causes boostagrams sent with BoostCLI to go missing, which is a big problem with shared node services like Satoshis.Stream where the podcast information in the custom record is required to determine which users should receive the boost value.

Error boosting a certain feed

https://www.podserve.fm/series/rss/2202/behind-the-schms.rss

edit: just tried again, also happens with podcastindex URL: https://podcastindex.org/podcast/150842

Traceback (most recent call last):
  File "/usr/lib/python3.9/encodings/hex_codec.py", line 19, in hex_decode
    return (binascii.a2b_hex(input), len(input))
binascii.Error: Odd-length string

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/me/BoostCLI/venv/bin/boostcli", line 33, in <module>
    sys.exit(load_entry_point('BoostCLI', 'console_scripts', 'boostcli')())
  File "/home/me/BoostCLI/venv/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/home/me/BoostCLI/venv/lib/python3.9/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/home/me/BoostCLI/venv/lib/python3.9/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/me/BoostCLI/venv/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/me/BoostCLI/venv/lib/python3.9/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/home/me/BoostCLI/venv/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/me/BoostCLI/src/cli/__init__.py", line 329, in boost
    for i, payment in enumerate(payments):
  File "/home/me/BoostCLI/src/services/lightning_service.py", line 183, in pay_boost_invoice
    dest = codecs.decode(destination.receiver_address, "hex")
binascii.Error: decoding with 'hex' codec failed (Error: Odd-length string)

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.