Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 Internal Server Error on invalid SPARQL query #384

Open
1 of 5 tasks
namedgraph opened this issue Jun 27, 2023 · 1 comment
Open
1 of 5 tasks

500 Internal Server Error on invalid SPARQL query #384

namedgraph opened this issue Jun 27, 2023 · 1 comment
Assignees
Labels
bug Something isn't working waiting for release

Comments

@namedgraph
Copy link

Part of the endpoint? (leave empty if you don't know)

  • Backend (qendpoint-backend)
  • Store (qendpoint-backend)
  • Core (qendpoint-core)
  • Frontend (qendpoint-frontend)
  • Other

Description of the issue

Invalid SPARQL query syntax (e.g. missing prefixes) result in 500 Internal Server Error response.

Excepted behavior

I would expect a 400 Bad Request response since this is a client error, as per SPARQL 1.1 Protocol Failure Responses.

Obtained behavior

{"timestamp":"2023-06-27T07:46:06.784+00:00","status":500,"error":"Internal Server Error","path":"/api/endpoint/sparql"}

How to reproduce

Seems like executing any query with a missing prefix declaration.

Endpoint version

No response

Do I want to contribute to fix it?

None

Something else?

No response

@namedgraph namedgraph added the bug Something isn't working label Jun 27, 2023
@ate47 ate47 self-assigned this Jun 27, 2023
@sntcristian
Copy link

I encounter the same issue just by launching a simple query on the qendpoint-wikidata container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for release
Projects
None yet
Development

No branches or pull requests

3 participants