Skip to content

fix(distribution-probe): send a descriptive default User-Agent - #1122

Merged
ddeboer merged 1 commit into
mainfrom
fix/probe-default-user-agent
Nov 25, 2026
Merged

ddeboer merged 1 commit into
mainfrom
fix/probe-default-user-agent

Conversation

@ddeboer

@ddeboer ddeboer commented Nov 25, 2026

Copy link
Copy Markdown
Member

The probe sent no User-Agent, so Node’s fetch sent node. Some hosts refuse that with a 403, so a working distribution was reported as AuthRequired. In the Dataset Register, 30 of the 83 distributions currently marked AuthRequired are on Zenodo (29) and Wikidata’s query service (1). Both return 200 to the same request with a descriptive User-Agent, per Wikimedia’s User-Agent policy.

The probe now sends lde-distribution-probe (+https://github.com/ldelements/lde) on both the SPARQL and the data-dump path. A User-Agent passed in headers still takes precedence, so a consumer can name itself.

- Identify probe requests as lde-distribution-probe with a project URL instead of Node’s
  default `node`, which Zenodo and Wikidata refuse with a 403
- Keep a caller-supplied User-Agent in headers taking precedence
@ddeboer
ddeboer merged commit 51016f6 into main Nov 25, 2026
4 checks passed
@ddeboer
ddeboer deleted the fix/probe-default-user-agent branch November 25, 2026 18:04
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