Skip to content

Commit

Permalink
Change endpoint used for discovery. See restatedev/restate#572 (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper authored Jul 10, 2023
1 parent 4d1540b commit 63d1781
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,14 @@ private constructor(
val req =
HttpRequest.newBuilder(
URI.create(
"http://localhost:${getContainerPort(RESTATE_RUNTIME, RUNTIME_META_ENDPOINT_PORT)}/endpoint/discover"))
"http://localhost:${getContainerPort(RESTATE_RUNTIME, RUNTIME_META_ENDPOINT_PORT)}/endpoints"))
.POST(BodyPublishers.ofString(body))
.headers("Content-Type", "application/json")
.build()

val response = client.send(req, BodyHandlers.ofString())

if (response.statusCode() != 200) {
if (response.statusCode() != 201) {
fail(
"Error when discovering endpoint $url, " +
"got status code ${response.statusCode()} with body: ${response.body()}")
Expand Down

0 comments on commit 63d1781

Please sign in to comment.