Repository navigation
v0.2.0
Errors now say what went wrong in a form programs can act on, and the worker is back in step with the current VGI extension.
ATTACH 'bluesky' (TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-bluesky@v0.2.0 vgi-bluesky');Coded errors
Every error carries vgi-rpc's error model — a canonical error_code, and where it helps an error_kind and typed error_details — so a client can tell a bad argument from a rate limit from an outage without parsing text:
| Error | Code | Details |
|---|---|---|
Unknown account (author_feed('medriscoll.bsky.social')) |
NOT_FOUND, kind bluesky.actor_not_found |
the actor, the "Did you mean 'medriscoll.com'?" suggestion, and a link to each matching profile |
| Malformed actor, post or feed reference | INVALID_ARGUMENT, kind bluesky.invalid_argument |
which argument |
| Bluesky rate limit | RESOURCE_EXHAUSTED |
how long to wait, when Bluesky says |
| Bluesky outage (5xx), Jetstream unreachable | UNAVAILABLE |
Error classes keep their Python bases, so existing except ValueError code still works.
Compatibility
The published VGI extension now speaks protocol 2.1.0, which the 0.1.0 worker (vgi-python 0.37) could not answer. 0.2.0 moves to vgi-python 0.43.1 and vgi-rpc 0.50.1.
Also since 0.1.0
- Unknown or malformed actors fail with a clear message and a suggestion instead of a raw API error.
- README recipes for an author's posts and for listening to the firehose for a topic, including the two DuckDB settings a live stream needs:
SET streaming_buffer_size = '1KB'andSET enable_caching_operators = false.