Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

advanced.findById returns null without erroring when requesting root feed #115

Open
Powersource opened this issue Feb 10, 2023 · 2 comments

Comments

@Powersource
Copy link
Collaborator

ssb-meta-feeds 0.38.1

I've got some code that looks like

                  console.log('v1Feed', v1Feed)

                  ssb.metafeeds.advanced.findById(
                    v1Feed.parent,
                    (err, rootFeed) => {
                      // prettier-ignore
                      if (err) return cb(clarify(err, "couldn't find root feed from v1 feed"))

                      console.log('supposed root feed', rootFeed)

that logs

v1Feed FeedDetails {
      id: 'ssb:feed/bendybutt-v1/QWvVrFUaIFGt_li2xwYdK5N4FKZPWUiWJlUnffYqnh4=',
      parent: 'ssb:feed/bendybutt-v1/R7oVP6uSBqSmyC-iQxX67S9Zl2498yxJk4NarqMaBtI=',
      purpose: 'v1',
      feedFormat: 'bendybutt-v1',
      seed: <Buffer 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a1 ce>,
      keys: {
        curve: 'ed25519',
        public: 'QWvVrFUaIFGt/li2xwYdK5N4FKZPWUiWJlUnffYqnh4=.ed25519',
        private: '3+Tv77+VKmuEXkYBuuxIj+SesLeqlv0sDdPYLtiBT49Ba9WsVRogUa3+WLbHBh0rk3gUpk9ZSJYmVSd99iqeHg==.ed25519',
        id: 'ssb:feed/bendybutt-v1/QWvVrFUaIFGt_li2xwYdK5N4FKZPWUiWJlUnffYqnh4='
      },
      recps: null,
      metadata: {},
      tombstoned: false,
      tombstoneReason: null
    }
    supposed root feed null
@Powersource
Copy link
Collaborator Author

spookiness maybe related to the bugs you've been poking at @arj03 ?

@Powersource
Copy link
Collaborator Author

Code here ssbc/ssb-tribes2#58

@Powersource Powersource changed the title advanced.findById can return null without erroring advanced.findById returns null without erroring when requesting root feed Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant