Skip to content

TS SDK (atproto/sync): correct way to handle "deleted blob" type errors? #3044

Discussion options

You must be logged in to vote

I filtered these out in my implementation using something like this:


  onError: (err) => {
    if (
      err instanceof FirehoseParseError &&
      err.event.ops?.some((a) => a.action === "delete")
    ) {
      return;
    }
    console.error(err);
  },

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@bleonard252
Comment options

Answer selected by bleonard252
Comment options

You must be logged in to vote
2 replies
@dholms
Comment options

@DavidBuchanan314
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants