You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deploying an application using WireMock.NET to Azure with multiple instances, we've observed that the GUIDs generated by WireMock.NET differ between instances. This inconsistency leads to requests not matching the expected stub mappings, resulting in unexpected behavior such as 404 errors.
Expected behavior:
We expect WireMock.NET to generate consistent GUIDs for stub mappings across all instances, ensuring that requests are properly matched to the appropriate stub responses regardless of the instance handling the request.
Test to reproduce
Deploy an application using WireMock.NET to Azure with multiple instances.
Send requests to the deployed application.
Observe that the GUIDs generated by WireMock.NET differ between instances.
Notice that requests do not match the expected stub mappings, leading to 404 errors.
Other related info
We have session affinity enabled in the Azure App Service configuration to ensure that requests from the same client are consistently routed to the same instance.
The text was updated successfully, but these errors were encountered:
Note that each WireMock.Net instance saves the mappings in memory from that instance. And if a GUID is generated by WireMock.Net, it's just a random GUID.
However I'm not sure I understand why you have issues with GUIDs? Do you run WireMock.Net in proxy mode or in normal mode?
Because when adding stub-mappings via C# code, mapping file or admin interface, you can provide a guid. If the guid is not provided, a random guid is used.
Describe the bug
When deploying an application using WireMock.NET to Azure with multiple instances, we've observed that the GUIDs generated by WireMock.NET differ between instances. This inconsistency leads to requests not matching the expected stub mappings, resulting in unexpected behavior such as 404 errors.
Expected behavior:
We expect WireMock.NET to generate consistent GUIDs for stub mappings across all instances, ensuring that requests are properly matched to the appropriate stub responses regardless of the instance handling the request.
Test to reproduce
Other related info
We have session affinity enabled in the Azure App Service configuration to ensure that requests from the same client are consistently routed to the same instance.
The text was updated successfully, but these errors were encountered: