Page MenuHomePhabricator

Where are the SPARQL and QuickStatements endpoints when developing locally?
Closed, ResolvedPublic

Description

Moved from here (https://phabricator.wikimedia.org/T372599) per @roti_WMDE's request (thanks!).

Essentially, I've launched a local Wikibase on my Windows machine. It is running at the default host (https://wikibase.example.com/) per the instructions @roti_WMDE provided here: https://wikibase.example.com/.

Long story short, when I checked the SPARQL endpoint (https://wikibase.example.com/proxy/wdqs/bigdata/namespace/wdq/sparql) I would get the following:

Not Found
The requested URL was not found on this server.

Apache/2.4.59 (Debian) Server at wikibase.example.com Port 80

I then realized that the SPARQL endpoint may have been relocated as the hosts file was changed (re: https://phabricator.wikimedia.org/T372177). In .env the WDQS_FRONTEND_PUBLIC_HOST is set as the default wdqs-frontend.example.com. When visiting wdqs-frontend.example.com, I get DNS_PROBE_FINISHED_NXDOMAIN as the error in Chrome.

At this stage I'm just wondering, do I have to modify something to get access to the query service front-end or the SPARQL endpoint? Would a similar change be necessary for QuickStatements? Thanks so much!

Event Timeline

Dear @Superraptor123,

Thanks a lot for reporting this. The SPARQL endpoint is indeed available on the WDQS_FRONTEND_PUBLIC_HOST, so this is wdqs-frontend.example.com by default.

I just verified, that I get a result on https://wdqs-frontend.example.com/proxy/wdqs/bigdata/namespace/wdq/sparql using deploy-3.

For this to work, your machine needs to know wdqs-frontend.example.com. For local testing, you need to add this domain name to /etc/hosts (or the Windows equivalent) and make it point to 127.0.0.1.

Hope that helps,
Best,
Robert

Confirmed! This works when adding to C:\Windows\System32\drivers\etc the following line: 127.0.0.1 wdqs-frontend.example.com. It does have to be opened as an administrator to edit, so anyone else who comes across this thread, see here (https://phabricator.wikimedia.org/T372177) for details. Thanks so much @roti_WMDE ! I'll close as solved.