percy / cli

The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.
https://docs.percy.io/docs/cli-overview
71 stars 45 forks source link

Reference Error: Excessive alias count indicates a resource exhaustion attack in percy url yaml with 360 url items #1479

Closed sklerotraficon closed 9 months ago

sklerotraficon commented 10 months ago

The problem

Using percy snapshot I have around 350 URLs in a urls.yaml according to the Example snapshots.yml

I use 3 more defined references in every url item.

On running the percy snapshot command, I get a Reference Error: Excessive alias count indicates a resource exhaustion attack.

Since the error seems to come from the yaml parser used by Percy,there should be a way to set the maxAliasCount in the percy configuration and pass it to the yaml parser.

The value should be configurable via a config parameter in the snapshot section of .percy.js:

According to the YAML Documentation:

Environment

Debug logs

The logs shows: Reference Error: Excessive alias count indicates a resource exhaustion attack

Code to reproduce issue

The yaml followed the Example snapshots.yml with 3 more defined references in a yaml with 360 url items

github-actions[bot] commented 10 months ago

This issue is stale because it has been open for more than 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] commented 9 months ago

This issue was closed because it has been stalled for 28 days with no activity.