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
Describe the bug
Using the file helper in 0.14.1 (works in 0.9) gives me this error:
Error: Can't set headers after they are sent.
at SendStream.headersAlreadySent
To Reproduce
Steps to reproduce the behavior:
Mock File Content
HTTP/1.1 200 OK
Content-Type: text/plain;charset=UTF-8
{{file path="../tests_data/filter_probs.jsonlines"}}
Folder Structure mocks/api/v1/data-lines/GET.mock
Error Stack Trace
2023-08-04 10:12:14 debug: Using new line as \n
2023-08-04 10:12:14 debug: Response Status set to 200
2023-08-04 10:12:14 debug: Headers Set Content-Type: text/plain;charset=UTF-8
2023-08-04 10:12:14 debug: HTTP GET /api/v1/data-lines :: Query Parameters: {} | Request Headers {"host":"localhost:8080","user-agent":"curl/8.1.2","accept":"*/*"} | Request Body {}
Error: Can't set headers after they are sent.
at SendStream.headersAlreadySent (/home/dagardner/work/conda/envs/morpheus/lib/node_modules/camouflage-server/node_modules/send/index.js:386:13)
at SendStream.send (/home/dagardner/work/conda/envs/morpheus/lib/node_modules/camouflage-server/node_modules/send/index.js:613:10)
at onstat (/home/dagardner/work/conda/envs/morpheus/lib/node_modules/camouflage-server/node_modules/send/index.js:725:10)
at FSReqCallback.oncomplete (node:fs:209:5)
Expected behavior
Return file contents
Desktop (please complete the following information):
Describe the bug
Using the file helper in 0.14.1 (works in 0.9) gives me this error:
To Reproduce
Steps to reproduce the behavior:
mocks/api/v1/data-lines/GET.mock
Expected behavior
Return file contents
Desktop (please complete the following information):
Additional context
camouflage.log
https://github.com/dagardner-nv/Morpheus/blob/david-rest-source-sink/tests/tests_data/filter_probs.jsonlines
The text was updated successfully, but these errors were encountered: