Trying to post a document to my vector db api via a hook but am getting the following issue:
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
const response = await fetch("http://localhost:8000/index", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
docs_request: documents,
}),
});
Don't think this is necessarily a Payload issue but just looking for some help if anyone has experienced this