Should an agent XRPC call be able to getRecord
for an account on another PDS host?
#3418
Unanswered
whatjakecodes
asked this question in
How to do it?
Replies: 1 comment 2 replies
-
I'm sorry if you expect Bluesky members to answer the design idea, but I'll write it as a reference opinion.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context
I have two Blue Sky accounts, let's say Account1 and Account2, to which I am creating custom lexicon records. The records link to each other (for an atproto guild/invite-to-group system).
For Account2, which owns a record with an at-uri field pointing to a record on Account1, the oauth client (via @atproto/oauth-client-node)
agent.com.atproto.repo.getRecord
call to fetch Account1's record fails. If I create an agent from Account1's oauth session, and callgetRecord
with the exact same repo/collection/rkey, the call succeeds.I found the main difference in the XRPC calls is the hostname.
Account2's agent XRPC calls dapperling:
https://dapperling.us-west.host.bsky.network/xrpc/com.atproto.repo.getRecord?[...]
Account1's agent XRPC calls button:
https://button.us-west.host.bsky.network/xrpc/com.atproto.repo.getRecord?[...]
So it seems Account1 and its data is on button, while Account2 is on dapperling.
It looks like the two accounts are using two different BlueSky PDS hosts, button and dapperling. I want a way to get records from Account1's PDS when my client is logged in as Account2 on another PDS.
Main questions
agent.com.atproto.repo.getRecord
when I need data from different accounts?Here is some sample code illustrating the issue:
Beta Was this translation helpful? Give feedback.
All reactions