Sitelet https://github.com/wiremock/WireMock.Net/issues/1469
Skip to content

WireMock.Net doesn't play well with Aspire 13.4.0 #1469

Description

@roycornelissen

Describe the bug

Just upgraded our Aspire dependencies to 13.4.0 using the aspire update CLI tool. Now the orchestration will not start up anymore, no Docker container is started and the Aspire dashboard hangs and never appears.

I am not sure if this is a regression in Aspire, but it happens only with WireMock so decided to report it here.

The last lines in my trace level logs are:

trce: Aspire.Hosting.ApplicationModel.ResourceNotificationService[0]
      Version: 2 Resource aspire-dashboard/aspire-dashboard-udmuvwrf update published: ResourceType = Executable, CreationTimeStamp = (null), State = { Text = (null), Style = (null) }, IsHidden = True, HeathStatus = (null), ResourceReady = False, ExitCode = (null), Urls = { https = https://localhost:15888/login?t=2ea8a8a52597d71346920a6508164dec http = http://localhost:18888/login?t=2ea8a8a52597d71346920a6508164dec otlp-grpc = https://localhost:21888 }, EnvironmentVariables = {  }, Properties = {  }, HealthReports = {  }, Commands = {  }
info: Aspire.Hosting.ApplicationModel.WireMockServerResource[0]
      Checking Health status from WireMock.Net
dbug: Aspire.Hosting.Dcp.dcp.NetworkReconciler[0]
      Network created   {"ContainerNetwork": "/aspire-container-network", "Reconciliation": 2, "NetworkName": "aspire-session-network-gcuqfmyv-MyApi"}

We are using WireMock.Net in our orchestration as follows:

var wireMock = builder.AddWireMock("wiremock")
    .WithArgs("--verbose");

Expected behavior:

WireMock container should startup properly and Dashboard should appear.

Test to reproduce

  • 1 Make new Aspire orchestration using latest Aspire 13.4.0
  • 2 Add WireMock (using latest 2.8.0)
  • 3 Start AppHost

Fails to start.

Other related info

When I remove WireMock from the orchestration, all my other services are started properly... Papercut, Azure Storage emulator, Azure Service Bus emulator, et cetera. Only WireMock is blocking.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions