Skip to content

waitForNavigation timeout #80

@benel

Description

@benel

Bonjour,

Auriez-vous des exemples de cas qui fonctionnent avec waitForNavigation. Sur quasiment tous les sites que j'ai testés et avec les 4 valeurs possibles, j'obtiens à chaque fois un timeout.

url.yaml

- url: 'https://collectif.greenit.fr/'
  waitForNavigation: 'networkidle2'
greenit analyse url.yaml            
No output format specified, defaulting to xlsx based on output file name.
 Analysing       [=======               ] 33%     Remaining: 0.0s     Time: 0.0Error while analyzing URL https://collectif.greenit.fr/ :  TimeoutError: Navigation timeout of 180000 ms exceeded
    at new Deferred (/Users/benel/Documents/Formalisations/Code JavaScript/GreenIT-Analysis-cli/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.js:26:34)
    at Deferred.create (/Users/benel/Documents/Formalisations/Code JavaScript/GreenIT-Analysis-cli/node_modules/puppeteer-core/lib/cjs/puppeteer/util/Deferred.js:68:16)
    at new LifecycleWatcher (/Users/benel/Documents/Formalisations/Code JavaScript/GreenIT-Analysis-cli/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/LifecycleWatcher.js:75:60)
    at CdpFrame.waitForNavigation (/Users/benel/Documents/Formalisations/Code JavaScript/GreenIT-Analysis-cli/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Frame.js:188:29)
    at CdpFrame.<anonymous> (/Users/benel/Documents/Formalisations/Code JavaScript/GreenIT-Analysis-cli/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js:108:27)
    at CdpPage.waitForNavigation (/Users/benel/Documents/Formalisations/Code JavaScript/GreenIT-Analysis-cli/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:633:43)
    at waitPageLoading (/Users/benel/Documents/Formalisations/Code JavaScript/GreenIT-Analysis-cli/cli-core/analysis.js:75:20)
    at doFirstAction (/Users/benel/Documents/Formalisations/Code JavaScript/GreenIT-Analysis-cli/cli-core/analysis.js:188:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async startActions (/Users/benel/Documents/Formalisations/Code JavaScript/GreenIT-Analysis-cli/cli-core/analysis.js:104:5)
    at async analyseScenario (/Users/benel/Documents/Formalisations/Code JavaScript/GreenIT-Analysis-cli/cli-core/analysis.js:42:21)
    at async createJsonReports (/Users/benel/Documents/Formalisations/Code JavaScript/GreenIT-Analysis-cli/cli-core/analysis.js:403:19)
    at async analyse_core (/Users/benel/Documents/Formalisations/Code JavaScript/GreenIT-Analysis-cli/commands/analyse.js:81:19)

Merci d'avance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions