-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[RN-0.71 - iOS] The app has not responded to the network requests below: (id = -1000) isReady: {} #3949
Comments
I will share the artifacts below, since I was not able to put logs due to the following restriction from github: |
Looks like there are some stuck/pending network requests in your app:
e.g. |
Why aren't the debug-sync logs shown - I wonder? Would have made what the problem is very clear. |
@d4vidi , the OP wrote why:
|
I meant in the terminal. If they're in debug, would make sense to bump their log-level to info. WDYT? |
Strikes me odd: Detox/detox/src/client/Client.js Line 265 in 6145653
Might have been an error that's triggered the |
@d4vidi The synchronization was enabled. The OP mostly likely did not notice . |
@d4vidi @noomorph After your feedbacks regarding the issue, I've decided to take another shot:
import React from 'react';
import {Button, Text, View} from 'react-native';
import {COMMON_STYLES} from './theme/common-styles';
const Counter = () => {
const [counter, setCounter] = React.useState(0);
return (
<View style={COMMON_STYLES.flexCenter}>
<Button
testID="increase-btn"
onPress={() => setCounter(prev => prev + 1)}
title="Increase"
/>
<Button
testID="decrease-btn"
onPress={() => setCounter(prev => prev - 1)}
title="Decrease"
/>
<Text testID="count-text">Count: {counter}</Text>
</View>
);
};
export default function App() {
return <Counter />;
}
describe('Example', () => {
beforeAll(async () => {
await device.launchApp({
newInstance: true,
});
});
beforeEach(async () => {
await device.reloadReactNative();
});
test('complete app flow', async () => {
await element(by.id('increase-btn')).tap();
});
});
detox-ios-debug-e2e-4x.mp4
ios.sim.debug.2023-02-23 18-07-38Z.zip
Created a new branch called Unfortunately, it throws the same error, from what I can see it gets busy with event
|
@tarikpnr thanks for taking the extra-mile, it will definitely prove helpful. |
@tarikpnr I've put in a serious effort, trying to run the
Anyways would you be able to try running that project with RN .70 instead of .71? I think the problem might lie there. |
Update: I've managed to get passed that. Bottom line is that while the images download sure is on the slow side, the test ultimately passes (i.e. your problem does not reproduce). I think you might like to try to increase the timeout (120000ms may not be enough), on account of the download's slowness. |
@d4vidi Thanks for your efforts. I have actually updated the repo by creating the new branch, as I also mentioned here you probably tested it on And, have you done any changes to the repo to make it run? If not, then I doubt it is maybe sort of environment issue ? |
TL&DRIt will not work in new architecture (when you see AttemptsI ended up resetting everything related to iOS using Considering According to docs, determining whether the new architecture is in use or not is simply checking Double-checked through the metro console, notice below there is no In contrast, fabric option was enabled in the initial video that I shared. See below: I assume it initializes project with "scripts": {
"pod-install": "RCT_NEW_ARCH_ENABLED=1 bundle exec pod install"
} @d4vidi Most probably it was the case for you as well, there is a high chance that you may have initialized the project without |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this repository, read this discussion. |
I'm facing the same issue, that all tests won't start when using
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this repository, read this discussion. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this repository, read this discussion. |
Not stale, facing the same issue. |
I am also facing the same issue on native-ios app |
My issue has been resolved. I was using the "import * as Progress from "react-native-progress";" library to implement a progress bar. However, I have now commented it out. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this repository, read this discussion. |
is there any workaround for this ? |
I'm seeing the exact same issue with a React Native prototype (Turbo Modules (C++), New Architecture). Triggering the tests via [ON_BUILD_SUCCESS_HOOK] 17:04:29.459 detox[43533] i The app has not responded to the network requests below:
[ON_BUILD_SUCCESS_HOOK] (id = -1000) isReady: {} Can we have an official word on whether this the New Architecture is supported/not supported/it's some other issue? |
Hey @timmyjose, we do not support turbo modules ATM however we're aiming to support that soon. No official ETA unfortunately. |
Hey @nmongiya, can you please elaborate what issue are you facing (provide logs or any information that might be useful)? |
Hey @asafkorem, thank you for confirming that. 🙏 It's a bit unfortunate, but at least now we know that it's not an issue in our setup! We're now looking into using the Old Architecture (non Turbo Modules) in the meantime, and when support for Turbo Modules is available (hopefully soon!), we'll probably migrate back. |
following here for turbo module support |
Following for turbo |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! For more information on bots in this repository, read this discussion. |
Still happening on latest. Remarking this as not stale. |
still seems to be an issue. following for turbo module support. |
Looks like same issue as here: #4506 |
What happened?
When running debug test script after a successful build, the app launches, then it gets stuck infinitely.
(Note: Android is working fine, its only for iOS)
After timeout, it throws the following error:
What was the expected behaviour?
It should not get stuck, and process the test cases.
Was it tested on latest Detox?
Did your test throw out a timeout?
Help us reproduce this issue!
Simple react-native app, issue is reproducible in
main
branchhttps://github.com/tarikpnr/react-native-testing
In what environment did this happen?
Detox version: 20.1.3
React Native version: 0.71.2
Has Fabric (React Native's new rendering system) enabled: yes
Node version: v16.19.1
Device model: iPhone 12
iOS version: 16.2
Xcode version: 14.2
Test-runner (select one): jest
Detox logs
Detox logs
Device logs
Device logs
More data, please!
Demonstration video (4x), starting from running
yarn run detox test --configuration ios.sim.debug
script.detox-ios-test-stuck.mp4
The text was updated successfully, but these errors were encountered: