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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

(pds): only plc updateHandle when operating on a did:plc identity #2259

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

malpercio-dev
Copy link

I recently embarked on a journey to adopt a did:web identity, following some really great prior art from https://github.com/L11R/bsky-did-web and #2100 (comment).

I created the did:web identity no problem, but then later I wanted to change my handle to malpercio.dev instead of malpercio.pds.malpercio.dev. Alas, when running either updateHandle or updateAccountHandle, I'd be met with:

2024/02/28 06:02PM 50 Request failed with status code 404 | pid=7 hostname=a8413112136c name=xrpc-server status=404 msg=error in xrpc method com.atproto.identity.updateHandle
After some debugging, I discovered that the source of the 404 was a call to plcClient.updateHandle, with error DID not registered: did:web:malpercio.dev.

In a local running copy of my PDS, I commented out the plcClient.updateHandle call, et voil脿, my handle was updated.

This is a rather naive fix to help others not fall into this same trap, fully recognizing that the broader onboarding process for did:web could be improved, this may make a future PDS admin's life a little easier in the short term. 馃檪

Link to a discussion in the AT Protocol PDS Admins for some additional context: https://discord.com/channels/1207024379549061120/1207050328063610923/1212912254836809798

@malpercio-dev malpercio-dev changed the title (pds): skip plc updateHandle when operating on a did:web identity (pds): only plc updateHandle when operating on a did:plc identity Mar 1, 2024
@goeo-
Copy link

goeo- commented Apr 16, 2024

would really appreciate if this was merged, i wanted to change my handle to avoid #2280 but it didn't work :(

@bnewbold bnewbold requested a review from dholms April 16, 2024 23:06
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

Successfully merging this pull request may close these issues.

None yet

2 participants