Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
silkaj
silkaj
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 153
    • Issues 153
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 5
    • Merge Requests 5
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • clients
  • python
  • silkajsilkaj
  • Issues
  • #260

Closed
Open
Opened Dec 02, 2019 by gerard94@gerard94

Disconnection bug when sending a document to a local node

À la confirmation d'une transaction :

gerard@hermes2:~$ silkaj -p 127.0.0.1:57586 -af --file /home/gerard/coffre/G1/Silkaj tx --amountUD 10 --output CxWGA39twcJWkVjqdNWLVy9nVj8CcEPL1yHyJZhjEjSp --comment "tapas 30/11 soir gerard94"

╒════════════════════════════╤══════════════════════════════════════════════╕
│ pubkey’s balance before tx │ 665.35 Ğ1                                    │
├────────────────────────────┼──────────────────────────────────────────────┤
│ tx amount (unit)           │ 101.1 Ğ1                                     │
├────────────────────────────┼──────────────────────────────────────────────┤
│ tx amount (relative)       │ 10.0 UD Ğ1                                   │
├────────────────────────────┼──────────────────────────────────────────────┤
│ pubkey’s balance after tx  │ 564.25 Ğ1                                    │
├────────────────────────────┼──────────────────────────────────────────────┤
│ from (pubkey)              │ 4sfQWXBBy811CCDV6J3YP52EQGK2Ko4x53AAiPa6GGS4 │
├────────────────────────────┼──────────────────────────────────────────────┤
│ to (pubkey)                │ CxWGA39twcJWkVjqdNWLVy9nVj8CcEPL1yHyJZhjEjSp │
├────────────────────────────┼──────────────────────────────────────────────┤
│ comment                    │ tapas 30/11 soir gerard94                    │
╘════════════════════════════╧══════════════════════════════════════════════╛
Do you confirm sending this transaction? [yes/no]: yes
Traceback (most recent call last):
  File "/home/gerard/.local/bin/silkaj", line 23, in <module>
    cli(obj={})
  File "/home/gerard/.local/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/gerard/.local/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/gerard/.local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/gerard/.local/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/gerard/.local/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/gerard/.local/lib/python3.6/site-packages/silkaj/tools.py", line 70, in wrapper
    return loop.run_until_complete(f(*args, **kwargs))
  File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "/home/gerard/.local/lib/python3.6/site-packages/silkaj/tx.py", line 99, in send_transaction
    key, issuer_pubkey, tx_amount, outputAddresses, comment, outputbackchange
  File "/home/gerard/.local/lib/python3.6/site-packages/silkaj/tx.py", line 213, in handle_intermediaries_transactions
    issuers, AmountTransfered * len(outputAddresses)
  File "/home/gerard/.local/lib/python3.6/site-packages/silkaj/tx.py", line 186, in get_list_input_for_transaction
    listinput, amount = await get_sources(pubkey)
  File "/home/gerard/.local/lib/python3.6/site-packages/silkaj/money.py", line 128, in get_sources
    sources = await client(tx.sources, pubkey)
  File "/home/gerard/.local/lib/python3.6/site-packages/duniterpy/api/bma/tx.py", line 236, in sources
    return await client.get(MODULE + '/sources/%s' % pubkey, schema=SOURCES_SCHEMA)
  File "/home/gerard/.local/lib/python3.6/site-packages/duniterpy/api/client.py", line 231, in get
    response = await client.requests_get(url_path, **params)
  File "/home/gerard/.local/lib/python3.6/site-packages/duniterpy/api/client.py", line 138, in requests_get
    timeout=15)
  File "/home/gerard/.local/lib/python3.6/site-packages/aiohttp/client.py", line 504, in _request
    await resp.start(conn)
  File "/home/gerard/.local/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 847, in start
    message, payload = await self._protocol.read()  # type: ignore  # noqa
  File "/home/gerard/.local/lib/python3.6/site-packages/aiohttp/streams.py", line 591, in read
    await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError
ERROR:asyncio:Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f797dd7e4e0>
Edited Nov 03, 2020 by Moul
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
0.9.0
Milestone
0.9.0
Assign milestone
Time tracking
None
Due date
None
Reference: clients/python/silkaj#260