joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.84k stars 784 forks source link

rn-fetch-blob fetch stopped working on iOS #543

Closed keremoge closed 4 years ago

keremoge commented 4 years ago

I use rn-fetch-blob v0.12.0 and today I faced this critical error on iOS;

GLOBAL.tmpFetch = myFetch; GLOBAL.fetch = function (uri, options, ...args) { let d = new Date(); const startTime = d.getTime(); return GLOBAL.tmpFetch(uri, options, ...args).then((response) => { d = new Date(); const endTime = d.getTime(); console.log(Fetch => ${uri} {${endTime - startTime} ms}, { request: { uri, options, ...args, }, response, }); return response; }).catch(error => error); };

keremoge commented 4 years ago

The problem was the app dynamics that I added 1 year ago. There is a bug on app dynamics server that blocks all request from the client when using rn-fetch-blob

teodorciuraru commented 3 years ago

@keremoge were you testing RN 0.62 beta or something, because it might be an issue with Flipper and the AppD agent?

keremoge commented 3 years ago

No, it's not about Flipper or RN version. There was a bug in the version of AppDynamics. when the usage limit exceeds it's blocking all requests instead of just not logging them. We just updated AppDynamics at serverside. It is working fine right now.