Skip to content

bitmessagecli crashes when trying to send and you have no own addresses #877

Open

Description

@Musickiller

python2 bitmessagecli.py
send
M
BM-[some-address]
//error


Would you like to send a (M)essage or (B)roadcast?
> M

What is the To Address?
> BM-[some-address]

     Using the only address in the addressbook to send from.

Traceback (most recent call last):
  File "/data/data/com.termux/files/home/PyBitmessage/src/bitmessagecli.py", line 1778, in <module>
    main()
  File "/data/data/com.termux/files/home/PyBitmessage/src/bitmessagecli.py", line 1773, in main
    UI((raw_input('>').lower()).replace(" ", ""))
  File "/data/data/com.termux/files/home/PyBitmessage/src/bitmessagecli.py", line 1348, in UI
    main()
  File "/data/data/com.termux/files/home/PyBitmessage/src/bitmessagecli.py", line 1773, in main
    UI((raw_input('>').lower()).replace(" ", ""))
  File "/data/data/com.termux/files/home/PyBitmessage/src/bitmessagecli.py", line 1492, in UI
    sendMsg(null,null,null,null)
  File "/data/data/com.termux/files/home/PyBitmessage/src/bitmessagecli.py", line 807, in sendMsg
    fromAddress = jsonAddresses['addresses'][0]['address']
IndexError: list index out of range

the same with broadcasts.

Activity

  1. Musickiller commented on Jul 13, 2016

    @Musickiller
    Author

    Woops... I have not generated an address. I guess you should add some check for that. =)

  2. added this to the v0.6.2 milestone on Feb 22, 2017
  3. self-assigned this
    on Feb 22, 2017
  4. added
    bugSomething isn't working as it's supposed to
    on Feb 22, 2017
  5. modified the milestones: v0.6.3, v0.6.2 on Mar 1, 2017
  6. changed the title [-]bitmessagecli does not send messages (with an error)[/-] [+]bitmessagecli crashes when trying to send and you have no own addresses.[/+] on Mar 1, 2017
  7. changed the title [-]bitmessagecli crashes when trying to send and you have no own addresses.[/-] [+]bitmessagecli crashes when trying to send and you have no own addresses[/+] on Mar 1, 2017
  8. Lvl4Sword commented on Jun 26, 2017

    @Lvl4Sword
    Contributor

    This is fixed in https://github.com/Lvl4Sword/PyBitmessage-CLI/blob/master/bitmessagecli.py
    My CLI has very minor bugs, but should be production ready.

    Protip: This CLI is designed to replace the current one. So if you get an OSError, you didn't replace it 😃

  9. modified the milestones: v0.6.3, v0.6.4 on Aug 27, 2020
  10. modified the milestones: v0.6.4, v1.0.0 on Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working as it's supposed to

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions