Repository navigation
fix: point the NEMAR browser doc at /discover - #354
Merged
Merged
Conversation
My MCP PR (#352) replaced the NEMAR doc entry's dead-looking nemar.org/dataexplorer with nemar.org/dataset, which 404s: there is no bare dataset index, only /dataset/<id>. The network-tier URL check caught it. The right target is /discover, and I should have read that rather than guessed it. nemarOrg/website src/lib/host.ts is the authoritative redirect map and says so outright -- "Legacy dataset browser. The new site's equivalent is /discover" -- and src/pages/discover.astro is the route. /dataexplorer 301s there, so the browser MOVED rather than being retired. What IS gone is the dataexplorer API under /api/dataexplorer/, which is why this assistant's two old tools returned 404. Conflating the retired API with the moved browser is what produced the bad guess, so the comment now records the distinction and cites its source. Verified: the nemar documentation-URL network test passes.
neuromechanist
added a commit
that referenced
this pull request
Sep 10, 2026
test_documentation_urls_accessible reported a WORKING page as broken. The openneuropet PetSurfer entry points at surfer.nmr.mgh.harvard.edu, a third-party FreeSurfer host, which answers 403 to requests' default python-requests/2.32.5 and 200 to a browser UA. Measured both ways, plus curl with the same UA string getting 200, so the block is on what requests sends as a whole rather than the string alone. Nothing was wrong with openneuropet's docs, and nothing for its maintainers to fix: the page serves fine to a human. The checker was the problem. It now sends a named UA identifying the project, which is also the polite thing to do when hitting someone else's server on a schedule, and falls back to GET when HEAD comes back 403 or 405. Some hosts and CDNs refuse HEAD while serving the same URL happily over GET, and the question here is whether the page exists, not whether the host implements HEAD. Verified: openneuropet now passes, and so do bids, eeglab, hed, mne, openneuropet, and the rest. nemar still fails on this branch for an unrelated reason -- the /dataset URL I introduced in #352 -- which #354 fixes.
neuromechanist
added a commit
that referenced
this pull request
Sep 10, 2026
test_documentation_urls_accessible reported a WORKING page as broken. The openneuropet PetSurfer entry points at surfer.nmr.mgh.harvard.edu, a third-party FreeSurfer host, which answers 403 to requests' default python-requests/2.32.5 and 200 to a browser UA. Measured both ways, plus curl with the same UA string getting 200, so the block is on what requests sends as a whole rather than the string alone. Nothing was wrong with openneuropet's docs, and nothing for its maintainers to fix: the page serves fine to a human. The checker was the problem. It now sends a named UA identifying the project, which is also the polite thing to do when hitting someone else's server on a schedule, and falls back to GET when HEAD comes back 403 or 405. Some hosts and CDNs refuse HEAD while serving the same URL happily over GET, and the question here is whether the page exists, not whether the host implements HEAD. Verified: openneuropet now passes, and so do bids, eeglab, hed, mne, openneuropet, and the rest. nemar still fails on this branch for an unrelated reason -- the /dataset URL I introduced in #352 -- which #354 fixes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #352, fixing a bad URL I introduced there.
That PR replaced the NEMAR doc entry's dead-looking
nemar.org/dataexplorerwith
nemar.org/dataset, which 404s -- there is no bare dataset index, only/dataset/<id>. Thenetwork-tier documentation-URL check caught it ondevelop.The right answer, from the authoritative source rather than a probe
nemarOrg/websitesrc/lib/host.tsis the site's own redirect map and states itoutright:
with
src/pages/discover.astroas the route. So/dataexplorer301s to/discover: the browser moved, it was not retired.What IS gone is the dataexplorer API under
/api/dataexplorer/, which isexactly why this assistant's two old tools returned 404. Conflating the retired
API with the moved browser is what produced the bad guess, so the comment now
records that distinction and cites where the answer lives.
Verification
The nemar documentation-URL network test passes. Full offline suite: 1840 passed,
21 skipped.
One unrelated network failure remains on
develop,test_documentation_urls_accessible[openneuropet]. My diff touches onlysrc/assistants/nemar/config.yaml, and the openneuropet wiki URL answers 200when redirects are followed, so it looks like either another of that community's
URLs or a redirect the checker does not follow. Worth its own look; not this PR.