Skip to content

ADO Task: Error: Crawl base URL should not have any query parameters #1332

Description

@damongr-msft

Describe the bug

Our web site under test requires a valid query string to operate (otherwise it will error). Having this limitation makes it so the ADO task is unusable for our scenario.

To Reproduce
Steps to reproduce the behavior: Below is the yaml used to test, see the url with query strings

task: accessibility-insights@3
            displayName: Scan for accessibility issues
            inputs:
              hostingMode: 'dynamicSite'
              url: 'https://ourapp.contoso.com/?appid=1235&area=test' 
              serviceAccountName: $(serviceAccountName) # Key vault secret name for the service account name
              serviceAccountPassword: $(serviceAccountPassword) # Key vault secret name for the service password
              authType: 'AAD'
              singleWorker: true
              uploadOutputArtifact: true         

CodePen repro example

The above yaml outputs the error:

##[error][Exception]ErrorWithCause: An error occurred while scanning website page https://ourapp.contoso/?appid=1235&area=test
    at Logger.trackExceptionAny (D:\a\_tasks\accessibility-insights_4811a442-2fd3-5aa8-ba1a-14cb7e24c113\3.1.0\index.js:189142:29)
    at Scanner.<anonymous> (D:\a\_tasks\accessibility-insights_4811a442-2fd3-5aa8-ba1a-14cb7e24c113\3.1.0\index.js:190329:29)
    at Generator.next (<anonymous>)
    at fulfilled (D:\a\_tasks\accessibility-insights_4811a442-2fd3-5aa8-ba1a-14cb7e24c113\3.1.0\index.js:190244:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
caused by: Error: Crawl base URL should not have any query parameters. https://ourapp.contoso/?appid=1235&area=test

Expected behavior

Expected to run against the web site as it requires query parameters to run properly

Context (please complete the following information)

N/A

Are you willing to submit a PR?

Maybe

Did you search for similar existing issues?

Yes

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus: needs investigationThis issue requires investigation (PM, Design, or SWE) by the Accessibility Insights team.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Tabled

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions