I have the request that has to be made which I am able to make from Postman but am unsuccessful in doing from HTTP node.
I looked at this and was trying to send it as binary: Webhook to HTTP request - #4 by jan but was unsuccessful. I am getting an error that the endpoint isn’t getting any file from the request.
When using multipart/form-data in the HTTP Node you can just send either binary data or key-value pairs in the body. Does the API allow you to upload the file first and later update the record with the user_email and recipe_slug ?
If so, then you can update the file first by setting up the HTTP node as follow:
ah yes, you can use a function node and make the HTTP Request from there. This works as long as you are self-hosting.
Set the env variable export NODE_FUNCTION_ALLOW_BUILTIN=request-promise-native
then in the function node, require the request module and made the HTTP Request using multipart/form-data. If you need help with the function node let me know.
@Veer_Manhas The export option needs to be set via CLI (in npm based setup) or .env file (in Docker based setup), after installation of the node modules, appropriately, that need to be exported.
I’m looking for a similar enough solution, however my HTTP node doesn’t have ‘form-data mu’ in the body content or options etc. basically none of this node is there. I’m on the cloud instance so some version changes have happened. It seems like this http node has lost features?