That wasn't it. I have commented that line out completely, and I get the same error. (415 Unsupported Media type).
I also changed it from json to application/json (as indicated in the headers retrieved from the server) - Still the same error.
I added an output of the headers:
SRG>D GET^KCSAPI
HTTP/1.1 415 Unsupported Media Type
CONNECTION: Close
CONTENT-LENGTH: 106
CONTENT-SECURITY-POLICY: sandbox;
CONTENT-TYPE: application/json
DATE: Wed, 07 Jul 2021 15:38:26 GMT
MS2-ERROR: MockRequestError
SERVER: nginx
STRICT-TRANSPORT-SECURITY: max-age=31536000; includeSubDomains
X-CONTENT-SECURITY-POLICY: sandbox;
X-ENVOY-DECORATOR-OPERATION: service.mocking.svc.cluster.local:80/*
X-ENVOY-UPSTREAM-SERVICE-TIME: 9
X-REQUEST-ID: 7deac252-b38a-430e-9931-e77a8b87bef2
Error has occurred <COMMAND> in SRG at 11:38 AM Jul 07 2021
(now saving error/stack information)
Any documentation I can find containing this 'error' refers to making POSTs. I'm doing a GET, so I'm completely baffled....
Thank you so much!!! Setting the header accept was what was needed.