PhiloBiblon / philobiblon-ui

PhiloBiblon UI
Creative Commons Attribution Share Alike 4.0 International
0 stars 0 forks source link

Error when using "Simple search" field #7

Closed jmformenti closed 9 months ago

jmformenti commented 10 months ago

The "Simple search" stopped to work using the UCB wikibase server. The response is a 431 HTTP error and in the WDQS service logs we can see:

WARN  org.eclipse.jetty.http.HttpParser - Header is too large 8193>8192

Actually the URL for this queries is too long, so apparently the fix is use a POST method instead the current GET method in: https://github.com/PhiloBiblon/philobiblon-ui/blob/master/frontend/service/wikibase.service.js#L235

How to use POST method related documentation: https://github.com/maxlath/wikibase-sdk/blob/main/docs/sparql_query.md#post-request

SPARQL enpoints docs: https://www.w3.org/TR/sparql11-protocol/