debugging journal

READING ORDER: top down!!!


%at=2024-11-15T01:41:24.349Z

current issue, relay errors on new post

though the posts do appear on frontend after a reload, but it seems it's shelling out to pds on getProfileFeed?

relay:


2024-11-14T22:40:58.161-0300    DEBUG   bgs     bgs/fedmgr.go:539       got remote repo event   {"pdsHost": "pds.gsky.ln4.net", "repo": "did:plc:dovi3rnfyclbl4qlma4s4nnb", "seq": 21}
2024-11-14T22:40:58.161-0300    DEBUG   bgs     bgs/bgs.go:821  bgs got repo append event       {"seq": 21, "pdsHost": "pds.gsky.ln4.net", "repo": "did:plc:dovi3rnfyclbl4qlma4s4nnb"}
2024-11-14T22:40:58.162-0300    DEBUG   repomgr repomgr/repomgr.go:536  HandleExternalUserEvent {"pds": 1, "uid": 3, "since": "3laxafaphds2n", "nrev": "3laxaocq2tk2n"}
2024-11-14T22:40:58.182-0300    DEBUG   indexer indexer/indexer.go:87   Handling Repo Event!    {"uid": 3}
2024-11-14T22:40:58.182-0300    DEBUG   indexer indexer/indexer.go:482  record create event     {"collection": "app.bsky.feed.post"}
2024-11-14T22:40:58.182-0300    ERROR   indexer indexer/indexer.go:99   failed to handle repo op        {"err": "handle recordCreate: unrecognized record type (creation): app.bsky.feed.post"}
2024-11-14T22:40:58.183-0300    DEBUG   indexer indexer/indexer.go:116  Sending event   {"did": "did:plc:dovi3rnfyclbl4qlma4s4nnb"}

its so weird that it'd fail on something that it knows in the switch case..

	switch rec := op.Record.(type) {
	case *bsky.FeedPost:
		if err := ix.handleRecordCreateFeedPost(ctx, evt.User, op.Rkey, *op.RecCid, rec); err != nil {
			return nil, err
		}

added some more debugging and it's nil wtf

2024-11-14T22:46:37.647-0300    ERROR   indexer indexer/indexer.go:100  failed to handle repo op        {"err": "handle recordCreate: unrecognized record type (creation): app.bsky.feed.post (actually of type %!s(<nil>), record=<nil>)"}

weird weird weird!!!


feedgen shenanigans part 0 #

%at=2024-11-15T01:49:44.621Z

the Following feed has my own test user's post, but errors out because of the unable to find feed error since i don't have a feedgen, i think that's going to be my focus next


feedgen shenanigans part 1 #

%at=2024-11-15T21:02:28.085Z

using jaz's golang feedgen https://github.com/ericvolp12/go-bsky-feed-generator

i was able to spin something up that could sorta reproduce the followers feed here https://github.com/lun-4/atproto/tree/luna.gluesky/luna/feedgen2

still wip, currently learning how to link it all together in the appview


feedgen shenanigans part 2 #

%at=2024-11-15T23:46:21.520Z

configured a feedgen. took a bit of a woozy because there's url validation on the responses given by appview, and since i didn't configure CDN url it generated an invalid feedgen url (undefined/img/avatar/did:plc..../). i had to create a small shim that extracts ImageProcessingServer into its own configurable process because it seems that the appview default logic (which is to spin its own image processing server) is just broken. maybe. idk. got something that works and looks more and more like real production bsky. i shouldn't have tested the feedgen with an avatar lmao

feedgen soruce code for Followers feed

notes for upstreaming: