Relative Content

Tag Archive for reactjsnode.jsfirebasefetch-api

My fetch requests are stuck on pending and never fulfill a response or make it to the backend

I’m making an application using react, node and firebase and am trying to connect my backend to my front end. I have developed out backend routes and api but when I try to make requests from the front end all of them get stuck on pending. I’m not sure what the problem is as I have cors installed, a proxy set up, and the routing is fine. I’m assuming it has something to do with the asynchronicity of it but I’m not sure the problem. I will provide the code down below for the functions.