Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method 'get_Category' in type 'WireMock.Transformers.Handlebars.FileHelpers' #1240

Closed
jucamo8311 opened this issue Jan 20, 2025 · 3 comments
Closed
Assignees
Labels

Comments

@jucamo8311
Copy link

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

  • 1 Use a file as template with UseTransformerForBodyAsFile and UseTransformer set to true

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 jucamo8311 added the bug label Jan 20, 2025
@jucamo8311
Copy link
Author

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
Copy link
Collaborator

StefH commented 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
Copy link
Collaborator

StefH commented Jan 21, 2025

#1241

@StefH StefH closed this as completed Jan 21, 2025
@StefH StefH self-assigned this Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants