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

Error: undefined $s undefined when running axe-core against certain urls #387

Closed
sansoucyuRC opened this issue Oct 13, 2021 · 2 comments
Closed

Comments

@sansoucyuRC
Copy link

Product: @axe-core/cli

Expectation: Whenever I try to run @axe-core/cli on my docker image certain type of pages constantly appear to crash axe. This only appears to occur with certain type of pages. I would expect axe to run in the same manner it does for other pages from the site.

Actual: Constantly get the following error:

Testing https://ici.radio-canada.ca/mordu/2942/a-la-decouverte-dun-vignoble-enchanteur ... please wait, this may take a minute.
Error: undefined 
 $s undefined

The error is quite unhelpful to help debugging the situation. Take note that I am able to successfully run the tests on locally on my machine (Mac) but whenever I run it in the docker image the crash occurs.

Motivation: We have a script that runs a list of URL representing different page type to report the accessibility progress. Though when run from the virtual machine using some pages just don't send back the report, forcing us to do a manual validation instead.


axe-core version: 4.3.3
@axe-core/cli: 4.3.1

- Node version: v14.18.0
- Platform:  Linux

Dockerfile for the image:

FROM selenium/standalone-chrome

RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
RUN sudo apt-get install -y nodejs

WORKDIR /app

RUN sudo npm config set unsafe-perm true
RUN sudo npm install @axe-core/cli -g

COPY . .
RUN sudo chmod 777 .

ENTRYPOINT ["bash"]

Examples of command run in the Docker Image to reproduce the issue:

axe https://ici.radio-canada.ca/mordu/2942/a-la-decouverte-dun-vignoble-enchanteur --chromedriver-path="node_modules/chromedriver/bin/chromedriver" --show-errors
axe https://ici.radio-canada.ca/mordu/2984/liloland-le-disneyland-des-dents-sucrees-a-loretteville --chromedriver-path="node_modules/chromedriver/bin/chromedriver" --show-errors
axe https://ici.radio-canada.ca/mordu/2563/releve-agricole-champignons-marche-jean-talon --chromedriver-path="node_modules/chromedriver/bin/chromedriver" --show-errors
axe https://ici.radio-canada.ca/mordu/recettes/2556/nachos-presque-vege --chromedriver-path="node_modules/chromedriver/bin/chromedriver" --show-errors
@michael-siek
Copy link
Member

Thank you for reporting! We will investigate this issue further and update you as soon as we can.

@Zidious
Copy link
Contributor

Zidious commented Apr 19, 2022

This should be fixed in #423. Please re-open if the issue is apparent in 4.4.1.

@Zidious Zidious closed this as completed Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants