Identify the bulk data.nemar.org client and fix the nm000254 503s

Open
#2,636 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
aws, typescript

Research direction

Use the Workers Observability query builder to group recent invocations by ASN, colo, and user agent, then identify and quantify the bulk client. Investigate why HEAD requests for nm000254 v1.0.0 objects return 403 and cause 503s. Record the client and request share, the traffic decision, and either the fix or a follow-up issue for the 503s.

Written by the indexing model from the issue text.

Description

Part of #2633.

About 83% of nemar-api invocations in the last 24 hours (830k of 995k, 2026-12-02) arrive through Cloudflare's Chicago colo; the sampled requests walk every file of many datasets in turn (nm000111, nm000254, nm000279, on004120, ...). A sampled request: ASN 63150 "BAGE CLOUD LLC" (a proxy network), a browser user agent (Edge 158 on Windows) with accept-language: zh-CN, Referer set to the directory listing, and Range requests that split each file, as a multi-connection download manager does. The Nov 24 spike (53.5M requests on data.nemar.org in one day) cost about $80.

Also in the same window: about 8k errors an hour are 503s on nm000254 v1.0.0, logged as [data] annex delivery unavailable ... plain object HEAD returned HTTP 403 (for example sub-15/ses-01/eeg/sub-15_ses-01_task-dme_run-02_recording-respiratory_physio.tsv.gz). Each one is a failed download for whoever asks.

To do: group recent invocations by ASN, colo and user agent (Workers Observability query builder) to size the client; decide whether to steer it (the manifest.json bulk route links straight to S3 and bypasses the Worker), rate-limit it with a WAF rule on data.nemar.org, or leave it; and find why nm000254's objects answer 403 to HEAD.

Acceptance: the client and its share of requests are named in this issue with the decision taken; the nm000254 503s are explained and fixed or filed.

Dominant language
TypeScript
Stars
0
Forks
1
Avg merge
4h 48m
Merged PRs (30d)
468

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nemarOrg/nemar-cli

All issues in nemarOrg/nemar-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.