Diagnostics for atproto PDS hosts, DIDs, and handles: https://debug.hose.cam
15
fork

Configure Feed

Select the types of activity you want to include in your feed.

don't require version to be at _health

and take it from describeServer first if it's in there

phil 1e531a10 c2dd562c

+11 -10
+11 -10
index.html
··· 228 228 } 229 229 230 230 let query = window.SimpleQuery(pds); 231 + let version; 231 232 try { 232 233 this.description = await query('com.atproto.server.describeServer'); 234 + version = this.description.version; 233 235 } catch (e) { 234 236 if (window.isXrpcErr(e)) { 235 237 this.error = e.error; ··· 238 240 console.error(e); 239 241 } 240 242 } 241 - let health 242 - try { 243 - health = await query('_health'); 244 - this.version = health.version; 245 - } catch (e) { 246 - if (window.isXrpcErr(e)) { 247 - this.error = e.error; 248 - } else { 249 - this.error = 'Failed to reach (see console)'; 250 - console.error(e); 243 + // fall back on /xrpc/_health for version if it's not in describeServer 244 + if (!version) { 245 + try { 246 + const health = await query('_health'); 247 + version = health.version; 248 + } catch (e) { 249 + console.warn("could not get version from describeServer or _health"); 251 250 } 252 251 } 252 + this.version = version; 253 + 253 254 let accountsRes; 254 255 try { 255 256 accountsRes = await query('com.atproto.sync.listRepos', {