Skip to content

fix: point the NEMAR browser doc at /discover - #354

Merged
neuromechanist merged 1 commit into
developfrom
fix/nemar-discover-url
Sep 10, 2026
Merged

neuromechanist merged 1 commit into
developfrom
fix/nemar-discover-url

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Follow-up to #352, fixing a bad URL I introduced there.

That PR 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 documentation-URL check caught it on
develop.

The right answer, from the authoritative source rather than a probe

nemarOrg/website src/lib/host.ts is the site's own redirect map and states it
outright:

/** Legacy dataset browser. The new site's equivalent is `/discover`. */
const LEGACY_EXPLORER_PATH = "/dataexplorer";

with src/pages/discover.astro as the route. So /dataexplorer 301s to
/discover: the browser moved, it was not retired.

What IS gone is the dataexplorer API under /api/dataexplorer/, which is
exactly 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 only
src/assistants/nemar/config.yaml, and the openneuropet wiki URL answers 200
when 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.

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
neuromechanist merged commit bb83388 into develop Sep 10, 2026
5 of 7 checks passed
@neuromechanist
neuromechanist deleted the fix/nemar-discover-url branch September 10, 2026 05:54
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant