Detox: Updating to V18 causes detox to hang (App has not responded to the network requests below: (id = -1000) isReady: {})

Description

I’ve just updated detox to 18.0.1 (from 17.8.3) and i can’t seem to run tests ever since getting this error:

App has not responded to the network requests below:
  (id = -1000) isReady: {}

also i saw that when running device.launchApp() it seems to hang (although it passes successfully) I was able to use the simulator so i suspect something is wrong with the hook. Downgrading to v17.8.3 solves this right away

  • [X ] I have tested this issue on the latest Detox release and it still reproduces

Reproduction

update to version 18.0.1 run e2e tests

Screenshots

If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Detox: 18.0.1
  • React Native: 0.63.3
  • Using Jest (but also was able to reproduce it in mocha)
  • Node: 15.3.0
  • Device: iPad Pro (12.9-inch) (4th generation) (OS 14.2)
  • Xcode: 12.2
  • iOS: 14.2
  • macOS: 11.0.1

Logs

detox[57762] WARN:  [Client.js/PENDING_REQUESTS] App has not responded to the network requests below:
  (id = -1000) isReady: {}

Unresponded network requests might result in timeout errors in Detox tests.

Thanks in advance for the help

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 9
  • Comments: 43 (22 by maintainers)

Most upvoted comments

I’m having the same issue. I used Detox in the past and it worked fine. But for this new project, I installed the latest version and facing the same error reported above.

In my case, I just tried to run an firstTest example, below is the code:

import { by, element, expect, device } from 'detox';

describe('Example', () => {
  beforeAll(async () => {
    await device.launchApp({
      launchArgs: {
        DTXEnableVerboseSyncSystem: 'YES',
        DTXEnableVerboseSyncResources: 'YES',
      },
    });
  });

  beforeEach(async () => {
    await device.reloadReactNative();
  });

  it('should have welcome screen', async () => {
    await expect(element(by.id('passcode-input'))).toBeVisible();
  });
});

And the screenshot below describe what I faced. Actually the app is launched normally, but it will hang and log the report after the time out.

image

@mitchcivic @dwightdhooge as @noomorph explained, there was a change in policy where detox.init() does not launch the app anymore. Please refer to the migration guide for the complete info.

As for other matters - please submit separate issues and follow the templates. We’d be happy to assist, provided all the necessary info 👍🏻

Same errors here on android and iOS simulators . Tested with 18.0.0 & 18.1.0 Reloading app detox[22637] DEBUG: [DetoxServer.js/CANNOT_FORWARD] role=app not connected, cannot fw action (sessionId=bd1bea7f-b667-2f68-da82-8e7513392493) detox[22637] DEBUG: [DetoxServer.js/CANNOT_FORWARD] role=app not connected, cannot fw action (sessionId=bd1bea7f-b667-2f68-da82-8e7513392493)

Great. Thanks

Ok nevermind it was my bad (instead of removing activity indicator I display it and hide when everything launches ok) I think we can close this issue. Thanks all for the help this new version with explicit logs is very helpful with identifying this kind of issues.