Skip to content

Commit 2ea4e96

Browse files
imsduSimon Dumas
andauthored
Handle 409 when creating namespace in Blazegraph (#5344)
Co-authored-by: Simon Dumas <simon.dumas@senscience.ai>
1 parent f328de7 commit 2ea4e96

File tree

1 file changed

+1
-0
lines changed
  • delta/plugins/blazegraph/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/blazegraph/client

1 file changed

+1
-0
lines changed

delta/plugins/blazegraph/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/blazegraph/client/BlazegraphClient.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ final class BlazegraphClient(client: Client[IO], endpoint: Uri, queryTimeout: Du
8787
val request = POST(endpoint / "namespace").withEntity(withNamespace.toString)
8888
client.status(request).flatMap {
8989
case Status.Created => IO.pure(true)
90+
case Status.Conflict => IO.pure(false)
9091
case Status.NotFound => IO.pure(false)
9192
case status => IO.raiseError(SparqlActionError(status, "create"))
9293
}

0 commit comments

Comments
 (0)