-
Notifications
You must be signed in to change notification settings - Fork 26
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
text/plain treated as json #223
Comments
I am able to work-around the issue using the |
Is a warning message that Camouflage throws since it expects responses to be json by default, however it doesn't affect your responses and the message can be ignored. New lines being stripped out is a bug since we split the mock file contents with new line. camouflage/src/parser/HttpParser.ts Line 142 in 98dcc2c
and then join them without the new line camouflage/src/parser/HttpParser.ts Line 172 in 98dcc2c
which should not be the case. I will provide a fix. |
🎉 This issue has been resolved in version 0.14.0 🎉 The release is available on: |
…1195) * Adopt camouflage-server 0.15, previously we've been locked on v0.9 due to outstanding bugs introduced in versions 0.10 - 0.14.1 : - testinggospels/camouflage#203 - testinggospels/camouflage#223 - testinggospels/camouflage#227 - testinggospels/camouflage#229 * Includes unrelated fix to running CI locally * Restrict mlflow to versions prior to 2.7 closes #967 Fixes #1192 ## By Submitting this PR I confirm: - I am familiar with the [Contributing Guidelines](https://github.com/nv-morpheus/Morpheus/blob/main/docs/source/developer_guide/contributing.md). - When the PR is ready for review, new or existing tests cover these changes. - When the PR is ready for review, the documentation is up to date with these changes. Authors: - David Gardner (https://github.com/dagardner-nv) Approvers: - Christopher Harris (https://github.com/cwharris) URL: #1195
Describe the bug
Setting
Content-Type: text/plain
causes the response to be treated as if it were JSON.To Reproduce
Steps to reproduce the behavior:
GET.mock:
POST.mock
Camouflage then logs:
Expected behavior
Camouflage shouldn't attempt to parse output as JSON when content-type is
text/plain
.New line characters should not be stripped from output.
Screenshots
n/a
Desktop (please complete the following information):
Additional context
camouflage.log
The text was updated successfully, but these errors were encountered: