Skip to content

Wikidata endpoint blocks requests from grlk #551

@ecow

Description

@ecow

Hello,

I am using grlc to run queries against the endpoint
https://query.wikidata.org/sparql

Recently, it stopped working and I now receive the following message from Wikidata:

"Please set a user-agent and respect our robot policy https://w.wiki/4wJS. See also https://phabricator.wikimedia.org/T400119."

The HTTP status code returned is 200, but no results are provided.

From some tests, it appears that adding a User-Agent header (with any value) makes the request work correctly.

Is there an option in grlc to set or customize the User-Agent header in grlk requests?

For example, the following query currently does not work:

https://grlc.io/api-gitlab/mopso/reconciler#/URI%20discovery/get_country

Thanks in advance for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions