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

Engine cannot handle HTTP status code 204 #95

Open
tfruehwirth opened this issue May 15, 2024 · 0 comments
Open

Engine cannot handle HTTP status code 204 #95

tfruehwirth opened this issue May 15, 2024 · 0 comments

Comments

@tfruehwirth
Copy link

Describe the bug
The SEPA engine runs into an internal server error and reports this to the SEPA client (status code 500) if the SPARQL Endpoint responds with code 204. The reason for this is that the SPARQL11Protocol.java processes the responseEntity which is (rightfully) null for responses with responseCode 204.

To Reproduce
Steps to reproduce the behavior:

  1. Start GraphDB as a SPARQL Endpoint
  2. Start SEPA Engine
  3. Use the SEPA Python Client (SEPY) to send a SPARQL Update inserting data
  4. See the output of the client application

Expected behavior
No internal server error should be produced if the SPARQL endpoint responds with HTTP status code 204.

System information(please complete the following information):

  • OS: Ubuntu 22.04
  • Engine version: v0.14.3
  • SparqlEndpoint used: GraphDB 10.6.3

Additional context
Add any other context about the problem here.

I used the following endpoint.jpar config to connect to GraphDB as a SPARQL Endpoint:
{ "host": "localhost", "sparql11protocol": { "protocol": "http", "port": 7200, "query": { "path": "/repositories/my-dataset", "method": "POST", "format": "JSON" }, "update": { "path": "/repositories/my-dataset/statements", "method": "POST", "format": "JSON" } } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant