Camouflage is a backend mocking tool for HTTP, gRPC, Websockets and Thrift protocols, which helps you carry out your front end prototyping, unit testing, functional/performance testing in silos, in absence of one or more Microservices/APIs.
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):**
- OS: Debian Bullseye
- Browser curl
- Version 8.1.2
**Additional context**
[camouflage.log](https://github.com/testinggospels/camouflage/files/12263027/camouflage.log)
https://github.com/dagardner-nv/Morpheus/blob/david-rest-source-sink/tests/tests_data/filter_probs.jsonlines
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:
{{file path="../tests_data/filter_probs.jsonlines"}}
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)