HTTP 400 error "Bad geojson - unknown type ExternalData" for Maps from Wikidata query; nothing displayed
Open, NormalPublic

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptWed, Nov 14, 11:35 AM
Aklapper renamed this task from Feature broken in Maps. Maps from Wikidata query is broken. to HTTP 400 error "Bad geojson - unknown type ExternalData" for Maps from Wikidata query; nothing displayed.Wed, Nov 14, 12:42 PM
Aklapper triaged this task as Unbreak Now! priority.
Restricted Application added subscribers: Liuxinyu970226, TerraCodes. · View Herald TranscriptWed, Nov 14, 12:42 PM

WDQS is now sending an unexpected header, from this example is possible to extract this error.

It happens because geoshape service doesn't expect the header application/sparql-results+json;charset=utf-8. There is a new PR in progress but needs more tests to make sure the changes works properly on the jessie instances since we have some work related strictly to the stretch migration.

Looks like new jetty adds charset to the header but geoshapes expects exactly application/sparql-results+json. I'd probably replace exact match with startsWith or something like that.

Change 473832 had a related patch set uploaded (by Mholloway; owner: Mholloway):
[maps/kartotherian/deploy@master] Fix: Loosen WDQS content-type header check

https://gerrit.wikimedia.org/r/473832

Change 473832 merged by jenkins-bot:
[maps/kartotherian/deploy@master] Fix: Loosen WDQS content-type header check

https://gerrit.wikimedia.org/r/473832

Mentioned in SAL (#wikimedia-operations) [2018-11-15T20:11:19Z] <mholloway-shell@deploy1001> Started deploy [kartotherian/deploy@48a1e83]: Fix: Loosen WDQS content-type header check to unbreak maps (T209471)

Mentioned in SAL (#wikimedia-operations) [2018-11-15T20:15:45Z] <mholloway-shell@deploy1001> Finished deploy [kartotherian/deploy@48a1e83]: Fix: Loosen WDQS content-type header check to unbreak maps (T209471) (duration: 04m 26s)

Mentioned in SAL (#wikimedia-operations) [2018-11-15T20:18:11Z] <mholloway-shell@deploy1001> Started deploy [kartotherian/deploy@UNKNOWN]: Fix: Loosen WDQS content-type header check to unbreak maps (T209471)

Mentioned in SAL (#wikimedia-operations) [2018-11-15T20:22:06Z] <mholloway-shell@deploy1001> Finished deploy [kartotherian/deploy@UNKNOWN]: Fix: Loosen WDQS content-type header check to unbreak maps (T209471) (duration: 03m 55s)

Mholloway lowered the priority of this task from Unbreak Now! to High.Thu, Nov 15, 8:25 PM
Mholloway added a subscriber: Mholloway.

Deployed a temporary fix and the examples above are now working. Downgrading the priority from UBN accordingly. I'll leave the ticket open until this has been fixed properly in kartotherian/geoshapes.

Naveenpf added a comment.EditedFri, Nov 16, 6:12 PM

Thank you so much WMF team !!! Presenting Wikimedia Maps tomorrow in Bangalore for SOTM Asia
http://stateofthemap.asia

Thank you so much WMF team !!! Presenting Wikimedia Maps tomorrow in Bangalore for SOTM Asia
http://stateofthemap.asia

Awesome! Best of luck presenting!

MSantos lowered the priority of this task from High to Normal.Tue, Nov 20, 4:23 PM