mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Method 'get_Category' in type 'WireMock.Transformers.Handlebars.FileHelpers' #666
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jucamo8311 on GitHub (Jan 20, 2025).
Originally assigned to: @StefH on GitHub.
Describe the bug
I have a custom console application using WireMock.Net and WireMock.Net.StandAlone on Windows with .net core 8.0,
Update the wiremock assemblies from 1.5.58 to 1.6.11 (also update the dependencies) .
Now when a call a service from postman with a mapping config file with
"UseTransformerForBodyAsFile": true,
"UseTransformer": true,
The answer that I got is
{
"Status": "Method 'get_Category' in type 'WireMock.Transformers.Handlebars.FileHelpers' from assembly 'WireMock.Net, Version=1.6.11.0, Culture=neutral, PublicKeyToken=c8d65537854e1f03' does not have an implementation."
}
Expected behavior:
The response file with the transformed values (I use {{Random Type='Guid'}}) in the template file
Test to reproduce
Other related info
This worked with version 1.5.58, i didnt change the mapping file or the file template. Only update the wiremock assemblies.
@jucamo8311 commented on GitHub (Jan 20, 2025):
Ok , I did some digging. It looks like is not a problem with WireMock.Net or WireMock.Net.StandAlone.
Because I did a rollback to 1.5.58 version an still get the same error.
It works again only until I rollback the Handlebars.Net.Helpers.* libraries from 2.4.8 to 2.4.3
@StefH commented on GitHub (Jan 20, 2025):
I think that I did create a breaking change in Handlebars.net.helpers package.
Probably when I use the latest in WireMock and fix a compile error it will be ok.
@StefH commented on GitHub (Jan 21, 2025):
https://github.com/WireMock-Net/WireMock.Net/pull/1241