I’ve tested this API on Postman and it works when i try use the same API on Flowise to retrieve information using a custom tool

This is the code snippet for my custom tool :

const url = 'http://13.61.32.121:8069/api/ReadRegister';
const options = {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Cookie': 'frontend_lang=en_US; session_id=580aa695bcce5778f63c0c6a231567216afc1cec'
},
body: JSON.stringify({
conversation_id: "27679856633",
params: {
fields: [
"task_id",
"x_employee_id",
"x_daily_attendance_date",
"x_daily_attendance_status",
"x_daily_start_time",
"x_daily_end_time",
"stage"
]
}
})
};

try {
const response = await fetch(url, options);
const text = await response.text();
return text;
} catch (error) {
console.error(error);
return '';
}

Used the API on Flowise to retrieve created register records but didn’t get any records. When testing the API on Postman I get the records. your text