I am trying to POST a PDF (binary) to Azure Cognitive Services.
I have two issues when using either “JSON/RAW Parameter”
If using JSON, I can’t enter the binary PDF data for the body
If using RAW, I can’t enter headers in JSON because the “Response Format” tries to add “accept” header to the JSON string and I can’t disable it. I’ve of course tried this without adding “accept” manually to the string.
I’ve tried using the Set node to create JSON, but because the HTTP node tries to add “accept” whatever I do, I get an error.
Not it has not. This will probably be addressed in the HTTP node V2, but we do not have a timeline for that. Anyways, you can probably use the function node to do so. Can you share the docs to the endpoint your are trying to use?
I have also removed the headers and used Header Auth for the one “Ocp-Apim-Subscription-Key” which is required, Host and Content-Type (required) seem to generate automatically, though I’m not sure.
The Workflow appears to partly complete, I added the Query Params to the URL, and Options:
MIME Type:application/pdf
Full Response:true (see below)
One thing, that is slightly odd, I get no response, the response to this POST (which is a file id on Azure) is supposed to be in the header, how can I get that data?
Lastly, and I appreciate this is now a different issue, when looking at Executions, I get this alert after clicking the cancel button:
Problem stopping execution
There was a problem stopping the execuction:
this.activeExecutions[executionId].workflowExecution.cancel is not a function