go to post Kelly Blake · Jul 7, 2021 Thank you so much!!! Setting the header accept was what was needed.
go to post Kelly Blake · Jul 7, 2021 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.
go to post Kelly Blake · Jul 7, 2021 I added an output of the headers: SRG>D GET^KCSAPIHTTP/1.1 415 Unsupported Media TypeCONNECTION: CloseCONTENT-LENGTH: 106CONTENT-SECURITY-POLICY: sandbox;CONTENT-TYPE: application/jsonDATE: Wed, 07 Jul 2021 15:38:26 GMTMS2-ERROR: MockRequestErrorSERVER: nginxSTRICT-TRANSPORT-SECURITY: max-age=31536000; includeSubDomainsX-CONTENT-SECURITY-POLICY: sandbox;X-ENVOY-DECORATOR-OPERATION: service.mocking.svc.cluster.local:80/*X-ENVOY-UPSTREAM-SERVICE-TIME: 9X-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....
go to post Kelly Blake · Jul 7, 2021 That gives me the following: D GET^KCSAPI{"code":"INVALID_RESPONSE_ACCEPT_HEADER","message":"Error trying to find response for invalid media type"}
go to post Kelly Blake · Dec 11, 2019 Currently, I am creating the file via Cache ObjectScript/routine and then ftping it over to the file share Or pulling the file from the file share via ObjectScript/routine and reading/processing it. Because we will be moving our data to Sharepoint, I need a connection/transfer method that I can use in my routine in place of the ftp/sftp that is currently being used because Sharepoint doesn't allow the ftp/sftp of files.
go to post Kelly Blake · Nov 4, 2019 We don't have that option in Cache yet. (Getting ready to upgrade to 2017 - but checked, and it doesn't either). %SYS>D ^DATABASE 1) Create a database 2) Edit a database 3) List databases 4) Delete a database 5) Mount a database 6) Dismount a database 7) Compact globals in a database 8) Show free space for a database 9) Show details for a database10) Recreate a database11) Manage database encryption12) Return unused space for a database13) Compact free space in a database14) Defragment globals in a database Option? Q %SYS>D ^VERSIONCache for UNIX (Red Hat Enterprise Linux for x86-64) 2015.2.3 (Build 855_0_17370) I wonder if Canceling from that option in IRIS is the same as Terminating a Process in cache - risking data integrity issues with ab-ends...
go to post Kelly Blake · Nov 4, 2019 Most importantly: Can the process be stopped if it does not complete by the time you want/need it to? (whether I'm compacting the database or a particular global)