blacksky-algorithms / rsky

An AT Protocol Implementation built in Rust.
https://blackskyweb.xyz
Apache License 2.0
159 stars 8 forks source link

PDS: Receiving errors from relay: (reading repoCommit event: expected byte array) #13

Closed rudyfraser closed 1 month ago

rudyfraser commented 2 months ago

Getting the following error when running PDS on https://localho.st with relay running locally at http://localhost:2047 (connection to "localho.st" failed: reading repoCommit event: expected byte array)

  1. clone blacksky-algorithms/rsky and run necessary migrations (have postgres running)
  2. clone bluesky-social/indigo
  3. install and run bgs with --crawl-insecure-ws
  4. create local .env file setting PDS_CRAWLERS=http://localhost:2470
  5. run rsky-pds and generate invite code
  6. with bgs running, use httpie to request crawl (http post :2470/admin/pds/requestCrawl Authorization:"Bearer localdev" hostname=localho.st)
  7. sign up for an account on bsky.app using pds at https://localho.st
  8. try to create a post
  9. view bgs logs and see error (connection to "localho.st" failed: reading repoCommit event: expected byte array)

I suspect the error stems from parsing "blocks" from commit events (here)

It probably has something to do with the CAR formatting of blocks