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?