-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not getting headers , status , respType , redirects in the respInfo of response occasionally in iOS. #236
Comments
I'm experiencing this as well. It seems to happen more often on fresh installations of an app. It seems like the event which sets the responsive info isn't being received by the JS. From my debugging with adding logging throughout the code, it seems like this event is being dispatched: But it is not being received in the JS code which ultimately sets the response info: It seems like the HTTP request is successful, as I can see a 200 status being logged, but the JS layer isn't able to report the successful state of the download back to the code which initiated the request. |
hi @RonRadtke, can you check this please? Getting only |
I'm using a workaround which checks that the response is exactly that, and the platform is IOS. Then check if the file exists and is of non-zero size.
|
In my case i want to check for the status of the response. |
How do you get the proper response header on iOS? |
Use 0.17.1th version |
@rifad4u I'm using 0.17.1 version. do you any other workarounds to get response headers? @RonRadtke @cjpete 😓 |
Are you using libraries like RNN or maybe two navigators (button tabs + stack) or so? |
@RonRadtke Then y this issue is happening occasionally only, if that is the case then it should happen every time , right? |
@rifad4u that's right, except if you're changing navigators somewhen during the life cycle. But I honselty don't have a better idea right know either. I might be solved once I rewrote the whole vent system to a newer and hopefully more stable system using modern APIs / classes |
@RonRadtke in my case i'm facing this while opening the application only , not happening in between and it is not replicating if i close and relaunch the application. |
@rifad4u it sounds wired as a behaviour. |
Hi @RonRadtke, We have the same issue on our side. We use After some tests, I can track the issue from this change => 6290b21 It's seem like:
I will try to set up some minimal reproduction.
|
We're having the exact same issue on 0.17.3. Downgrading to 0.17.1 fixes the issue for us. |
|
Had the same issue and downgrading to 0.17.1 worked for me as well |
@cjpete could you test if the eventDispatcher is set and maybe if you get a bridge in
Sadly my repro for reproduction was a fail and I'm still struggling to reproduce it.... |
Same issue :( |
Any new Informationen? |
@RonRadtke, we do experience the same issue on 0.17.3 and we send multipart/form-data to the Java backend. It happens when the app is in the foreground and can be reproduced both on the device and the simulator. We tried on devices with ios versions 16.2 and 15.7, but an android app was working well. There are no clear steps to reproduce the issue, because it may work properly and in an hour accidentally stop working on the same device with the same data. env: Hope this helps |
Hi RonRadtke/react-native-blob-util,
This issue is happening when the app opens for the first time or opens from
killed state , not happening this issue in between. means if you get proper
response when the app opens then this issue won’t come in this session.
…On Sun, May 7, 2023 at 1:11 PM Ron Radtke ***@***.***> wrote:
Any new Informationen?
Anyone?
Could it be that it only happens when the appnis in the background or any
idea based on yours app usage pattern?
I'm currently rewriting the whole event handling structure but i would
feel better about it if i know where the problem currently is
—
Reply to this email directly, view it on GitHub
<#236 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI3JTW6CDEBIRO5QHLGIFJTXE5G27ANCNFSM6AAAAAAWDRDZBY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@rifad4u @emelyanova react-native-blob-util/index.js Line 45 in 132051c
And see if youbstill can reproduce it? I so far didn't manage to reproduce it at allregardless how often i try |
Too bad 😕 |
I'm trying to reproduce the same in a new project. |
Thank you.
|
@rifad4u I got the ios part of the new eventemitter structure done and did a basic testing on it. Would be great if you could test if you can reproduce the issue on that branch too. |
Hi @RonRadtke , |
Both screenshots are the same request or what are you showing here? |
First screenshot is from the fetch.js file , line no : 205 , Second screenshot is the response i got when i called the api. |
Thank you! I committed a fix for it. |
@RonRadtke It is working 😍 , getting proper response now. |
Great. I will try to finish the Android part this week and then hopefully get it live :) |
Hi, @RonRadtke, have you released the Android fix yet? I'm still having the same issue with version 0.19.4. The same issue happening for me as @rifad4u. I'm unable to get any responses on the first try after the app is opened. But It works when I kill the app and try again. I would be really grateful if you could give a reply as soon as possible since I'm blocked by the issue. Thank you for your effort and consideration. |
Yes I fixed aome problems here. But it could be we're running in some race conditions here, or, some problems during registration of the event listener. |
@NishilE you are facing problems on Android? The issue and fixed here are about ios... |
@RonRadtke, Yes I'm facing the issue on Android. I saw your comment that you will try to finish the Android part. That's why I checked here. |
Not getting headers , status , respType , redirects in the respInfo of response occasionally in iOS. on that time getting "rnfbEncode" only in the respInfo.
i'm attaching 2 screenshots here , both screenshots are responsible for same api and getting the same data in the data part , but the respInfo are not getting properly.
![Screenshot 2023-03-22 at 2 42 24 PM](https://user-images.githubusercontent.com/37132763/226855946-21c51abf-fd66-4186-892e-67efac94c7d1.png)
![Screenshot 2023-03-22 at 2 42 53 PM](https://user-images.githubusercontent.com/37132763/226855963-4ae36ad3-307d-4b0a-904c-54385bb9847b.png)
The text was updated successfully, but these errors were encountered: