Re: [whatwg/fetch] Using multipart/form-data with multer occasionally causes React app to crash and refresh (#677)

Okay, I will try to isolate the problem and extract only the necessary code to reproduce the error if possible. I believe it may be some error with the Client or the React framework hot-reloading to be triggered -- 

The same request will can proceed many times - API backend functions carried out successfully - and yet when I repeat request many times it eventually triggers some issue on the Client which causes entire application to refresh and flush state. If it is a Backend problem, there should just be an error caught when the fetch promise is rejected, and database functions should not carry through. 

I believe something is happening when the `multipart/form-data` fetch request  receives a JSON response - maybe some browser bug, but it happened in Chrome & FF, so perhaps it is my own front-end code... But I'm not sure, I can not even replicate conditions for this to occur, I will continue to investigate

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/677#issuecomment-369521992

Received on Thursday, 1 March 2018 08:59:03 UTC