tpiros / jamstack-training-films-ui

jamstack-training-films-ui.vercel.app
34 stars 22 forks source link

TypeError: fetch failed #3

Open mohtashima1 opened 1 year ago

mohtashima1 commented 1 year ago

error - TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11413:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async fetcher (webpack-internal:///./lib/api.js:10:20) at async getServerSideProps (webpack-internal:///./pages/profile.js:145:30) { cause: Error: connect ECONNREFUSED ::1:1337 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) { errno: -4078, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 1337 }, page: '/profile' }

shrutilenka commented 5 months ago

@mohtashima1 hi there, i faced the same issue but i sucessfully resolved it . step1. open your windows terminal and write command "ipconfig",copy your ipv4 address, paste that in place of "localhost" in env file if still the issue isn't resolved ,change the film.js file code for filmList 👍🏻 -----> image

----> u can also change the film.js in component folder --->

image

hope it helps </>