Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
samizdat
samizdat
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 32
    • Issues 32
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Michał "rysiek" Woźniak
  • samizdatsamizdat
  • Issues
  • #55

Closed
Open
Opened Sep 08, 2020 by Michał "rysiek" Woźniak@rysiek🔒Maintainer

CLI: Gun user deletion does not work

Perhaps library versions need bumping.

user@personal:~/Projects/samizdat/samizdat-cli$ node . --debug gun-user-delete test test
Hello wonderful person! :) Thanks for using GUN, feel free to ask for help on https://gitter.im/amark/gun and ask StackOverflow questions tagged with 'gun'!
DEBUG :: setup_gun(): stub!
DEBUG :: setup_gun(): stub!
DEBUG :: pre-setup_gun
DEBUG :: setup_gun(): stub!
DEBUG :: post-setup_gun
DEBUG :: pre-promise; username: test
user.delete() IS DEPRECATED AND WILL BE MOVED TO A MODULE!!!
NO! Account must match! { '~WA925dtc3bnbsyNu8E4ujiBMOywcrO05iQE2MEABcF4.8wwDh6OYteDLs0TdPHAUR0rAMDR2_ykzYBgPnoAhVOM':
   { _:
      { '#':
         '~WA925dtc3bnbsyNu8E4ujiBMOywcrO05iQE2MEABcF4.8wwDh6OYteDLs0TdPHAUR0rAMDR2_ykzYBgPnoAhVOM',
        '>': [Object] },
     pub: null } }
User 'test' successfully deleted.

Waiting for user deletion to propagate through the Gun network...
TypeError: Cannot read property 'm' of null
    at Object.SEA.verify.SEA.verify (/home/user/Projects/samizdat/samizdat-cli/node_modules/gun/sea.js:443:33)
(node:23393) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'm' of null
    at Object.SEA.verify.SEA.verify (/home/user/Projects/samizdat/samizdat-cli/node_modules/gun/sea.js:443:33)
(node:23393) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:23393) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
DEBUG :: +-- verifying user deletion propagated into the Gun network
DEBUG :: starting the confirmations-do-not-work timeout...
DEBUG ::     +-- received data, user still exists
DEBUG ::         pubkey: WA925dtc3bnbsyNu8E4ujiBMOywcrO05iQE2MEABcF4.8wwDh6OYteDLs0TdPHAUR0rAMDR2_ykzYBgPnoAhVOM
{ err: 'Error: No ACK received yet.', lack: true }
{ err: 'Error: No ACK received yet.', lack: true }
DEBUG :: confirmations-do-not-work timeout fired, exiting cleanly...
user@personal:~/Projects/samizdat/samizdat-cli$ node . --debug gun-user-pubkey test
Hello wonderful person! :) Thanks for using GUN, feel free to ask for help on https://gitter.im/amark/gun and ask StackOverflow questions tagged with 'gun'!
DEBUG :: gun_user_pubkey()
DEBUG :: pre-setup_gun
DEBUG :: setup_gun(): stub!
DEBUG :: post-setup_gun
DEBUG :: pre-promise; username: test
WA925dtc3bnbsyNu8E4ujiBMOywcrO05iQE2MEABcF4.8wwDh6OYteDLs0TdPHAUR0rAMDR2_ykzYBgPnoAhVOM
user@personal:~/Projects/samizdat/samizdat-cli$ node . --debug gun-user-pubkey test
Hello wonderful person! :) Thanks for using GUN, feel free to ask for help on https://gitter.im/amark/gun and ask StackOverflow questions tagged with 'gun'!
DEBUG :: gun_user_pubkey()
DEBUG :: pre-setup_gun
DEBUG :: setup_gun(): stub!
DEBUG :: post-setup_gun
DEBUG :: pre-promise; username: test
WA925dtc3bnbsyNu8E4ujiBMOywcrO05iQE2MEABcF4.8wwDh6OYteDLs0TdPHAUR0rAMDR2_ykzYBgPnoAhVOM
Assignee
Assign to
Beta
Milestone
Beta (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: rysiek/samizdat#55