EBernhardson added a comment.
Some quick testing makes this look successful. Using curl to perform a POST
no longer 500's:
curl 'https://commons-query.wikimedia.org/sparql' \
-XPOST \
-H 'cookie: wcqsOauth=<secret>; wcqsSession=<secret>' \
-d
'query=prefix%20schema:%20%3Chttp://schema.org/%3E%20SELECT%20*%20WHERE%20%7B%3Chttp://www.wikidata.org%3E%20schema:dateModified%20?y%7D&nocache=27701073'
Additionally the underlying issue, that the JWT would expire also looks
resolved. Tested by opening the UI in a browser tab along with the network
inspector and leaving it for many hours. The UI performs a regular request
every 10 minutes to ask about update lag, every couple hours those requests
return a 307 response that includes a new JWT and the requests continue to work.
Looks to be working as expected. If i leave a browser window along with the
network inspector open for a few hours can see it getting a 307 every couple
hours with a refreshed JWT. Additionally manually POST'ing a
request
TASK DETAIL
https://phabricator.wikimedia.org/T306899
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: EBernhardson
Cc: HenkvD, MPhamWMF, DAbad, RKemper, EBernhardson, FRomeo_WMF,
GFontenelle_WMF, Gehel, Fuzheado, Aklapper, Dominicbm, Jersione, Hellket777,
LisafBia6531, Astuthiodit_1, AWesterinen, 786, Biggs657, karapayneWMDE,
Invadibot, maantietaja, Juan90264, Alter-paule, Beast1978, CBogen, ItamarWMDE,
Un1tY, Akuckartz, Hook696, Kent7301, joker88john, CucyNoiD, Nandana,
Namenlos314, Gaboe420, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan,
Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, merbst,
LawExplorer, Lewizho99, Maathavan, _jensen, rosalieper, Neuronton, Scott_WUaS,
Jonas, Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles,
Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]