Skip to content
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

"Navigation took more than 30000ms. Please increase the navigationTimeout" - working locally but issue in GitLab pipeline #2700

Open
tester-mind opened this issue Apr 13, 2023 · 1 comment

Comments

@tester-mind
Copy link

tester-mind commented Apr 13, 2023

Describe the bug
"Navigation took more than 30000ms. Please increase the navigationTimeout" - working locally but issue in GitLab pipeline

To Reproduce
Steps (or script) to reproduce the behavior:

  1. Open the browser (chrome) in headless mode
await openBrowser({
        headless: headless,
        args: ["--no-sandbox"]
    });
    console.log('Browser opened.');
    gauge.message('Browser opened.');
  1. Goto url

await goto(url);

tried all the below solutions, but none is working -

  • goto(url, {waitForEvents:['firstMeaningfulPaint']});
  • goto(url,{timeout:90000});
  • goto(url,{timeout:120000});
  • goto(url,{waitForEvents:['loadEventFired']});
  • goto(url,{navigationTimeout:90000});
  • goto(url,{navigationTimeout:120000});
  • goto(url,{ waitForStart: 0 });
  1. Script is working locally but issue in GitLab pipeline

  2. See error
    "Navigation took more than 30000ms. Please increase the navigationTimeout"

Logs

Paste any log or error messages here

Error Message: Error: Navigation took more than 30000ms. Please increase the navigationTimeout.
    Stacktrace: 
    Error: Navigation took more than 30000ms. Please increase the navigationTimeout.
        at doActionAwaitingNavigation (node_modules/taiko/lib/doActionAwaitingNavigation.js:66:13)
        at async module.exports.goto (node_modules/taiko/lib/taiko.js:744:3)
        at async module.exports.<computed> (node_modules/taiko/lib/taiko.js:2620:14)
        at async Object.<anonymous> (tests/step_implementation.js:36:5)

![image](https://user-images.githubusercontent.com/130654429/231729767-f5ccc606-89e1-4b4a-a81d-12d7335d8551.png)


Expected behavior
The script should run in the CI/CD pipeline as it is running locally

Screenshots
If applicable, add screenshots to help explain your problem.

Versions:

  • Taiko: Version: 1.3.9 (Chromium: 110.0.5478.0) RELEASE
  • OS: MacOS Version 13.3.1 (22E261)
  • Node.js: v16.14.0
Gauge version: 1.4.3
Plugins
-------
html-report (4.2.0)
js (2.4.0)
python (0.3.17)
screenshot (0.1.0)

Additional context
.gitlab-ci.yml file
image

@hojerst
Copy link

hojerst commented May 23, 2023

seems you have to set --disable-dev-shm-usage as browser arg as well to get everything running in a docker container

export TAIKO_BROWSER_ARGS: '--no-sandbox --disable-dev-shm-usage --disable-setuid-sandbox --disable-web-security'

see also: https://docs.taiko.dev/taiko_in_docker/#a-note-on-the-flags-and-options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants