Title: well-known-did-nostr: root-path WebID (/#me) fails profile lookup · Issue #451 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: well-known-did-nostr: root-path WebID (/#me) fails profile lookup · Issue #451 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: well-known-did-nostr: root-path WebID (/#me) fails profile lookup · Issue #451 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Bug On startup, the DID:nostr well-known indexer logs repeated warnings for accounts whose WebID uses a root path: well-known-did-nostr: skipping account 34b6a398-... (profile=(multiple candidates)): NO_CANDIDATE_MATCHED no candidate pro...
Open Graph Description: Bug On startup, the DID:nostr well-known indexer logs repeated warnings for accounts whose WebID uses a root path: well-known-did-nostr: skipping account 34b6a398-... (profile=(multiple candidates)...
X Description: Bug On startup, the DID:nostr well-known indexer logs repeated warnings for accounts whose WebID uses a root path: well-known-did-nostr: skipping account 34b6a398-... (profile=(multiple candidates)...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/451
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"well-known-did-nostr: root-path WebID (/#me) fails profile lookup","articleBody":"## Bug\n\nOn startup, the DID:nostr well-known indexer logs repeated warnings for accounts whose WebID uses a root path:\n\n```\nwell-known-did-nostr: skipping account 34b6a398-... (profile=(multiple candidates)):\nNO_CANDIDATE_MATCHED no candidate profile matched https://melvin.solid.social/#me —\ntried: /home/ubuntu/solid-server/data: not-a-regular-file |\n /home/ubuntu/solid-server/data/melvin: not-a-regular-file\n```\n\n## Cause\n\nThe `melvin` account has WebID `https://melvin.solid.social/#me` (pathname `/`), while the profile card lives at `data/melvin/profile/card.jsonld`.\n\nIn `profilePathCandidates()`, the URL pathname `/` yields an empty `pathnameRel`, so:\n- Path-mode candidate: resolves to `\u003cdataRoot>` itself → directory, not a file\n- Subdomain candidate: resolves to `\u003cdataRoot>/melvin` → also a directory\n\nThe function never probes the conventional profile location at `profile/card.jsonld`.\n\nOther accounts with WebID `https://xxx.solid.social/profile/card.jsonld#me` work correctly because the pathname resolves to the actual file.\n\n## Possible fixes\n\n1. **Fix the WebID at the source** — when this account was created (possibly before the current registration flow), the WebID was set to `/#me` instead of `/profile/card.jsonld#me`. Could be fixed by updating the account record in `_webid_index.json`.\n\n2. **Fallback in `profilePathCandidates`** — when the pathname is `/` (root), additionally probe conventional profile locations: `profile/card.jsonld`, `profile/card`, `profile/card.ttl`.\n\n3. **Migration script** — scan accounts for root-path WebIDs and update them to the canonical form.\n\n## Environment\n\n- JSS v0.0.192\n- Subdomain mode enabled, baseDomain: `solid.social`\n- Account `melvin` WebID: `https://melvin.solid.social/#me`\n- Profile file exists at: `data/melvin/profile/card.jsonld`","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-14T20:06:29Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/451"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c2b866b4-835d-a292-7a20-68b8e4ffb8d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE94:3C59B5:8247C:AA467:6B0393A9 |
| html-safe-nonce | 9dc1ddd95c6781f96168852ccd1736c263975005fa39e56aef4ad4045a29e3e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTk0OjNDNTlCNTo4MjQ3QzpBQTQ2Nzo2QjAzOTNBOSIsInZpc2l0b3JfaWQiOiI2MzYwMDQyNDkzNDU5MDEwNDczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 61665edca23ac5fb583db2478bd495711d9b1b7908629d6f9c00bbc8101c8987 |
| hovercard-subject-tag | issue:4448913900 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/451/issue_layout |
| twitter:image | https://opengraph.githubassets.com/55979493d1e413fe42dd2c09b45715d8c2721b2ecfc81afa6b824df8491520ed/JavaScriptSolidServer/JavaScriptSolidServer/issues/451 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/55979493d1e413fe42dd2c09b45715d8c2721b2ecfc81afa6b824df8491520ed/JavaScriptSolidServer/JavaScriptSolidServer/issues/451 |
| og:image:alt | Bug On startup, the DID:nostr well-known indexer logs repeated warnings for accounts whose WebID uses a root path: well-known-did-nostr: skipping account 34b6a398-... (profile=(multiple candidates)... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width