ssbc / ssb-meta-feeds

10 stars 0 forks source link

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

Open Powersource opened 1 year ago

Powersource commented 1 year ago

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 commented 1 year ago

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

Powersource commented 1 year ago

Code here https://github.com/ssbc/ssb-tribes2/pull/58