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

Failing randomly with "Error: Callback was already called." #187

Open
ShawnHymel opened this issue Jul 11, 2023 · 0 comments
Open

Failing randomly with "Error: Callback was already called." #187

ShawnHymel opened this issue Jul 11, 2023 · 0 comments

Comments

@ShawnHymel
Copy link

Part way through checking our files, the checker will fail with:

FILE: ./edge-impulse-studio/processing-blocks/image.md
/usr/local/lib/node_modules/markdown-link-check/node_modules/async/dist/async.js:324
            if (fn === null) throw new Error("Callback was already called.");
                             ^

Error: Callback was already called.
    at /usr/local/lib/node_modules/markdown-link-check/node_modules/async/dist/async.js:324:36
    at /usr/local/lib/node_modules/markdown-link-check/node_modules/async/dist/async.js:248:17
    at /usr/local/lib/node_modules/markdown-link-check/index.js:129:13
    at /usr/local/lib/node_modules/markdown-link-check/node_modules/link-check/lib/proto/http.js:117:21
    at done (/usr/local/lib/node_modules/markdown-link-check/node_modules/needle/lib/needle.js:463:14)
    at PassThrough.<anonymous> (/usr/local/lib/node_modules/markdown-link-check/node_modules/needle/lib/needle.js:717:9)
    at PassThrough.emit (node:events:524:35)
    at endReadableNT (node:internal/streams/readable:1378:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v20.4.0
*** ERROR: Something went wrong - see the errors above...

This seems to occur randomly on different markdown files in our repo.

Here is our job:

jobs:
  markdown-link-check:
    name: Check for dead links
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Markdown links check
        uses: ruzickap/action-my-markdown-link-checker@v1
        with:
          verbose: true
          quiet: true
  ...
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

1 participant