Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an API adapter that allows "bluesky-social/social-app" to use AppViewLite as its backend #1

Open
6 of 9 tasks
alnkesq opened this issue Jan 11, 2025 · 2 comments

Comments

@alnkesq
Copy link
Owner

alnkesq commented Jan 11, 2025

  • View thread
  • View post likers and reposters
  • Following and followers
  • Profile post list
  • Feeds
  • View post quotes
  • Embeds
  • Login support
  • Write support
@alnkesq
Copy link
Owner Author

alnkesq commented Jan 13, 2025

One commonly encountered issue while working on this feature is that of missing mandatory values in XRPC types.
The client will show an unhelpful message warning that the server might be out of date.

However it's possible to patch node_modules\@atproto\xrpc\dist\types.js to something like this to get more useful error messages:

class XRPCInvalidResponseError extends XRPCError {
    constructor(lexiconNsid, validationError, responseBody) {
         super(ResponseType.InvalidResponse, exports.ResponseTypeStrings[ResponseType.InvalidResponse],
+        'Validation error: ' + validationError?.message,
         undefined, { cause: validationError });

@alnkesq
Copy link
Owner Author

alnkesq commented Jan 14, 2025

The Replies and Media tab cannot be tested yet, since the typescript client hides such tabs to non logged in users (or it could be patched)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant