Chicocvenancio added a comment.

  I've tested with and without the UserAgent, it sometimes works when 
defaulting to the SPARQLWrapper agent, but without looking at server logs and 
configuration I don't have much clue on why this is happening. Perhaps someone 
can investigate and tell us.
  
  What I do know is that your original code is not changing the agent used to 
make the query, it is making a request to `http://www.kb.nl` with the `My User 
Agent 1.0` and then making the query to WQS with the SPARQLWrapper agent.  I 
suggest you use the `agent="SOME_STRING_THAT_FOLLOWS_POLICY` approach.

TASK DETAIL
  https://phabricator.wikimedia.org/T230135

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Chicocvenancio
Cc: Lucas_Werkmeister_WMDE, Chicocvenancio, OlafJanssen, darthmon_wmde, 94rain, 
DannyS712, Nandana, Lahi, Gq86, R96340, GoranSMilovanovic, Allthingsgo, 
QZanden, EBjune, merbst, LawExplorer, Framawiki, _jensen, rosalieper, Jonas, 
Xmlizer, Jane023, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, Xqt, aude, 
Tobias1984, yuvipanda, Capt_Swing, Manybubbles, zhuyifei1999, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to