I'm running a ASP.NET API in my localhost and have tested it with postman and swagger and it works fine but when i try to fetch it in astro it tells me TypeError
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11372:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async eval (C:\Users\MSI\Workstation\pokemon-review-api\front-end\src\pages\index.astro:4:18)
at async callComponentAsTemplateResultOrResponse (file:///C:/Users/MSI/Workstation/pokemon-review-api/front-end/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/astro/dist/runtime/server/render/astro/render.js:85:25)
at async renderToReadableStream (file:///C:/Users/MSI/Workstation/pokemon-review-api/front-end/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/astro/dist/runtime/server/render/astro/render.js:35:26)
at async renderPage (file:///C:/Users/MSI/Workstation/pokemon-review-api/front-end/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/astro/dist/runtime/server/render/page.js:29:12)
at async renderPage (file:///C:/Users/MSI/Workstation/pokemon-review-api/front-end/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/astro/dist/core/render/core.js:50:20)
at async #tryRenderRoute (file:///C:/Users/MSI/Workstation/pokemon-review-api/front-end/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/astro/dist/core/pipeline.js:110:18)
at async DevPipeline.renderRoute (file:///C:/Users/MSI/Workstation/pokemon-review-api/front-end/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/astro/dist/core/pipeline.js:58:20)
at async handleRoute (file:///C:/Users/MSI/Workstation/pokemon-review-api/front-end/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/astro/dist/vite-plugin-astro-server/route.js:248:18)