score:2
based on your excellent description and detective work, it's clear that the problem is between your node app and the other domain. the other domain is throwing an error and your proxy has no choice but to say that there's an error on the server. that's why it's always throwing a 500-series error, the network request failed
error that you're seeing.
it's an intermittent problem, so the error is inconsistent. it's a waste of your time to continue to look at the browser because the problem will have been created beyond that, either in your proxy translating that request or on the remote server. you have to find that error.
here's what i'd do...
implement brute-force logging in your node app. you can use bunyan, or winston or just require(fs)
and write out to some file when an error occurs. then look at the results. only log it out when the response code from the other server is in the 400 or 500 ranges. log the request object and the response object.
something like this with bunyan:
fetch(urltoremoteserver)
.then(res => res.json())
.then(res => whateverelseyouredoing(res))
.catch(err => {
// get the request & response to the remote server
log.info({request: req, response: res, err: err});
});
where the res in this case is the response we just got from the other domain and req is our request to them.
the logs on your azure server will then have the entire request and response. from this you can find commonalities. and (🤞) the cause of the problem.
Source: stackoverflow.com
Related Query
- Network request failed from fetch in reactjs app
- React Native: fetch request failed with error - TypeError: Network request failed(…)
- ReactJS How To Set Cookie From Fetch Request to Back End
- Failed to Fetch React (Not CORS) - POST Request From Fetch API Cancelled in Browser
- react ie fetch Unhandled promise rejection TypeError: Network request failed
- Error in PUT API request in reactJS fetch from frontend
- Axios and fetch both in Reactjs are making continuous localhost network request
- React Native Fetch on Android returns Network request failed
- Javascript Fetch - How to Fix Failed to Fetch Error (probably from making HTTP request on HTTPS site?)
- Fetch values from api and display in reactjs app piechart
- How should a django app handle a post request from a reactjs form
- CORS error when sending a request from my reactjs app to my express server, which redirects to Spotify's API
- Fetch request fails when I send POST request from React app to a Flask API
- React app error: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS
- failed to load response data request content was evicted from inspector cache
- Fetch local JSON file from public folder ReactJS
- Detect network connection in React Redux app - if offline, hide component from user
- How to get a downloadable file from a readableStream response in a fetch request
- How do I fix a network error received from axios response reactjs
- Fetch GET Request with custom headers ReactJS
- how to handle network request failed error?
- Where to make an Initial AJAX request from in ReactJS
- Reactjs - Get a component from anywhere in the app
- Who is responsible to fetch data from server in a flux app with caching?
- ReactJS could not proxy request from localhost:3000 to localhost:3003
- Send response from server side axios request to React/Redux app
- Could not proxy request from localhost:3000 to localhost:7000 ReactJs
- How to display IP camera feed from an RTSP url onto reactjs app page?
- How to send POST request to Django API from ReactJS web app?
- create a mobile app from my web site using reactjs (not native)
More Query from same tag
- Redux - How to handle multiple actions of the same type at the same time
- React Hooks: setState, when does it actually take effect?
- Property 'setLink' is missing in type 'ApolloClient<NormalizedCacheObject>' but required in type 'ApolloClient<any>
- Firebase Phone authentication and Linking
- How to pass props into createTheme() in Material-ui theme object
- TypeError: products.map is not a function. Most likely Problems are in redux
- How to pull an SVG linearGradient id from a map function
- How to make Express server use React routes?
- Update table data in switch in mui-datatables while my data is in boolean
- Rails 6 data aren't showing up on heroku local and on application
- Create Antd Tree based on checked Node of another Antd Tree
- My Custom Component is not working in react App.js
- Nextjs stuck loading the home page
- How to use useState with React-redux-firebase to re-render
- How to use static variables with react hooks
- export data from a file in Reactjs
- React: remove event listener "beforeunload" doesn't work
- Reactstrap Media object how to change the image size
- React js update form value using useState
- Showing the age number as red and bolded in JSX code
- How do I update a JSON and then output it again?
- Server side rendering with async data fetch
- Use style functions for material-ui components besides Box
- Concat multiple query param in react-router
- ES6 Object Mapping
- React/Socket.io not displaying latest message passed down as prop
- Properties on this.props does not exist
- how to set props values of controls in react js
- Testing react component enclosed in withRouter (preferably using jest/enzyme)
- How to combine two functions but change two separate states individually