Hello,
I’m sending a POST request to an API (Salad Transcription) and on testing the flow it seems to be returning OK, but that HTTP post piece is failing in the run so I can’t ‘grab’ a variable from the returned response to insert into the next step of the flow. See screen recording with my audio explaining here: Screen Recording 2024-11-20...
Can you help with why it’s failing and how can I resolve it?
Thank you,
Bharat
The transcription service returned a response with status code 401 Unauthorized:
I suspect there’s a mistake in the way authentication is configured for your POST request.
Side-note: your API key is exposed in the recording, make sure you invalidate it and get a new one.
@HoldYourWaffle that’s what I thought so I made some updates and now I receive a 400 error as here states ‘The input was not valid’
However, I believe I’m formatting the response correctly.
The CURL example in the Salad docs here have 2 headers which I’m placing individually in the Headers section of the Piece.
Even though Query Params in the Piece is a required field, I’m not adding any parameters as there don’t seem to be any to add.
The body is set as JSON with a customised version of the -d JSON from the curl example, and is placed in the Body.
See here for how the Piece is configured.
So still I can’t see why the Piece is failing.
Any suggestions would be sincerely appreciated.
Re: API key, I had changed it after the video and I thought I’d put in a dummy one in the video but noticed that the vid had the full key in one section. Thanks for that anyway.
Bharat
It’s difficult to read the weirdly formatted output, but I suspect there’s a missing a comma between custom_vocabulary
and webhook
:
If that’s not the problem, can you post the full JSON request body here?