atproto explorer pdsls.dev
atproto tool

If the #atproto_pds serviceEndpoint is invalid, cannot examine the DID details #18

closed
opened by boscolo.co

This may be a corner case that isn't worth your time, but since i am using pdsls to examine DIDs during development I thought I'd report it, maybe others do the same.

Created a DID with an invalid #atproto_pds serviceEndpoint, resulting in pdsls just showing Error: Failed to fetch With no ability to see the DID details.

I wrapped the call describeRepo in a try/catch to work around this locally.

diff --git a/src/views/repo.tsx b/src/views/repo.tsx
index 7f5ca5c..3ba9fd1 100644
--- a/src/views/repo.tsx
+++ b/src/views/repo.tsx
@@ -140,6 +140,7 @@ export const RepoView = () => {
     }
 
     rpc = new Client({ handler: new CredentialManager({ service: pds }) });
+    try {
       const res = await rpc.get("com.atproto.repo.describeRepo", {
         params: { repo: did as ActorIdentifier },
       });
@@ -171,6 +172,9 @@ export const RepoView = () => {
       }
 
     return res.data;
+  } catch {
+    return { };
+  }

can you give me the DID so i can test this?

did:plc:coprrg3sngmkrnnb3avyhw5p

applied the fix

โค๏ธ

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:wtk7wq3y3i64z3umv44eutuj/sh.tangled.repo.issue/3m7avtkyyoc22