I try to make a post request to RecraftAi api to use image to image feature , I try to upload image via postman and make post request , it works fine , but when I try it via http request node and "read write file from desk " node , gives me the error below
Can you confirm the read/write files node provides correct output?
The error, “reading properties of null (reading ‘name’)” typically means that the name parameter was attempted on an object that is null. Which implies the input file did not exist, causing name property to fail, or was referenced incorrectly.
Interesting. The error seems to occur here in the HttpRequestV3 node.
let error;
if (responseData?.reason instanceof NodeApiError) {
error = responseData.reason;
set(error, 'context.itemIndex', itemIndex);
} else {
const errorData = (
responseData.reason ? responseData.reason : responseData
) as JsonObject;
error = new NodeApiError(this.getNode(), errorData, { itemIndex });
}
The error seems to occur because the error line: error = new NodeApiError(this.getNode(), errorData, { itemIndex }); itself had a parsing error. (I believe)
If it reached that logical path, that indicates the request itself is broken as you received an error of some kind from recraft.
Can you open open chrome/browser dev tools and watch the console output, and the network logs. Then run the scenario/recraft http request. Find the requests made to recraft and see if you can send me their responses.