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

Wiremock plugin yaml cfg Unrecognized token 'plugin' #685

Open
castoglobant opened this issue Feb 24, 2025 · 0 comments
Open

Wiremock plugin yaml cfg Unrecognized token 'plugin' #685

castoglobant opened this issue Feb 24, 2025 · 0 comments

Comments

@castoglobant
Copy link

Hi everyone,

I'm trying to run the WireMock plugin and understand the tool, but I'm encountering issues with writing the configuration in YAML format for WireMock. I'm receiving the following error:

Caused by: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'plugin': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
imposter-1      |  at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 7]
It seems that the plugin only accepts JSON format for configuration and may be receiving YAML content as plain text.

I'm unsure if it's possible to pass the configuration as an object instead of file text content, or if there's a way to check whether the content is YAML or JSON before parsing. Could someone with more experience help resolve this issue? In the meantime, I'll continue learning.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant